Bug 726992 - SELinux is preventing /usr/bin/passwd from 'write' accesses on the sock_file control.
Summary: SELinux is preventing /usr/bin/passwd from 'write' accesses on the sock_file ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:81bfcbd5bb2...
: 726990 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-31 20:19 UTC by ralgh
Modified: 2011-08-01 12:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-01 12:25:17 UTC
Type: ---


Attachments (Terms of Use)

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.


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