Bug 912283 - SELinux is preventing /usr/lib/systemd/systemd-hostnamed from 'getattr' accesses on the file /sys/devices/virtual/dmi/id/sys_vendor.
Summary: SELinux is preventing /usr/lib/systemd/systemd-hostnamed from 'getattr' acces...
Keywords:
Status: CLOSED DUPLICATE of bug 912036
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:cc44b2ab8f6e08c888e78b65ea4...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-18 09:45 UTC by Armando
Modified: 2013-02-18 10:18 UTC (History)
3 users (show)

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


Attachments (Terms of Use)

Description Armando 2013-02-18 09:45:20 UTC
Description of problem:
SELinux is preventing /usr/lib/systemd/systemd-hostnamed from 'getattr' accesses on the file /sys/devices/virtual/dmi/id/sys_vendor.

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

If você acredita que o systemd-hostnamed deva ser permitido acesso de getattr em sys_vendor file  por default.
Then você precisa reportar este como um erro.
Você pode gerar um módulo de política local para permitir este acesso.
Do
permitir este acesso agora executando:
# 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                /sys/devices/virtual/dmi/id/sys_vendor [ file ]
Source                        systemd-hostnam
Source Path                   /usr/lib/systemd/systemd-hostnamed
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-197-1.fc18.1.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-78.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.7.8-202.fc18.x86_64 #1 SMP Fri
                              Feb 15 17:33:07 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-02-18 06:43:46 BRT
Last Seen                     2013-02-18 06:43:46 BRT
Local ID                      0bfeafe1-c6d4-41ae-a6af-0efd4695b01d

Raw Audit Messages
type=AVC msg=audit(1361180626.705:357): avc:  denied  { getattr } for  pid=2505 comm="systemd-hostnam" path="/sys/devices/virtual/dmi/id/sys_vendor" dev="sysfs" ino=153 scontext=system_u:system_r:systemd_hostnamed_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=file


type=SYSCALL msg=audit(1361180626.705:357): arch=x86_64 syscall=fstat success=yes exit=0 a0=5 a1=7fff05399250 a2=7fff05399250 a3=0 items=0 ppid=1 pid=2505 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,file,getattr

audit2allow

#============= systemd_hostnamed_t ==============
allow systemd_hostnamed_t sysfs_t:file getattr;

audit2allow -R

#============= systemd_hostnamed_t ==============
allow systemd_hostnamed_t sysfs_t:file getattr;


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

Comment 1 Miroslav Grepl 2013-02-18 10:18:15 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.