Bug 861476

Summary: SELinux is preventing /usr/sbin/automount from 'search' accesses on the directory vm.
Product: [Fedora] Fedora Reporter: Frank Murphy <frankly3d>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:52076a0432c632e90102df3c8a166fea11fdcfc2dedfb4e2d2dc65cf36873b4b
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-02 09:44:09 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:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description Frank Murphy 2012-09-28 18:30:11 UTC
Additional info:
libreport version: 2.0.14
kernel:         3.6.0-0.rc7.git1.4.fc18.x86_64

description:
:SELinux is preventing /usr/sbin/automount from 'search' accesses on the directory vm.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that automount should be allowed search access on the vm directory 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 automount /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:automount_t:s0
:Target Context                system_u:object_r:sysctl_vm_t:s0
:Target Objects                vm [ dir ]
:Source                        automount
:Source Path                   /usr/sbin/automount
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           autofs-5.0.7-3.fc19.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.11.1-18.fc18.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.0-0.rc7.git1.4.fc18.x86_64 #1
:                              SMP Tue Sep 25 19:55:25 UTC 2012 x86_64 x86_64
:Alert Count                   2
:First Seen                    2012-09-28 12:20:02 UTC
:Last Seen                     2012-09-28 16:15:02 UTC
:Local ID                      b467ecc9-5c3d-46c2-a288-02a7d643e2cd
:
:Raw Audit Messages
:type=AVC msg=audit(1348848902.69:83): avc:  denied  { search } for  pid=1687 comm="automount" name="vm" dev="proc" ino=13954 scontext=system_u:system_r:automount_t:s0 tcontext=system_u:object_r:sysctl_vm_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1348848902.69:83): arch=x86_64 syscall=open success=no exit=EACCES a0=7f36de099fa0 a1=80000 a2=81 a3=21220 items=0 ppid=1 pid=1687 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=automount exe=/usr/sbin/automount subj=system_u:system_r:automount_t:s0 key=(null)
:
:Hash: automount,automount_t,sysctl_vm_t,dir,search
:
:audit2allow
:
:#============= automount_t ==============
:allow automount_t sysctl_vm_t:dir search;
:
:audit2allow -R
:
:#============= automount_t ==============
:allow automount_t sysctl_vm_t:dir search;
:

Comment 1 Frank Murphy 2012-09-28 18:30:14 UTC
Created attachment 618717 [details]
File: type

Comment 2 Frank Murphy 2012-09-28 18:30:16 UTC
Created attachment 618718 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-10-02 09:44:09 UTC
Added.