| Summary: | SELinux is preventing /usr/bin/updatedb from 'getattr' accesses on the directory /etc/NetworkManager/VPN. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ren-Bo Wang <rbwang1225> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | dwalsh, mgrepl |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:847887106605749ec2e275f3d80e5a6956b25c6f8d74ab0dc1bdb12a35ba041c | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-05-17 08:18:22 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
The directory is mislabeled. # matchpathcon /etc/NetworkManager/VPN /etc/NetworkManager/VPN system_u:object_r:NetworkManager_etc_t:s0 Execute # restorecon -R -v /etc/NetworkManager/VPN Any idea how this got the bad label? Did you change the label for /etc/NetworkManager/VPN before an update? *** Bug 704737 has been marked as a duplicate of this bug. *** *** Bug 704743 has been marked as a duplicate of this bug. *** *** Bug 704740 has been marked as a duplicate of this bug. *** postfix_virtual_t is a domain type, SELinux would not allow this label to be placed on a directory. The only way this label could get on the directory would be if the user did a chcon postfix_virtual_t /etc/NetworkManager/VPN in permissive mode. Probably thinking this would allow postfix to read the content? Ren-BO the restorecon should fix your problem. |
SELinux is preventing /usr/bin/updatedb from 'getattr' accesses on the directory /etc/NetworkManager/VPN. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that updatedb should be allowed getattr access on the VPN 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 updatedb /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:locate_t:s0-s0:c0.c1023 Target Context system_u:object_r:postfix_virtual_t:s0 Target Objects /etc/NetworkManager/VPN [ dir ] Source updatedb Source Path /usr/bin/updatedb Port <Unknown> Host (removed) Source RPM Packages mlocate-0.24-1.fc15 Target RPM Packages NetworkManager-0.8.998-2.git20110406.fc15 Policy RPM selinux-policy-3.9.16-23.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.38.5-24.fc15.x86_64 #1 SMP Fri May 6 08:00:28 UTC 2011 x86_64 x86_64 Alert Count 1 First Seen Sun 15 May 2011 10:50:17 AM CST Last Seen Sun 15 May 2011 10:50:17 AM CST Local ID 0509f842-8644-4583-ad5c-86707332a7c7 Raw Audit Messages type=AVC msg=audit(1305427817.269:85): avc: denied { getattr } for pid=20690 comm="updatedb" path="/etc/NetworkManager/VPN" dev=dm-0 ino=657547 scontext=system_u:system_r:locate_t:s0-s0:c0.c1023 tcontext=system_u:object_r:postfix_virtual_t:s0 tclass=dir type=SYSCALL msg=audit(1305427817.269:85): arch=x86_64 syscall=lstat success=no exit=EACCES a0=1965629 a1=7ffff3dadc30 a2=7ffff3dadc30 a3=0 items=0 ppid=20684 pid=20690 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm=updatedb exe=/usr/bin/updatedb subj=system_u:system_r:locate_t:s0-s0:c0.c1023 key=(null) Hash: updatedb,locate_t,postfix_virtual_t,dir,getattr audit2allow #============= locate_t ============== allow locate_t postfix_virtual_t:dir getattr; audit2allow -R #============= locate_t ============== allow locate_t postfix_virtual_t:dir getattr;