Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 394315

Summary: SELinux support within sudo is still lacking
Product: Gentoo Linux Reporter: Sven Vermeulen (RETIRED) <swift>
Component: HardenedAssignee: Sven Vermeulen (RETIRED) <swift>
Status: VERIFIED FIXED    
Severity: normal CC: selinux
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 394329    
Bug Blocks:    

Description Sven Vermeulen (RETIRED) gentoo-dev 2011-12-11 11:42:36 UTC
Currently, using sudo as a means to delegate privileges is not fully functional with SELinux. For instance:

(1.) directly executing sudo commands ("sudo command") where the command would invoke a role transition as well (like "sudo /etc/init.d/local status") fails, the command runs in sysadm_sudo_t instead of sysadm_t
(2.) asking for a sudo shell ("sudo -i") fails, currently the way to get a shell is to use "sudo bash"

Reproducible: Always
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2011-12-26 16:57:32 UTC
(1.) will be resolved, (2.) is not supported upstream.
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2011-12-27 19:17:12 UTC
In hardened-dev overlay
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2012-01-14 20:09:00 UTC
Pushed to main tree, ~arch
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2012-02-26 10:08:47 UTC
Marked as stable in tree