Bug 541993

Summary: SELinux is preventing polkit-read-aut (polkit_auth_t) "write" to /var/log/gdm/:0-greeter.log (xserver_log_t).
Product: [Fedora] Fedora Reporter: Bruce Barbour <bbarbour>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: bbarbour, dwalsh, lyle.lasheimok, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:667c0cd19f368b19f2aa705d46bff815f5bc99af50a72a89d8a7f28bf4195d85
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-01 15:38:44 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 Bruce Barbour 2009-11-27 20:55:28 UTC
Summary:

SELinux is preventing polkit-read-aut (polkit_auth_t) "write" to
/var/log/gdm/:0-greeter.log (xserver_log_t).

Detailed Description:

[polkit-read-aut has a permissive type (polkit_auth_t). This access was not
denied.]

SELinux denied access requested by polkit-read-aut. It is not expected that this
access is required by polkit-read-aut 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:

Sometimes labeling problems can cause SELinux denials. You could try to restore
the default system file context for /var/log/gdm/:0-greeter.log,

restorecon -v '/var/log/gdm/:0-greeter.log'

If this does not work, there is currently no automatic way to allow this access.
Instead, you can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Or you can disable
SELinux protection altogether. Disabling SELinux protection is not recommended.
Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi)
against this package.

Additional Information:

Source Context                system_u:system_r:polkit_auth_t:s0-s0:c0.c1023
Target Context                system_u:object_r:xserver_log_t:s0
Target Objects                /var/log/gdm/:0-greeter.log [ file ]
Source                        polkit-read-aut
Source Path                   /usr/libexec/polkit-read-auth-helper
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           PolicyKit-0.9-4.fc10
Target RPM Packages           
Policy RPM                    selinux-policy-3.5.13-40.fc10
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall_file
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.27.12-170.2.5.fc10.i686 #1 SMP Wed Jan 21
                              02:09:37 EST 2009 i686 i686
Alert Count                   34
First Seen                    Sun 15 Feb 2009 10:24:13 AM PST
Last Seen                     Sun 15 Feb 2009 02:48:33 PM PST
Local ID                      fc958739-dc1c-4fc5-a7fb-5fb5cca45a96
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1234738113.508:9): avc:  denied  { write } for  pid=2525 comm="polkit-read-aut" path="/var/log/gdm/:0-greeter.log" dev=dm-0 ino=2851532 scontext=system_u:system_r:polkit_auth_t:s0-s0:c0.c1023 tcontext=system_u:object_r:xserver_log_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1234738113.508:9): arch=40000003 syscall=11 success=yes exit=0 a0=67eafb4 a1=bfbda520 a2=bfbdaf3c a3=bfbda520 items=0 ppid=2490 pid=2525 auid=4294967295 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=87 sgid=87 fsgid=87 tty=(none) ses=4294967295 comm="polkit-read-aut" exe="/usr/libexec/polkit-read-auth-helper" subj=system_u:system_r:polkit_auth_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.5.13-40.fc10,catchall_file,polkit-read-aut,polkit_auth_t,xserver_log_t,file,write
audit2allow suggests:

#============= polkit_auth_t ==============
allow polkit_auth_t xserver_log_t:file write;

Comment 1 Daniel Walsh 2009-12-01 15:38:44 UTC

*** This bug has been marked as a duplicate of bug 538428 ***