Bug 524275 - setroubleshoot: SELinux is preventing /usr/libexec/polkit-1/polkitd "getattr" access on /var/lib/polkit-1/localauthority/10-vendor.d/10-desktop-policy.pkla.
Summary: setroubleshoot: SELinux is preventing /usr/libexec/polkit-1/polkitd "getattr"...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:5401bf20c83...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-09-18 15:48 UTC by Haluk Dogan
Modified: 2009-09-18 21:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-18 21:11:02 UTC


Attachments (Terms of Use)

Description Haluk Dogan 2009-09-18 15:48:02 UTC
The following was filed automatically by setroubleshoot:

Summary:

SELinux is preventing /usr/libexec/polkit-1/polkitd "getattr" access on
/var/lib/polkit-1/localauthority/10-vendor.d/10-desktop-policy.pkla.

Detailed Description:

SELinux denied access requested by polkitd. It is not expected that this access
is required by polkitd 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://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:policykit_t:s0-s0:c0.c1023
Target Context                system_u:object_r:var_lib_t:s0
Target Objects                /var/lib/polkit-1/localauthority/10-vendor.d/10
                              -desktop-policy.pkla [ file ]
Source                        polkitd
Source Path                   /usr/libexec/polkit-1/polkitd (deleted)
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           polkit-0.95-0.git20090913.2.fc12
Target RPM Packages           polkit-desktop-policy-0.95-0.git20090913.2.fc12
Policy RPM                    selinux-policy-3.6.32-1.fc12
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31-23.fc12.i686 #1 SMP Wed Sep 16
                              16:09:25 EDT 2009 i686 i686
Alert Count                   395
First Seen                    Fri 18 Sep 2009 12:25:09 PM EEST
Last Seen                     Fri 18 Sep 2009 06:42:41 PM EEST
Local ID                      a4fb4879-d4b8-4d18-bfc3-6816316dd683
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1253288561.277:274): avc:  denied  { getattr } for  pid=1431 comm="polkitd" path="/var/lib/polkit-1/localauthority/10-vendor.d/10-desktop-policy.pkla" dev=sda5 ino=131636 scontext=system_u:system_r:policykit_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1253288561.277:274): arch=40000003 syscall=196 success=no exit=-13 a0=98b59b8 a1=bfb492cc a2=288ff4 a3=98b1470 items=0 ppid=1 pid=1431 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="polkitd" exe="/usr/libexec/polkit-1/polkitd" subj=system_u:system_r:policykit_t:s0-s0:c0.c1023 key=(null)


audit2allow suggests:

#============= policykit_t ==============
allow policykit_t var_lib_t:file getattr;

Comment 1 Daniel Walsh 2009-09-18 21:11:02 UTC
Pleasre install the latest policy and run 

restorecon -R -v /var/lib


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