Bug 831226 - SELinux is preventing /usr/sbin/usermod from 'read' accesses on the file passwd.
SELinux is preventing /usr/sbin/usermod from 'read' accesses on the file passwd.
Status: CLOSED DUPLICATE of bug 831229
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-06-12 10:10 EDT by Stef Walter
Modified: 2012-06-12 11:34 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-06-12 11:34:02 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Stef Walter 2012-06-12 10:10:33 EDT
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.4.0-1.fc17.x86_64
time:           Tue 12 Jun 2012 04:10:15 PM CEST

:SELinux is preventing /usr/sbin/usermod from 'read' accesses on the file passwd.
:*****  Plugin catchall (100. confidence) suggests  ***************************
:If you believe that usermod should be allowed read 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.
:allow this access for now by executing:
:# grep usermod /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:Additional Information:
:Source Context                unconfined_u:unconfined_r:useradd_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:sssd_var_lib_t:s0
:Target Objects                passwd [ file ]
:Source                        usermod
:Source Path                   /usr/sbin/usermod
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           shadow-utils-
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-128.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed)
:                              3.4.0-1.fc17.x86_64 #1 SMP Sun Jun 3 06:35:17 UTC
:                              2012 x86_64 x86_64
:Alert Count                   2
:First Seen                    Tue 12 Jun 2012 04:07:43 PM CEST
:Last Seen                     Tue 12 Jun 2012 04:07:43 PM CEST
:Local ID                      e9c14c24-51c1-4813-9c89-f39fddd1af46
:Raw Audit Messages
:type=AVC msg=audit(1339510063.556:242): avc:  denied  { read } for  pid=29460 comm="usermod" name="passwd" dev="sda1" ino=540854 scontext=unconfined_u:unconfined_r:useradd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sssd_var_lib_t:s0 tclass=file
:type=SYSCALL msg=audit(1339510063.556:242): arch=x86_64 syscall=open success=no exit=EACCES a0=7f01b2c65a70 a1=0 a2=7f01b1c71750 a3=7fffb0f515a0 items=0 ppid=5328 pid=29460 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts2 ses=6 comm=usermod exe=/usr/sbin/usermod subj=unconfined_u:unconfined_r:useradd_t:s0-s0:c0.c1023 key=(null)
:Hash: usermod,useradd_t,sssd_var_lib_t,file,read
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
Comment 1 Daniel Walsh 2012-06-12 11:34:02 EDT

*** This bug has been marked as a duplicate of bug 831229 ***

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