Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280521 - update portage selinux support
Summary: update portage selinux support
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 210077 288499
  Show dependency tree
 
Reported: 2009-08-06 02:07 UTC by Chris PeBenito (RETIRED)
Modified: 2009-10-11 00:58 UTC (History)
0 users

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


Attachments
portage code patch (portage-selinux.diff,4.37 KB, patch)
2009-08-06 02:08 UTC, Chris PeBenito (RETIRED)
Details | Diff
portage ebuild patch (portage-selinux-ebuild.diff,617 bytes, patch)
2009-08-06 02:08 UTC, Chris PeBenito (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.