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

Bug 280521

Summary: update portage selinux support
Product: Portage Development Reporter: Chris PeBenito (RETIRED) <pebenito>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: 2.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 210077, 288499    
Attachments: portage code patch
portage ebuild patch

Description Chris PeBenito (RETIRED) gentoo-dev 2009-08-06 02:07:17 UTC
Current portage's selinux uses the selinux_aux (python-selinux) python bindings which are hand written wrappers of libselinux.  Libselinux now provides its own swig wrapper.  This patch switches portage over to use the libselinux swig wrapper.  It also changes the portage selinux functions to closely resemble the functions they replace for better understanding, eg, selinux.copyfile() for shutil.copyfile().  The patch also removes the special case fallback to /bin/mv during install, since the SELinux-enabled /bin/mv now does the right thing SELinux-wise without additional commandline switches.

The second patch updates the portage ebuild to change the selinux? dependency from python-selinux to libselinux.

Please apply.
Comment 1 Chris PeBenito (RETIRED) gentoo-dev 2009-08-06 02:08:07 UTC
Created attachment 200329 [details, diff]
portage code patch
Comment 2 Chris PeBenito (RETIRED) gentoo-dev 2009-08-06 02:08:41 UTC
Created attachment 200331 [details, diff]
portage ebuild patch
Comment 3 Zac Medico gentoo-dev 2009-08-06 20:55:09 UTC
Thanks, this is in svn r13937.
Comment 4 Zac Medico gentoo-dev 2009-08-10 00:27:29 UTC
This is fixed in 2.2_rc37.
Comment 5 Zac Medico gentoo-dev 2009-10-11 00:58:06 UTC
This is fixed in 2.1.7.