Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194778 - /usr/sbin/xm (of app-emulation/xen-tools-3.1.0-r1) policy/path problem with symlink /usr/bin/env
Summary: /usr/sbin/xm (of app-emulation/xen-tools-3.1.0-r1) policy/path problem with s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-05 08:50 UTC by gentoo
Modified: 2009-12-16 15:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gentoo 2007-10-05 08:50:39 UTC
executing /usr/sbin/xm (of app-emulation/xen-tools-3.1.0-r1) as sysadm_t in selinux enforced mode does not work.

 # xm list
 bash: /usr/sbin/xm: /usr/bin/env: bad interpreter: Permission denied


Reproducible: Always




Solution:

xm has the symlink /usr/bin/env to get the path of python. Therefore we could
change the path in /usr/sbin/xm from /usr/bin/env to /bin/env (the real script-location)

or

Change the policy.
Comment 1 Chris PeBenito (RETIRED) gentoo-dev 2009-12-16 15:06:17 UTC
should be fixed in current 2.x policy.  please reopen if this is not the case.