Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 391187 - x11-base/xorg-server-1.11.2-r1: add new USE flags: selinux
Summary: x11-base/xorg-server-1.11.2-r1: add new USE flags: selinux
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: SE Linux Bugs
URL: http://pkgs.fedoraproject.org/gitweb/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-21 04:21 UTC by iGentoo
Modified: 2012-04-22 11:48 UTC (History)
1 user (show)

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


Attachments
xorg-server-1.11.2-r1.ebuild.diff (xorg-server-1.11.2-r1.ebuild.diff,1.04 KB, patch)
2011-11-21 04:23 UTC, iGentoo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description iGentoo 2011-11-21 04:21:55 UTC
--enable-xselinux       Build SELinux extension

Platform: amd64 x86

Reproducible: Always
Comment 1 iGentoo 2011-11-21 04:23:19 UTC
Created attachment 293261 [details, diff]
xorg-server-1.11.2-r1.ebuild.diff
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2011-12-26 13:19:12 UTC
What happens when this is enabled? It looks like it triggers the SELinux extensions for xorg, have you tested these? I'm personally more in favor of using a new USE flag for selinux extensions (xselinux or so) so that other applications that use such extensions (like Postgresql for the SEPostgresql server) can switch this as well.
Comment 3 iGentoo 2012-01-10 04:22:35 UTC
xorg-server[ --enable-xselinux --enable-record ] + nouveau
We could audit some application which requiring xorg at runtime via /var/log/Xorg.0.log:
cat /var/log/Xorg.*.log* | audit2allow
...
selinux policy rules
...

xorg-server[ --enable-xselinux --enable-record ] + nvidia
cat /var/log/Xorg.*.log* | audit2allow
empty...
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2012-04-05 18:40:40 UTC
Just had a nice read on it. The XSELinux support is to introduce additional SELinux support in Xorg, but for Xorg-specific calls and objects. The article I read also stipulated that it doesn't "just work" for all cases and that the (reference) policy needs some updates as well.

I suggest to let this rest for a while, possible hitting it with USE="xselinux" (which enables SELinux extension support) which we can also introduce for Postgresql then (and other applications that introduce additional security classes and privileges for their inner working).
Comment 5 Sven Vermeulen (RETIRED) gentoo-dev 2012-04-22 11:48:17 UTC
I'm going to mark this as WONTFIX for now, primarily because I don't have the resources to properly test and support this. If a developer wants to take this up, I'll gladly reopen.