Bug 902805
| Summary: | SELinux is preventing /usr/lib/systemd/systemd-hostnamed from 'read' accesses on the lnk_file id. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jaekyun Lee <eleheim> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | dominick.grift, dwalsh, martin, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:a47905b58c96b08fd7f84c23ce6e0b20bc4226f45e920e862c6f84d66bb11c47 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-02-18 16:24:49 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
Jaekyun Lee
2013-01-22 12:44:57 UTC
Could you also submit AVC info? Thank you. I get this information:
SELinux is preventing /usr/lib/systemd/systemd-hostnamed from 'read' accesses on the lnk_file id.
***** Plugin catchall (100. confidence) suggests ***************************
If sie denken, dass es systemd-hostnamed standardmässig erlaubt sein sollte, read Zugriff auf id lnk_file zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# 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.1.x86_64
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.x86_64 #1 SMP Fri
Feb 15 17:33:07 UTC 2013 x86_64 x86_64
Alert Count 2
First Seen 2013-02-18 17:09:50 CET
Last Seen 2013-02-18 17:09:50 CET
Local ID ef398fcc-3188-4d60-80ed-804be8baf376
Raw Audit Messages
type=AVC msg=audit(1361203790.192:426): avc: denied { read } for pid=2277 comm="systemd-hostnam" name="id" dev="sysfs" ino=149 scontext=system_u:system_r:systemd_hostnamed_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=lnk_file
type=SYSCALL msg=audit(1361203790.192:426): arch=x86_64 syscall=open success=no exit=EACCES a0=7f795f409890 a1=80000 a2=1b6 a3=238 items=0 ppid=1 pid=2277 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;
|