Bug 912037 - SELinux is preventing /usr/lib/systemd/systemd-hostnamed from 'read' accesses on the lnk_file id.
Summary: SELinux is preventing /usr/lib/systemd/systemd-hostnamed from 'read' accesses...
Keywords:
Status: CLOSED DUPLICATE of bug 912036
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a47905b58c96b08fd7f84c23ce6...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-17 11:00 UTC by Mikhail
Modified: 2013-02-18 10:18 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-18 10:18:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2013-02-17 11:00:29 UTC
Description of problem:
SELinux is preventing /usr/lib/systemd/systemd-hostnamed from 'read' accesses on the lnk_file id.

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

If you believe that systemd-hostnamed should be allowed read access on the id lnk_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 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:sysfs_t:s0
Target Objects                id [ lnk_file ]
Source                        systemd-hostnam
Source Path                   /usr/lib/systemd/systemd-hostnamed
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-197-1.fc18.2.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-78.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.8-202.fc18.i686.PAE #1 SMP Fri
                              Feb 15 17:47:05 UTC 2013 i686 i686
Alert Count                   2
First Seen                    2013-02-17 16:58:24 YEKT
Last Seen                     2013-02-17 16:58:24 YEKT
Local ID                      51894691-cf35-47ff-a180-efcbe55f2c8b

Raw Audit Messages
type=AVC msg=audit(1361098704.532:350): avc:  denied  { read } for  pid=10179 comm="systemd-hostnam" name="id" dev="sysfs" ino=127 scontext=system_u:system_r:systemd_hostnamed_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=lnk_file


type=SYSCALL msg=audit(1361098704.532:350): arch=i386 syscall=open success=no exit=EACCES a0=b7743da4 a1=88000 a2=1b6 a3=b93f07a8 items=0 ppid=1 pid=10179 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) 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,sysfs_t,lnk_file,read

audit2allow

#============= systemd_hostnamed_t ==============
allow systemd_hostnamed_t sysfs_t:lnk_file read;

audit2allow -R

#============= systemd_hostnamed_t ==============
allow systemd_hostnamed_t sysfs_t:lnk_file read;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.8-202.fc18.i686.PAE
type:           libreport

Potential duplicate: bug 902805

Comment 1 Tommy He 2013-02-17 13:19:33 UTC
Description of problem:
Open Nautilus

Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.8-202.fc18.x86_64
type:           libreport

Comment 2 Guillaume Poirier-Morency 2013-02-18 05:35:23 UTC
Description of problem:
New security alert from SELinux. I have the latest updates (which include an update in the selinux configuration).

Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.6-201.fc18.x86_64
type:           libreport

Comment 3 Miroslav Grepl 2013-02-18 10:18:24 UTC

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


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