Bug 211662

Summary: avc denied for procmail to search autofs
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Current Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-03-28 20:06:33 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 Orion Poplawski 2006-10-20 17:49:31 UTC
Description of problem:

Running in permissive mode.  Our main mail server automount home directories
locally (bind mounts).  We're seeing:

type=AVC msg=audit(1161365921.208:29404): avc:  denied  { search } for 
pid=15109 comm="procmail" name="/" dev=autofs ino=6125
scontext=system_u:system_r:procmail_t:s0 tcontext=system_u:object_r:autofs_t:s0
tclass=dir

Not sure if this would actually break procmail in enforcing mode, but I'm
guessing it would.

Version-Release number of selected component (if applicable):
selinux-policy-2.3.7-2.fc5

Comment 1 W. Michael Petullo 2006-10-30 00:17:18 UTC
I have the same problem, but I "manually" mount /home.  The boolean
use_nfs_home_dirs is set to "on".  FC6, selinux-policy-targeted-2.3.18-10.

type=AVC msg=audit(1162167146.347:183): avc:  denied  { search } for  pid=2586
comm="local" name="" dev=0:10 ino=884737
scontext=system_u:system_r:postfix_local_t:s0
tcontext=system_u:object_r:nfs_t:s0 tclass=dir
type=SYSCALL msg=audit(1162167146.347:183): arch=14 syscall=196 success=yes
exit=-13 a0=8080c00 a1=7fb40258 a2=7fb403f0 a3=1f4 items=0 ppid=1970 pid=2586
auid=4294967295 uid=0 gid=0 euid=500 suid=0 fsuid=500 egid=500 sgid=0 fsgid=500
tty=(none) comm="local" exe="/usr/libexec/postfix/local"
subj=system_u:system_r:postfix_local_t:s0 key=(null)

Comment 2 W. Michael Petullo 2006-11-01 20:35:09 UTC
See bug #212893 (RAWHIDE)?

Comment 3 Orion Poplawski 2006-11-02 16:44:08 UTC
(In reply to comment #2)
> See bug #212893 (RAWHIDE)?

May be your issue (tcontext=nfs_t), but not exactly mine (tcontext=autofs_t).

Comment 4 Daniel Walsh 2006-11-03 15:04:10 UTC
You can use audit2allow -M local < /var/log/messages
to generate local policy to make this work.

I am fixing in rawhide/FC6/RHEL5 and hope to backport to FC5

Comment 5 Daniel Walsh 2007-03-28 20:06:33 UTC
Closing bugs