| Summary: | SELinux is preventing /usr/bin/gok from 'read' accesses on the directory /var/yp. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mike Ma <zhtx10> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 14 | CC: | dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:92ef30937a62902aa9172f854e00027d179a58d8455734ad2495a68cb32895ca | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-01-21 08:53:24 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
*** This bug has been marked as a duplicate of bug 643271 *** |
SELinux is preventing /usr/bin/gok from 'read' accesses on the directory /var/yp. ***** Plugin catchall_boolean (89.3 confidence) suggests ******************* If you want to allow system to run with NIS Then you must tell SELinux about this by enabling the 'allow_ypbind' boolean. Do setsebool -P allow_ypbind 1 ***** Plugin catchall (11.6 confidence) suggests *************************** If you believe that gok should be allowed read access on the yp 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 gok /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:xdm_t:s0-s0:c0.c1023 Target Context system_u:object_r:var_yp_t:s0 Target Objects /var/yp [ dir ] Source gok Source Path /usr/bin/gok Port <未知> Host (removed) Source RPM Packages gok-2.30.0-1.fc14 Target RPM Packages filesystem-2.4.35-1.fc14 Policy RPM selinux-policy-3.9.7-20.fc14 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.35.10-74.fc14.x86_64 #1 SMP Thu Dec 23 16:04:50 UTC 2010 x86_64 x86_64 Alert Count 2 First Seen 2011年01月21日 星期五 11时06分03秒 Last Seen 2011年01月21日 星期五 11时06分11秒 Local ID 35e59bf2-d32c-4ded-92c2-b2cdc3d4c217 Raw Audit Messages type=AVC msg=audit(1295579171.616:15): avc: denied { read } for pid=1743 comm="gok" name="yp" dev=dm-0 ino=1677 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_yp_t:s0 tclass=dir gok,xdm_t,var_yp_t,dir,read type=SYSCALL msg=audit(1295579171.616:15): arch=x86_64 syscall=open success=no exit=EACCES a0=7fc37800a110 a1=0 a2=3c8430ea68 a3=1 items=0 ppid=1 pid=1743 auid=4294967295 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=42 sgid=42 fsgid=42 tty=(none) ses=4294967295 comm=gok exe=/usr/bin/gok subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null) gok,xdm_t,var_yp_t,dir,read #============= xdm_t ============== #!!!! This avc can be allowed using the boolean 'allow_ypbind' allow xdm_t var_yp_t:dir read;