Bug 732710 - SELinux is preventing /sbin/unix_chkpwd from 'getattr' accesses on the filesystem /sys.
Summary: SELinux is preventing /sbin/unix_chkpwd from 'getattr' accesses on the filesy...
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
Whiteboard: setroubleshoot_trace_hash:fddee9be9c6...
Depends On:
TreeView+ depends on / blocked
Reported: 2011-08-23 11:04 UTC by avignon
Modified: 2011-08-23 13:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2011-08-23 13:37:29 UTC

Attachments (Terms of Use)

Description avignon 2011-08-23 11:04:28 UTC
SELinux is preventing /sbin/unix_chkpwd from 'getattr' accesses on the filesystem /sys.

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

If you believe that unix_chkpwd should be allowed getattr access on the sys filesystem by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# grep unix_chkpwd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:chkpwd_t:s0-s0:c0.c1023
Target Context                system_u:object_r:sysfs_t:s0
Target Objects                /sys [ filesystem ]
Source                        unix_chkpwd
Source Path                   /sbin/unix_chkpwd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           pam-1.1.3-8.fc15
Target RPM Packages           filesystem-2.4.41-1.fc15
Policy RPM                    selinux-policy-3.9.16-38.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) #1 SMP
                              Tue Aug 16 04:24:09 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Tue 23 Aug 2011 01:01:01 PM CEST
Last Seen                     Tue 23 Aug 2011 01:01:01 PM CEST
Local ID                      188b1b15-e5dc-4a55-aa77-a2d8cddd1559

Raw Audit Messages
type=AVC msg=audit(1314097261.325:107): avc:  denied  { getattr } for  pid=5443 comm="unix_chkpwd" name="/" dev=sysfs ino=1 scontext=system_u:system_r:chkpwd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sysfs_t:s0 tclass=filesystem

type=SYSCALL msg=audit(1314097261.325:107): arch=i386 syscall=statfs64 success=yes exit=0 a0=1269e7 a1=54 a2=bfcd263c a3=1269e7 items=0 ppid=5441 pid=5443 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=unix_chkpwd exe=/sbin/unix_chkpwd subj=system_u:system_r:chkpwd_t:s0-s0:c0.c1023 key=(null)

Hash: unix_chkpwd,chkpwd_t,sysfs_t,filesystem,getattr


#============= chkpwd_t ==============
allow chkpwd_t sysfs_t:filesystem getattr;

audit2allow -R

#============= chkpwd_t ==============
allow chkpwd_t sysfs_t:filesystem getattr;

Comment 1 Miroslav Grepl 2011-08-23 13:37:29 UTC
You probably need to complete an update to Rawhide.

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