Bug 912440 - SELinux is preventing /usr/sbin/condor_master from 'getattr' accesses on the file /etc/passwd.
Summary: SELinux is preventing /usr/sbin/condor_master from 'getattr' accesses on the ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:4ccf029d87dc5d601d8e57f4532...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-18 16:45 UTC by Thomas Spura
Modified: 2013-02-24 09:00 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-24 09:00:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Thomas Spura 2013-02-18 16:45:30 UTC
Description of problem:
I updated from F17 to F18
SELinux is preventing /usr/sbin/condor_master from 'getattr' accesses on the file /etc/passwd.

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

If you believe that condor_master should be allowed getattr access on the passwd file 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 condor_master /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:condor_master_t:s0
Target Context                unconfined_u:object_r:passwd_file_t:s0
Target Objects                /etc/passwd [ file ]
Source                        condor_master
Source Path                   /usr/sbin/condor_master
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           condor-7.9.1-0.1.fc18.3.x86_64
Target RPM Packages           setup-2.8.57-1.fc18.noarch
Policy RPM                    selinux-policy-3.11.1-76.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.7-201.fc18.x86_64 #1 SMP Tue
                              Feb 12 22:35:01 UTC 2013 x86_64 x86_64
Alert Count                   1244725
First Seen                    2013-01-29 12:42:17 CET
Last Seen                     2013-02-18 17:44:33 CET
Local ID                      aa548f0b-2189-48af-8a74-9ed8190fd94c

Raw Audit Messages
type=AVC msg=audit(1361205873.562:53101): avc:  denied  { getattr } for  pid=8618 comm="condor_master" path="/etc/passwd" dev="dm-1" ino=61859 scontext=system_u:system_r:condor_master_t:s0 tcontext=unconfined_u:object_r:passwd_file_t:s0 tclass=file


type=SYSCALL msg=audit(1361205873.562:53101): arch=x86_64 syscall=fstat success=no exit=EACCES a0=3 a1=7ffff43ac620 a2=7ffff43ac620 a3=0 items=0 ppid=1 pid=8618 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=condor_master exe=/usr/sbin/condor_master subj=system_u:system_r:condor_master_t:s0 key=(null)

Hash: condor_master,condor_master_t,passwd_file_t,file,getattr

audit2allow

#============= condor_master_t ==============
allow condor_master_t passwd_file_t:file getattr;

audit2allow -R

#============= condor_master_t ==============
allow condor_master_t passwd_file_t:file getattr;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.7-201.fc18.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-02-18 16:53:17 UTC
225a1f800afabc51e8a88288f12b71ae58bf36ea fixes this in Rawhide.

Comment 2 Miroslav Grepl 2013-02-19 13:37:50 UTC
Backported.

Comment 3 Fedora Update System 2013-02-22 08:21:30 UTC
selinux-policy-3.11.1-81.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-81.fc18

Comment 4 Fedora Update System 2013-02-24 09:00:24 UTC
selinux-policy-3.11.1-81.fc18 has been pushed to the Fedora 18 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.