Bug 560390 - SELinux is preventing /usr/libexec/polkit-1/polkit-agent-helper-1 "getattr" access on /root/.pam-face-authentication/config/mace.xml.
Summary: SELinux is preventing /usr/libexec/polkit-1/polkit-agent-helper-1 "getattr" a...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:1e6608ec63e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-31 13:03 UTC by Elad Alfassa
Modified: 2010-02-11 14:41 UTC (History)
2 users (show)

Fixed In Version: 3.6.32-84.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-11 14:41:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Elad Alfassa 2010-01-31 13:03:20 UTC
Summary:

SELinux is preventing /usr/libexec/polkit-1/polkit-agent-helper-1 "getattr"
access on /root/.pam-face-authentication/config/mace.xml.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by polkit-agent-he. It is not expected that this
access is required by polkit-agent-he 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                unconfined_u:unconfined_r:policykit_auth_t:s0-s0:c
                              0.c1023
Target Context                unconfined_u:object_r:admin_home_t:s0
Target Objects                /root/.pam-face-authentication/config/mace.xml [
                              file ]
Source                        polkit-agent-he
Source Path                   /usr/libexec/polkit-1/polkit-agent-helper-1
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           polkit-0.95-0.git20090913.3.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-78.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.12-174.2.3.fc12.x86_64 #1
                              SMP Mon Jan 18 19:52:07 UTC 2010 x86_64 x86_64
Alert Count                   2
First Seen                    IST 12:24:58 2010 ינו 31 א'
Last Seen                     IST 14:49:50 2010 ינו 31 א'
Local ID                      3bf91f79-acbd-4e2b-8b8b-638b9bc397fe
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1264942190.614:166): avc:  denied  { getattr } for  pid=7713 comm="polkit-agent-he" path="/root/.pam-face-authentication/config/mace.xml" dev=sda6 ino=1835041 scontext=unconfined_u:unconfined_r:policykit_auth_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1264942190.614:166): arch=c000003e syscall=5 success=yes exit=4294967424 a0=e a1=7fff70d00400 a2=7fff70d00400 a3=0 items=0 ppid=1658 pid=7713 auid=500 uid=500 gid=500 euid=0 suid=0 fsuid=0 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="polkit-agent-he" exe="/usr/libexec/polkit-1/polkit-agent-helper-1" subj=unconfined_u:unconfined_r:policykit_auth_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-78.fc12,catchall,polkit-agent-he,policykit_auth_t,admin_home_t,file,getattr
audit2allow suggests:

#============= policykit_auth_t ==============
allow policykit_auth_t admin_home_t:file getattr;

Comment 1 Daniel Walsh 2010-02-01 19:55:05 UTC
selinux does not allow you to login as root.  If you want to login as root you will need to customize the policy.

If you do not want to login as root remove this directory form /root and the avc should go away.

rm -rf /root/.pam-face-authentication

Comment 2 Elad Alfassa 2010-02-02 13:10:49 UTC
I didn't try to login as root. I tried to use pam-face-authentication with beesu in order to start gedit as root (to edit a configuration file).

Comment 3 Daniel Walsh 2010-02-02 14:23:41 UTC
Did it work?  What gets put in /root/.pam-face-authentication

Comment 4 Daniel Walsh 2010-02-02 14:27:07 UTC
Miroslav, lets add

userdom_read_admin_home_files(policykit_auth_t)

Comment 5 Miroslav Grepl 2010-02-02 14:30:56 UTC
Added to selinux-policy-3.6.32-81.fc12

Comment 6 Fedora Update System 2010-02-03 23:20:53 UTC
selinux-policy-3.6.32-82.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-82.fc12

Comment 7 Fedora Update System 2010-02-05 01:44:31 UTC
selinux-policy-3.6.32-84.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1492

Comment 8 Fedora Update System 2010-02-11 14:37:15 UTC
selinux-policy-3.6.32-84.fc12 has been pushed to the Fedora 12 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.