Bug 1443778 - selinux-policy-sandbox always disable the sandbox module on upgrade
Summary: selinux-policy-sandbox always disable the sandbox module on upgrade
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-20 00:07 UTC by Michael S.
Modified: 2017-07-17 04:52 UTC (History)
7 users (show)

Fixed In Version: selinux-policy-3.13.1-260.1.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-17 04:52:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch to fix the issue (1.66 KB, application/mbox)
2017-04-20 00:07 UTC, Michael S.
no flags Details

Description Michael S. 2017-04-20 00:07:43 UTC
Created attachment 1272816 [details]
patch to fix the issue

Description of problem:

selinux-policy-sandbox always disable the sandbox module on upgrade, thus making 'sandbox' show on a regular basis a rather curious message. It took me a while to figure what was cuasing this until I tought about searching the rpm scriptlet. 



Version-Release number of selected component (if applicable):
selinux-policy-sandbox-3.13.1-249.fc26.noarch
but also affect EL7.


How reproducible:
each time

Steps to Reproduce:
1. use sandbox
2. wait for a selinux-policy-sandbox upgrade
3. upgrade

Actual results:
sandbox show a unhelpful message:

$ sandbox id
ERROR: could not find datum for type sandbox_t
/usr/bin/sandbox: Sandbox Policy is not currently installed.
You need to install the selinux-policy-sandbox package in order to run this command

Expected results:
$ sandbox id                     
uid=1000 gid=1000 groupes=1000,10,135 contexte=unconfined_u:unconfined_r:sandbox_t:s0:c749,c8

Additional info:

This is linked to https://bugzilla.redhat.com/show_bug.cgi?id=1380325, filled for RHEL 7 (who basically ask for a better message).

And a patch is attached against master in dist-git.

Comment 4 Fedora Update System 2017-07-11 17:07:18 UTC
selinux-policy-3.13.1-260.1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-c2721b7375

Comment 5 Fedora Update System 2017-07-12 08:38:31 UTC
selinux-policy-3.13.1-260.1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-c2721b7375

Comment 6 Fedora Update System 2017-07-17 04:52:08 UTC
selinux-policy-3.13.1-260.1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.