Bug 994629
| Summary: | SELinux is preventing /usr/sbin/afsd from 'getattr' accesses on the file /etc/openafs/cacheinfo. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ken Dreyer <ktdreyer> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 19 | CC: | anatoly.solomin, dominick.grift, dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:1017ed78c1165b7064f3e44435ffdf0fc3ec79befd6e79cd54be340149834c77 | ||
| Fixed In Version: | selinux-policy-3.12.1-71.fc19 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-08-22 00:53:38 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: | |||
Note that this affects Rawhide as well as Fedora 19. I have a user at RPM Fusion who is on F19 and seeing this same problem. RPM Fusion bug: https://bugzilla.rpmfusion.org/show_bug.cgi?id=2912 I should mention that there is a second AVC denial for "read" for afsd as well on cacheinfo. 6f6bd18652b5d3afdba301b1b69ece514393f7f2 fixes this in git. for Rawhide. selinux-policy-3.12.1-71.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-71.fc19 Package selinux-policy-3.12.1-71.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-71.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-15088/selinux-policy-3.12.1-71.fc19 then log in and leave karma (feedback). selinux-policy-3.12.1-71.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: I'm using the RPM Fusion openafs-client package. The service fails to start, because SELinux prevents afsd from reading the cacheinfo file. Once I put SELinux into permissive mode, I am able to start the openafs-client service. SELinux is preventing /usr/sbin/afsd from 'getattr' accesses on the file /etc/openafs/cacheinfo. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that afsd should be allowed getattr access on the cacheinfo 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 afsd /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:afs_t:s0 Target Context system_u:object_r:afs_config_t:s0 Target Objects /etc/openafs/cacheinfo [ file ] Source afsd Source Path /usr/sbin/afsd Port <Unknown> Host (removed) Source RPM Packages openafs-client-1.6.4-1.fc20.x86_64 Target RPM Packages openafs-client-1.6.4-1.fc20.x86_64 Policy RPM selinux-policy-3.12.1-66.fc20.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 3.10.3-300.fc19.x86_64 #1 SMP Fri Jul 26 00:00:58 UTC 2013 x86_64 x86_64 Alert Count 4 First Seen 2013-07-26 21:44:31 EDT Last Seen 2013-08-07 12:05:21 EDT Local ID 1bfe1b78-345a-4532-97a0-82237f2059c0 Raw Audit Messages type=AVC msg=audit(1375891521.349:499): avc: denied { getattr } for pid=1446 comm="afsd" path="/etc/openafs/cacheinfo" dev="dm-0" ino=658385 scontext=system_u:system_r:afs_t:s0 tcontext=system_u:object_r:afs_config_t:s0 tclass=file type=SYSCALL msg=audit(1375891521.349:499): arch=x86_64 syscall=fstat success=yes exit=0 a0=3 a1=7fffe35cca30 a2=7fffe35cca30 a3=1 items=0 ppid=1 pid=1446 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=afsd exe=/usr/sbin/afsd subj=system_u:system_r:afs_t:s0 key=(null) Hash: afsd,afs_t,afs_config_t,file,getattr Additional info: reporter: libreport-2.1.6 hashmarkername: setroubleshoot kernel: 3.10.3-300.fc19.x86_64 type: libreport