Skip to contentSkip to conversation

Question about XACE/X-SELinux

DISCUSSION T S 1 participant 1 message Jun 18, 2008 SELinux security module

lore
Share & tools
lore

T S

author
#0 lore raw
Quoted 3 lines
Quoted 3 lines

Hello,

I just want to try functionalities X-SELinux, such as prohibiting cut

and

Quoted 2 lines
Quoted 2 lines

paste.
Since the below changelog(URL) says X-SELinux functionalities are

turned off

Quoted 28 lines
Quoted 28 lines

by default,
I think I need to turn on at first.
I appreciate someone tell me how to turn on.

Quoted 1 line

http://lwn.net/Articles/283539/

I am using Fedora Core9, xorg-server-Xorg-1.4.99.902-3.20080612, and GNOME( meaning just after FC9 and yum update).

I thought X-SELinux functionalities are turned on by default in FC9, so I tried the below steps.
1) setsebool xserver_object_manager=true
2) insert loadable module like below. because I was expecting some avc logs were generated if I tried cut and paste.

Quoted 6 lines

policy_module(test, 1.0.0)
gen_require(`
attribute domain;
class x_synthetic_event { send receive };
')
auditallow domain domain:x_synthetic_event {send receive};

3) setenforce 1
4) reboot GNOME( init 3 and init 5)
5) trying cut&paste from a window to others. No avclogs are found. Only found "Loading extension SELinux" in /var/log/Xorg.0.org.

I appreciate someone tell me what I am missing here.

Quoted 8 lines
Quoted 8 lines

Regards,
K

Need cash? Click to get an emergency loan, bad credit ok

_______________________________________________________________
Get the FREE email that has everyone talking at

http://www.mail2world.com

Quoted 1 line
Quoted 1 line

Unlimited Email Storage - POP3 - Calendar - SMS - Translator - Much

More!

Quoted 19 lines

Add this to xorg.conf

Section "Extensions"
Option "SELinux" "Enable"
EndSection

Thr default enforcing state is Permissive.

Add this to set Enforcing state in X

Section "Module"
SubSection "extmod"
Option "SELinux Enforcing"
EndSubSection
EndSection

Add this to have the X Enforcing mode track the system enforcing state

Quoted 7 lines

Section "Module"
SubSection "extmod"
Option "SELinux TrackSystem"
EndSubSection
EndSection

xdpyinfo will tell you if the SELinux extension is enabled.

It works! thanks!
.
Regards,
K

All is not lost! Click now for professional data recovery.
<http://tagline.bidsystem.com/fc/Ioyw36XJLjK4UhGstZZSQ3Hk0AZo6rvZS3retV8
f9VUsqNp68F5S4h/>

<span id=m2wTl><p><font face="Arial, Helvetica, sans-serif" size="2" style="font-size:13.5px">_______________________________________________________________<BR>Get the FREE email that has everyone talking at <a href=http://www.mail2world.com target=new>http://www.mail2world.com</a><br> <font color=#999999>Unlimited Email Storage &#150; POP3 &#150; Calendar &#150; SMS &#150; Translator &#150; Much More!</font></font></span>