Bug 571930 - selinux not allowing desktop effects to be toggled on; denied execmem for compiz
Summary: selinux not allowing desktop effects to be toggled on; denied execmem for compiz
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-09 20:44 UTC by Jason Farrell
Modified: 2010-03-20 03:35 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.7.14-3.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-15 16:04:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jason Farrell 2010-03-09 20:44:10 UTC
Description of problem:
Wanted to try out the experimental 3D support in nouveau due in F13, so I installed mesa-dri-drivers-experimental, logged back in, and attempted to enable gnome desktop effects, but selinux prevented it. (After a quick 'setenforce 0' I'm happy to see that free nvidia 3d is at least working for desktop effects!)

Version-Release number of selected component (if applicable):
selinux-policy-3.7.11-1.fc13.noarch
selinux-policy-targeted-3.7.11-1.fc13.noarch
mesa-dri-drivers-experimental-7.8-0.18.fc13.i686



Additional info:

type=AVC msg=audit(1268166757.252:32317): avc:  denied  { execmem } for  pid=3667 comm="compiz" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=process
type=SYSCALL msg=audit(1268166757.252:32317): arch=40000003 syscall=192 success=no exit=-13 a0=0 a1=a00000 a2=7 a3=22 items=0 ppid=1 pid=3667 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=2 comm="compiz" exe="/usr/bin/compiz" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)
type=ANOM_ABEND msg=audit(1268166757.254:32318): auid=500 uid=500 gid=500 ses=2 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=3667 comm="compiz" sig=11

Comment 1 Jason Farrell 2010-03-09 21:17:56 UTC
fixed after a reboot. should that be necessary?

Comment 2 Daniel Walsh 2010-03-10 14:16:42 UTC
No.  I will change the label on compiz to be execmem_exec_t, which will allow this access.

chcon -t execmem_exec_t /usr/bin/compiz

Will do it for you until you get the update.

Fixed in selinux-policy-3.7.13-1.fc13

Comment 3 Dominick Grift 2010-03-10 19:01:28 UTC
I cannot confirm this on my system. Also using mesa-dri-drivers-experimental and desktop effects.

Comment 4 Dominick Grift 2010-03-10 19:22:41 UTC
I would like to be able to run compiz without it having execmem permission. There is afaik only this single report and it say's: "fixed after a reboot. should that be necessary?". I think we would have gotten more reports if compiz required execmem, even using mesa-dri-drivers-experimental.

By adding this file context specification i am forced to allow this or disable compiz. I cannot chcon -t bin_t /usr/bin/compiz after every policy update.

Comment 5 Daniel Walsh 2010-03-10 21:24:33 UTC
The reason we are not hearing this is most people have allow_execmem or allow_execstack turned on.  Nvidia driver is going to cause this headache.  I believe this will come back if he goes back to bin_t.

Comment 6 Fedora Update System 2010-03-12 19:44:15 UTC
selinux-policy-3.7.14-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.14-1.fc13

Comment 7 Fedora Update System 2010-03-14 13:38:07 UTC
selinux-policy-3.7.14-3.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.7.14-3.fc13

Comment 8 Jason Farrell 2010-03-15 16:04:47 UTC
Verified fixed with the new policy - thanks.

1) boot f13alpha live (persistence disabled)
2) # ll -Z `which compiz`
-rwxr-xr-x. root root system_u:object_r:bin_t:s0       /usr/bin/compiz
3) # yum --enablerepo updates-testing update selinux-policy
4) # ll -Z `which compiz`
-rwxr-xr-x. root root system_u:object_r:execmem_exec_t:s0 /usr/bin/compiz
5) # yum install mesa\*experimental
6) can now toggle desktop effects on without a selinux denial

Comment 9 Fedora Update System 2010-03-20 03:34:21 UTC
selinux-policy-3.7.14-3.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.