Bug 624225

Summary: SELinux is preventing /usr/sbin/gdm-binary "create" access on gdm.
Product: [Fedora] Fedora Reporter: sp <pugacs>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:08fa3ea8b9f81ea34c91e1413fbf046dfd531dddb4c34d98d1a54443993d8fe2
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-15 12:44:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description sp 2010-08-14 20:45:07 UTC
Summary:

SELinux is preventing /usr/sbin/gdm-binary "create" access on gdm.

Detailed Description:

SELinux denied access requested by gdm-binary. It is not expected that this
access is required by gdm-binary and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:var_log_t:s0
Target Objects                gdm [ dir ]
Source                        gdm-binary
Source Path                   /usr/sbin/gdm-binary
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gdm-2.30.2-1.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-41.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux thinkpad 2.6.33.6-147.2.4.fc13.x86_64 #1 SMP
                              Fri Jul 23 17:14:44 UTC 2010 x86_64 x86_64
Alert Count                   15
First Seen                    Thu 05 Aug 2010 09:01:00 AM CEST
Last Seen                     Sat 14 Aug 2010 08:54:46 AM CEST
Local ID                      bf5f123e-62c8-4c7e-8466-7891c546f859
Line Numbers                  

Raw Audit Messages            

node=thinkpad type=AVC msg=audit(1281768886.277:14): avc:  denied  { create } for  pid=1580 comm="gdm-binary" name="gdm" scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_log_t:s0 tclass=dir

node=thinkpad type=SYSCALL msg=audit(1281768886.277:14): arch=c000003e syscall=83 success=no exit=-13 a0=419d54 a1=1ed a2=ffffffffffffffa8 a3=7fff39c3bfe0 items=0 ppid=1 pid=1580 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="gdm-binary" exe="/usr/sbin/gdm-binary" subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,gdm-binary,xdm_t,var_log_t,dir,create
audit2allow suggests:

#============= xdm_t ==============
allow xdm_t var_log_t:dir create;

Comment 1 Daniel Walsh 2010-08-15 12:44:46 UTC
Some how you /var/log/gdm directory got mislabeled.

restorecon -R -v /var/log

Should fix. 

Reopen if this happens again.

Comment 2 Daniel Walsh 2010-08-15 12:45:47 UTC
*** Bug 624226 has been marked as a duplicate of this bug. ***