Bug 1081412

Summary: SELinux is preventing /usr/lib/systemd/systemd-hostnamed from 'search' accesses on the directory .
Product: [Fedora] Fedora Reporter: Luya Tshimbalanga <luya>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d1285d07826aef63d01efa3ce3e00efa90685943e42bfe12820a4c4cf4318cbe
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-27 10:20:41 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 Luya Tshimbalanga 2014-03-27 09:06:43 UTC
Description of problem:
SELinux is preventing /usr/lib/systemd/systemd-hostnamed from 'search' accesses on the directory .

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

If you believe that systemd-hostnamed should be allowed search access on the  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 systemd-hostnam /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:systemd_hostnamed_t:s0
Target Context                system_u:object_r:tmpfs_t:s0
Target Objects                 [ dir ]
Source                        systemd-hostnam
Source Path                   /usr/lib/systemd/systemd-hostnamed
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-211-2.fc21.x86_64
                              systemd-212-1.fc21.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-38.fc21.noarch selinux-
                              policy-3.13.1-39.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.14.0-0.rc7.git2.1.fc21.x86_64 #1
                              SMP Fri Mar 21 13:26:24 UTC 2014 x86_64 x86_64
Alert Count                   2
First Seen                    2014-03-27 02:03:53 PDT
Last Seen                     2014-03-27 02:05:33 PDT
Local ID                      874cd8fe-4c3c-46ae-93ac-e309ccd848fe

Raw Audit Messages
type=AVC msg=audit(1395911133.580:418): avc:  denied  { search } for  pid=2444 comm="systemd-hostnam" name="/" dev="tmpfs" ino=41246 scontext=system_u:system_r:systemd_hostnamed_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=dir


type=SYSCALL msg=audit(1395911133.580:418): arch=x86_64 syscall=open success=no exit=EACCES a0=7f711ceb8f26 a1=80100 a2=0 a3=7f711c1f27b8 items=0 ppid=1 pid=2444 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=systemd-hostnam exe=/usr/lib/systemd/systemd-hostnamed subj=system_u:system_r:systemd_hostnamed_t:s0 key=(null)

Hash: systemd-hostnam,systemd_hostnamed_t,tmpfs_t,dir,search

Additional info:
reporter:       libreport-2.2.0
hashmarkername: setroubleshoot
kernel:         3.14.0-0.rc7.git2.1.fc21.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-03-27 10:20:41 UTC

*** This bug has been marked as a duplicate of bug 1081429 ***