Bug 969472 - 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 ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: i686
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-05-31 13:50 UTC by Jiří Martínek
Modified: 2013-06-08 03:33 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.12.1-48.fc19
Clone Of:
Environment:
Last Closed: 2013-06-08 03:33:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jiří Martínek 2013-05-31 13:50:00 UTC
Description of problem:
SELinux is preventing /usr/lib/polkit-1/polkitd from 'getattr' accesses on the filesystem /.

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

If you believe that polkitd should be allowed getattr access on the  filesystem 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 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.107-4.fc18.i686
Target RPM Packages           filesystem-3.1-2.fc18.i686
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.i686 #1 SMP Fri May
                              24 20:35:02 UTC 2013 i686 i686
Alert Count                   1
First Seen                    2013-05-31 00:55:14 CEST
Last Seen                     2013-05-31 00:55:14 CEST
Local ID                      d4177ec8-c3f0-409a-aaf7-d6260dba3ae9

Raw Audit Messages
type=AVC msg=audit(1369954514.95:37): avc:  denied  { getattr } for  pid=617 comm="polkitd" name="/" dev="sda2" ino=2 scontext=system_u:system_r:policykit_t:s0 tcontext=system_u:object_r:fs_t:s0 tclass=filesystem


type=SYSCALL msg=audit(1369954514.95:37): arch=i386 syscall=statfs64 success=no exit=EACCES a0=9e73188 a1=54 a2=bfb28b1c a3=9e73188 items=0 ppid=1 pid=617 auid=4294967295 uid=999 gid=999 euid=999 suid=999 fsuid=999 egid=999 sgid=999 fsgid=999 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
require {
	type policykit_t;
}

#============= policykit_t ==============
fs_getattr_xattr_fs(policykit_t)


Additional info:
reporter:       libreport-2.1.4
hashmarkername: setroubleshoot
kernel:         3.9.4-200.fc18.i686
type:           libreport

Potential duplicate: bug 908287

Comment 1 Miroslav Grepl 2013-06-04 12:11:13 UTC
Added.

Comment 2 Fedora Update System 2013-06-05 19:01:12 UTC
selinux-policy-3.12.1-48.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-48.fc19

Comment 3 Fedora Update System 2013-06-06 17:31:14 UTC
Package selinux-policy-3.12.1-48.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-48.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-10204/selinux-policy-3.12.1-48.fc19
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-06-08 03:33:28 UTC
selinux-policy-3.12.1-48.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


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