| Summary: | SELinux is preventing /usr/lib/cyrus-imapd/ctl_cyrusdb from 'add_name' accesses on the directory __db.001. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Grosswiler Roger <roger> |
| 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: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:4aaad50986808bd514a04bc1ac1f21e07984b133172811218376e241caab618d | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-03-07 09:26: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: | |
*** This bug has been marked as a duplicate of bug 682260 *** |
SELinux is preventing /usr/lib/cyrus-imapd/ctl_cyrusdb from 'add_name' accesses on the directory __db.001. ***** Plugin catchall_labels (83.8 confidence) suggests ******************** If you want to allow ctl_cyrusdb to have add_name access on the __db.001 directory Then you need to change the label on __db.001 Do # semanage fcontext -a -t FILE_TYPE '__db.001' where FILE_TYPE is one of the following: var_run_t, cyrus_var_lib_t, cyrus_var_run_t, cyrus_tmp_t, tmp_t, mail_spool_t, root_t. Then execute: restorecon -v '__db.001' ***** Plugin catchall (17.1 confidence) suggests *************************** If you believe that ctl_cyrusdb should be allowed add_name access on the __db.001 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 ctl_cyrusdb /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context unconfined_u:system_r:cyrus_t:s0 Target Context unconfined_u:object_r:var_lib_t:s0 Target Objects __db.001 [ dir ] Source ctl_cyrusdb Source Path /usr/lib/cyrus-imapd/ctl_cyrusdb Port <Unbekannt> Host (removed) Source RPM Packages cyrus-imapd-2.3.16-7.fc14 Target RPM Packages Policy RPM selinux-policy-3.9.7-31.fc14 Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 2.6.35.11-83.fc14.i686.PAE #1 SMP Mon Feb 7 06:57:55 UTC 2011 i686 i686 Alert Count 1 First Seen Fr 04 Mär 2011 16:56:12 CET Last Seen Fr 04 Mär 2011 16:56:12 CET Local ID 74d2741d-863c-4693-aac1-f4b908a78176 Raw Audit Messages type=AVC msg=audit(1299254172.780:30968): avc: denied { add_name } for pid=3908 comm="ctl_cyrusdb" name="__db.001" scontext=unconfined_u:system_r:cyrus_t:s0 tcontext=unconfined_u:object_r:var_lib_t:s0 tclass=dir type=AVC msg=audit(1299254172.780:30968): avc: denied { create } for pid=3908 comm="ctl_cyrusdb" name="__db.001" scontext=unconfined_u:system_r:cyrus_t:s0 tcontext=unconfined_u:object_r:var_lib_t:s0 tclass=file type=SYSCALL msg=audit(1299254172.780:30968): arch=i386 syscall=open success=yes exit=ENXIO a0=146acc8 a1=80c2 a2=1a4 a3=1 items=0 ppid=3906 pid=3908 auid=502 uid=76 gid=12 euid=76 suid=76 fsuid=76 egid=12 sgid=12 fsgid=12 tty=(none) ses=1 comm=ctl_cyrusdb exe=/usr/lib/cyrus-imapd/ctl_cyrusdb subj=unconfined_u:system_r:cyrus_t:s0 key=(null) Hash: ctl_cyrusdb,cyrus_t,var_lib_t,dir,add_name audit2allow #============= cyrus_t ============== allow cyrus_t var_lib_t:dir add_name; allow cyrus_t var_lib_t:file create; audit2allow -R #============= cyrus_t ============== allow cyrus_t var_lib_t:dir add_name; allow cyrus_t var_lib_t:file create;