Bug 770936

Summary: Missing package dependency.
Product: Red Hat Enterprise Linux 6 Reporter: Jan Kratochvil <jan.kratochvil>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.2CC: dwalsh, jan.kratochvil, mmalik
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-31 13:23:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jan Kratochvil 2011-12-30 10:57:26 UTC
Description of problem:
$subj

Version-Release number of selected component (if applicable):
policycoreutils-python-2.0.83-19.18.el6.x86_64

How reproducible:
Tried once.

Steps to Reproduce:
yum install /usr/bin/sandbox
sandbox -X -t sandbox_web_t ./stack

Actual results:
/usr/bin/sandbox: 
/usr/sbin/seunshare is required for the action you want to perform.

Expected results:
No error message.

Additional info:
One has to do also:
yum install /usr/sbin/seunshare

Comment 2 Milos Malik 2011-12-31 10:05:03 UTC
/usr/bin/sandbox (provided by policycoreutils-python package) requires /usr/sbin/seunshare (provided by policycoreutils-sandbox package). Unfortunately policycoreutils-python package does not require policycoreutils-sandbox package.

Comment 3 Daniel Walsh 2011-12-31 13:17:42 UTC
This is a tricky problem, since sandbox can be run as root and not require seunshare, I decided to leave it in the -python package, the sandbox package requires X which I don't want in this situation.   I think if you execute sandbox -X it will tell you to install the other package, I guess we could make sandbox -M also watch for this. 

I am open to suggestions on a better way to handle this, perhaps have the tool check for certain files and modify its options and have the policycoreutils-sandbox overwrite the sandbox man page with additional options.

Comment 4 Jan Kratochvil 2011-12-31 13:23:44 UTC
OK, thanks, I see it is more complicated.
I just thought it is some simple common forgotten package dependency.
Feel free to do whatever with this Bug.