Bug 908287 - SELinux is preventing /usr/lib/polkit-1/polkitd from 'getattr' accesses on the filesystem /.
Summary: SELinux is preventing /usr/lib/polkit-1/polkitd from 'getattr' accesses on th...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:95fd7551631c859ee727be808a9...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-06 10:46 UTC by Nicolas Mailhot
Modified: 2014-09-13 19:00 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-02-08 20:50:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nicolas Mailhot 2013-02-06 10:46:08 UTC
Description of problem:
SELinux is preventing /usr/lib/polkit-1/polkitd from 'getattr' accesses on the filesystem /.

*****  Plugin catchall (100. confidence) suggests  ***************************

If vous pensez que polkitd devrait être autorisé à accéder getattr sur  filesystem par défaut.
Then vous devriez rapporter ceci en tant qu'anomalie.
Vous pouvez générer un module de stratégie local pour autoriser cet accès.
Do
autoriser cet accès pour le moment en exécutant :
# grep polkitd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:policykit_t:s0
Target Context                system_u:object_r:fs_t:s0
Target Objects                / [ filesystem ]
Source                        polkitd
Source Path                   /usr/lib/polkit-1/polkitd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           polkit-0.110-1.fc19.x86_64
Target RPM Packages           filesystem-3.2-2.fc19.x86_64
Policy RPM                    selinux-policy-3.12.1-10.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.8.0-0.rc6.git2.1.fc19.x86_64 #1
                              SMP Tue Feb 5 15:50:22 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-02-06 11:34:06 CET
Last Seen                     2013-02-06 11:34:06 CET
Local ID                      addd8110-feb4-422f-8f9a-f2d7e7105f62

Raw Audit Messages
type=AVC msg=audit(1360146846.560:41): avc:  denied  { getattr } for  pid=818 comm="polkitd" name="/" dev="dm-0" ino=2 scontext=system_u:system_r:policykit_t:s0 tcontext=system_u:object_r:fs_t:s0 tclass=filesystem


type=SYSCALL msg=audit(1360146846.560:41): arch=x86_64 syscall=statfs success=no exit=EACCES a0=7fd3bbf85950 a1=7fffad229350 a2=7fd3bbf77f20 a3=7fffad2290f0 items=0 ppid=1 pid=818 auid=4294967295 uid=989 gid=985 euid=989 suid=989 fsuid=989 egid=985 sgid=985 fsgid=985 ses=4294967295 tty=(none) comm=polkitd exe=/usr/lib/polkit-1/polkitd subj=system_u:system_r:policykit_t:s0 key=(null)

Hash: polkitd,policykit_t,fs_t,filesystem,getattr

audit2allow

#============= policykit_t ==============
allow policykit_t fs_t:filesystem getattr;

audit2allow -R

#============= policykit_t ==============
allow policykit_t fs_t:filesystem getattr;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.0-0.rc6.git2.1.fc19.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-02-08 20:50:56 UTC
Fixed in selinux-policy-3.12.1-11.fc19.noarch


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