Bug 863258

Summary: SELinux is preventing /usr/sbin/named from 'search' accesses on the directory vm.
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:5c3b53a6872a1b42ecf892fef09b8e4ebd055a7653e1f630dae77b87ba9cdad0
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-15 19:19:08 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 Nicolas Mailhot 2012-10-04 20:17:01 UTC
Additional info:
libreport version: 2.0.14
kernel:         3.6.0-3.fc18.x86_64

description:
:SELinux is preventing /usr/sbin/named from 'search' accesses on the directory vm.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If vous pensez que named devrait être autorisé à accéder search sur vm directory par défaut.
:Then vous devriez rapporter ceci en tant qu'anomalie.
:Vous pouvez générer un module de stratégie local pour autoriser cet accès.
:Do
:autoriser cet accès pour le moment en exécutant :
:# grep named /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:named_t:s0
:Target Context                system_u:object_r:sysctl_vm_t:s0
:Target Objects                vm [ dir ]
:Source                        named
:Source Path                   /usr/sbin/named
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           bind-9.9.1-10.P3.fc19.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.11.1-29.fc18.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.0-3.fc18.x86_64 #1 SMP Wed Oct
:                              3 13:29:15 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-10-04 22:11:37 CEST
:Last Seen                     2012-10-04 22:11:37 CEST
:Local ID                      e0be8b16-335d-4690-8596-65196e3b2bba
:
:Raw Audit Messages
:type=AVC msg=audit(1349381497.467:49): avc:  denied  { search } for  pid=790 comm="named" name="vm" dev="proc" ino=15870 scontext=system_u:system_r:named_t:s0 tcontext=system_u:object_r:sysctl_vm_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1349381497.467:49): arch=x86_64 syscall=open success=no exit=EACCES a0=7fe429bce2e0 a1=80000 a2=fffffffffffdfff0 a3=26520 items=0 ppid=779 pid=790 auid=4294967295 uid=25 gid=25 euid=25 suid=25 fsuid=25 egid=25 sgid=25 fsgid=25 tty=(none) ses=4294967295 comm=named exe=/usr/sbin/named subj=system_u:system_r:named_t:s0 key=(null)
:
:Hash: named,named_t,sysctl_vm_t,dir,search
:
:audit2allow
:
:#============= named_t ==============
:allow named_t sysctl_vm_t:dir search;
:
:audit2allow -R
:
:#============= named_t ==============
:allow named_t sysctl_vm_t:dir search;
:

Comment 1 Nicolas Mailhot 2012-10-04 20:17:04 UTC
Created attachment 621818 [details]
File: type

Comment 2 Nicolas Mailhot 2012-10-04 20:17:06 UTC
Created attachment 621819 [details]
File: hashmarkername