Bug 968568 - SELinux is preventing /usr/bin/Xorg from using the 'execmem' accesses on a process.
SELinux is preventing /usr/bin/Xorg from using the 'execmem' accesses on a pr...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
18
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:ba9fc201617b42432710f7e7774...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-29 16:46 EDT by Moez Roy
Modified: 2013-06-04 16:48 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-05-29 17:05:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Moez Roy 2013-05-29 16:46:18 EDT
Description of problem:
SELinux is preventing /usr/bin/Xorg from using the 'execmem' accesses on a process.

*****  Plugin catchall_boolean (89.3 confidence) suggests  *******************

If you want to allows XServer to execute writable memory
Then you must tell SELinux about this by enabling the 'xserver_execmem' boolean.
You can read 'xserver_selinux' man page for more details.
Do
setsebool -P xserver_execmem 1

*****  Plugin catchall (11.6 confidence) suggests  ***************************

If you believe that Xorg should be allowed execmem access on processes labeled xserver_t by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep Xorg /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:xserver_t:s0-s0:c0.c1023
Target Context                system_u:system_r:xserver_t:s0-s0:c0.c1023
Target Objects                 [ process ]
Source                        Xorg
Source Path                   /usr/bin/Xorg
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xorg-x11-server-Xorg-1.13.3-3.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-96.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.4-200.fc18.x86_64 #1 SMP Fri
                              May 24 20:10:49 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-05-29 13:44:08 PDT
Last Seen                     2013-05-29 13:44:08 PDT
Local ID                      1f6a5376-c73f-440e-b141-ffd02fbca3a9

Raw Audit Messages
type=AVC msg=audit(1369860248.809:114): avc:  denied  { execmem } for  pid=955 comm="Xorg" scontext=system_u:system_r:xserver_t:s0-s0:c0.c1023 tcontext=system_u:system_r:xserver_t:s0-s0:c0.c1023 tclass=process


type=SYSCALL msg=audit(1369860248.809:114): arch=x86_64 syscall=mmap success=no exit=EACCES a0=7f7a093fc000 a1=1f0000 a2=7 a3=812 items=0 ppid=785 pid=955 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=Xorg exe=/usr/bin/Xorg subj=system_u:system_r:xserver_t:s0-s0:c0.c1023 key=(null)

Hash: Xorg,xserver_t,xserver_t,process,execmem

audit2allow

#============= xserver_t ==============
#!!!! This avc can be allowed using the boolean 'xserver_execmem'

allow xserver_t self:process execmem;

audit2allow -R
require {
	type xserver_t;
	class process execmem;
}

#============= xserver_t ==============
#!!!! This avc can be allowed using the boolean 'xserver_execmem'

allow xserver_t self:process execmem;


Additional info:
reporter:       libreport-2.1.4
hashmarkername: setroubleshoot
kernel:         3.9.4-200.fc18.x86_64
type:           libreport
Comment 1 Daniel Walsh 2013-05-29 17:05:07 EDT
Alert tells you what to do.  ****  Plugin catchall_boolean (89.3 confidence) suggests  *******************

If you want to allows XServer to execute writable memory
Then you must tell SELinux about this by enabling the 'xserver_execmem' boolean.
You can read 'xserver_selinux' man page for more details.
Do
setsebool -P xserver_execmem 1

Are you using nvidia drivers?
Comment 2 Moez Roy 2013-05-29 20:55:36 EDT
(In reply to Daniel Walsh from comment #1)
> Alert tells you what to do.  ****  Plugin catchall_boolean (89.3 confidence)
> suggests  *******************
> 
> If you want to allows XServer to execute writable memory
> Then you must tell SELinux about this by enabling the 'xserver_execmem'
> boolean.
> You can read 'xserver_selinux' man page for more details.
> Do
> setsebool -P xserver_execmem 1
> 
> Are you using nvidia drivers?

Yes I am using the nvidia drivers.
Comment 3 Daniel Walsh 2013-06-04 16:48:42 EDT
THen you need to turn on the boolean.

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