Bug 593476

Summary: SELinux is preventing /usr/bin/who "getattr" access on /dev/pts/0.
Product: [Fedora] Fedora Reporter: Brian Whitehead <bwhitehd>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:bcf5096b1e768acbdc79c8d46f029cc77c458a15df4d91b570e97543744d5f24
Fixed In Version: selinux-policy-3.6.32-116.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-06-04 18:58:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Brian Whitehead 2010-05-18 21:35:22 UTC
Summary:

SELinux is preventing /usr/bin/who "getattr" access on /dev/pts/0.

Detailed Description:

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

SELinux denied access requested by who. It is not expected that this access is
required by who 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                system_u:system_r:munin_system_plugin_t:s0
Target Context                unconfined_u:object_r:user_devpts_t:s0
Target Objects                /dev/pts/0 [ chr_file ]
Source                        who
Source Path                   /usr/bin/who
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           coreutils-7.6-11.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-113.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.32.11-99.fc12.x86_64 #1 SMP Mon Apr 5 19:59:38
                              UTC 2010 x86_64 x86_64
Alert Count                   38
First Seen                    Tue 18 May 2010 01:20:23 PM CDT
Last Seen                     Tue 18 May 2010 04:30:19 PM CDT
Local ID                      b30188dd-c9b1-4b6e-9bc4-b2dad26e5d87
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1274218219.629:3489): avc:  denied  { getattr } for  pid=19388 comm="who" path="/dev/pts/0" dev=devpts ino=3 scontext=system_u:system_r:munin_system_plugin_t:s0 tcontext=unconfined_u:object_r:user_devpts_t:s0 tclass=chr_file

node=(removed) type=SYSCALL msg=audit(1274218219.629:3489): arch=c000003e syscall=4 success=yes exit=68719476864 a0=7ffff2a63030 a1=7ffff2a62e90 a2=7ffff2a62e90 a3=3a33312038312079 items=0 ppid=19387 pid=19388 auid=4294967295 uid=485 gid=468 euid=485 suid=485 fsuid=485 egid=468 sgid=468 fsgid=468 tty=(none) ses=4294967295 comm="who" exe="/usr/bin/who" subj=system_u:system_r:munin_system_plugin_t:s0 key=(null)



Hash String generated from  catchall,who,munin_system_plugin_t,user_devpts_t,chr_file,getattr
audit2allow suggests:
audit2allow is not installed.

Comment 1 Daniel Walsh 2010-05-19 13:01:19 UTC
Miroslav, probably should just add

term_getattr_all_ptys(munin_system_plugin_t)

Comment 2 Miroslav Grepl 2010-05-19 14:03:16 UTC
Dan, 
we also need to add

corecmd_exec_shell(munin_services_plugin_t)

Comment 3 Daniel Walsh 2010-05-19 17:43:20 UTC
ok

Comment 4 Miroslav Grepl 2010-05-21 11:22:02 UTC
Fixed in selinux-policy-3.6.32-116.fc12

Comment 5 Fedora Update System 2010-05-21 13:52:42 UTC
selinux-policy-3.6.32-116.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-116.fc12

Comment 6 Fedora Update System 2010-05-24 19:34:46 UTC
selinux-policy-3.6.32-116.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/selinux-policy-3.6.32-116.fc12

Comment 7 Fedora Update System 2010-06-04 18:57:33 UTC
selinux-policy-3.6.32-116.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.