Bug 726992

Summary: SELinux is preventing /usr/bin/passwd from 'write' accesses on the sock_file control.
Product: [Fedora] Fedora Reporter: ralgh <bugs2rl>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 13CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:81bfcbd5bb25e3b18c0b4ebb51d9c8d6b980278b39e5106a4ddc1131eeb3573b
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-01 12:25:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description ralgh 2011-07-31 20:19:40 UTC
SELinux is preventing /usr/bin/passwd from 'write' accesses on the sock_file control.

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

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

Additional Information:
Source Context                unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:tmp_t:s0
Target Objects                control [ sock_file ]
Source                        passwd
Source Path                   /usr/bin/passwd
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           passwd-0.77-5.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-89.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.33.3-85.fc13.i686
                              #1 SMP Thu May 6 18:44:12 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Fr 22 Apr 2011 09:01:29 CEST
Last Seen                     Fr 22 Apr 2011 09:01:29 CEST
Local ID                      88a5fe97-3dcf-4f04-be19-418229450dca

Raw Audit Messages
type=AVC msg=audit(1303455689.584:36): avc:  denied  { write } for  pid=1767 comm="passwd" name="control" dev=sda8 ino=269506 scontext=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:tmp_t:s0 tclass=sock_file


type=SYSCALL msg=audit(1303455689.584:36): arch=i386 syscall=socketcall success=yes exit=0 a0=3 a1=bf83c270 a2=c45608 a3=4 items=0 ppid=1756 pid=1767 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=tty2 ses=3 comm=passwd exe=/usr/bin/passwd subj=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 key=(null)

Hash: passwd,passwd_t,tmp_t,sock_file,write

audit2allow

#============= passwd_t ==============
allow passwd_t tmp_t:sock_file write;

audit2allow -R

#============= passwd_t ==============
allow passwd_t tmp_t:sock_file write;

Comment 1 Miroslav Grepl 2011-08-01 12:23:49 UTC
*** Bug 726990 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2011-08-01 12:25:17 UTC
F13 is not longer supported. Please update to a newer version of Fedora.