| Summary: | SELinux is preventing /usr/bin/gedit from 'open' accesses on the file /etc/hosts. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Hicham HAOUARI <hicham.haouari> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 14 | CC: | dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:703c91b15f9a348800c572477011475fca70b343949464d7d4efea36f3fa774f | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-05-10 11:47:46 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Standard sandbox is not allowed to open any files. You need to pass in files via file descriptors. If you want to run X apps within a sandbox you need to run "sandbox -X" *** Bug 703444 has been marked as a duplicate of this bug. *** *** Bug 703447 has been marked as a duplicate of this bug. *** *** Bug 703448 has been marked as a duplicate of this bug. *** |
SELinux is preventing /usr/bin/gedit from 'open' accesses on the file /etc/hosts. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that gedit should be allowed open access on the hosts 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 gedit /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context unconfined_u:unconfined_r:sandbox_t:s0:c729,c816 Target Context system_u:object_r:net_conf_t:s0 Target Objects /etc/hosts [ file ] Source gedit Source Path /usr/bin/gedit Port <Unknown> Host (removed) Source RPM Packages gedit-2.30.4-1.fc14 Target RPM Packages setup-2.8.28-1.fc14 Policy RPM selinux-policy-3.9.7-31.fc14 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.35.11-83.fc14.i686 #1 SMP Mon Feb 7 07:04:18 UTC 2011 i686 i686 Alert Count 4 First Seen Wed 02 Mar 2011 01:08:08 AM WET Last Seen Wed 02 Mar 2011 01:08:08 AM WET Local ID 45827b6e-3860-404e-87c1-1d557edacc76 Raw Audit Messages type=AVC msg=audit(1299028088.372:22883): avc: denied { open } for pid=29182 comm="gedit" name="hosts" dev=sda1 ino=69471 scontext=unconfined_u:unconfined_r:sandbox_t:s0:c729,c816 tcontext=system_u:object_r:net_conf_t:s0 tclass=file type=SYSCALL msg=audit(1299028088.372:22883): arch=i386 syscall=open success=no exit=EACCES a0=2b3b74 a1=80000 a2=1b6 a3=2b3b55 items=0 ppid=29181 pid=29182 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=pts59 ses=1 comm=gedit exe=/usr/bin/gedit subj=unconfined_u:unconfined_r:sandbox_t:s0:c729,c816 key=(null) Hash: gedit,sandbox_t,net_conf_t,file,open audit2allow #============= sandbox_t ============== allow sandbox_t net_conf_t:file open; audit2allow -R #============= sandbox_t ============== allow sandbox_t net_conf_t:file open;