| Summary: | SELinux is preventing /usr/lib/cyrus-imapd/ctl_cyrusdb from 'create' accesses on the directory db.backup1. | ||
|---|---|---|---|
| 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:d9267580b03abddc438e183cd0ce851a9a987eb430d6a6c2694e16a0a46654da | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-03-07 09:25:32 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 'create' accesses on the directory db.backup1. ***** Plugin catchall_labels (83.8 confidence) suggests ******************** If you want to allow ctl_cyrusdb to have create access on the db.backup1 directory Then you need to change the label on db.backup1 Do # semanage fcontext -a -t FILE_TYPE 'db.backup1' where FILE_TYPE is one of the following: cyrus_var_lib_t, cyrus_tmp_t, mail_spool_t. Then execute: restorecon -v 'db.backup1' ***** Plugin catchall (17.1 confidence) suggests *************************** If you believe that ctl_cyrusdb should be allowed create access on the db.backup1 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.backup1 [ 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:13 CET Last Seen Fr 04 Mär 2011 16:56:13 CET Local ID 9e5c96d8-d9b2-4209-b1f2-447509e93447 Raw Audit Messages type=AVC msg=audit(1299254173.475:30975): avc: denied { create } for pid=3913 comm="ctl_cyrusdb" name="db.backup1" scontext=unconfined_u:system_r:cyrus_t:s0 tcontext=unconfined_u:object_r:var_lib_t:s0 tclass=dir type=SYSCALL msg=audit(1299254173.475:30975): arch=i386 syscall=mkdir success=yes exit=0 a0=bf95908c a1=1ed a2=713390 a3=bf958c6c items=0 ppid=3906 pid=3913 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,create audit2allow #============= cyrus_t ============== allow cyrus_t var_lib_t:dir create; audit2allow -R #============= cyrus_t ============== allow cyrus_t var_lib_t:dir create;