| Summary: | SELinux is preventing /usr/lib/cyrus-imapd/cyrus-master from 'setattr' accesses on the sock_file lmtp. | ||
|---|---|---|---|
| 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:46547fb9b7624295d8bc7f2cdd98402b83be4b5a2dcdcca3e9c1099df0d51312 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-03-07 09:25:51 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/cyrus-master from 'setattr' accesses on the sock_file lmtp. ***** Plugin catchall_labels (83.8 confidence) suggests ******************** If you want to allow cyrus-master to have setattr access on the lmtp sock_file Then you need to change the label on lmtp Do # semanage fcontext -a -t FILE_TYPE 'lmtp' where FILE_TYPE is one of the following: cyrus_var_lib_t, cyrus_var_run_t. Then execute: restorecon -v 'lmtp' ***** Plugin catchall (17.1 confidence) suggests *************************** If you believe that cyrus-master should be allowed setattr access on the lmtp sock_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 cyrus-master /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 lmtp [ sock_file ] Source cyrus-master Source Path /usr/lib/cyrus-imapd/cyrus-master 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 489ce16d-3299-4ed0-b15a-77802875fa28 Raw Audit Messages type=AVC msg=audit(1299254173.434:30972): avc: denied { setattr } for pid=3906 comm="cyrus-master" name="lmtp" dev=dm-0 ino=2763582 scontext=unconfined_u:system_r:cyrus_t:s0 tcontext=unconfined_u:object_r:var_lib_t:s0 tclass=sock_file type=SYSCALL msg=audit(1299254173.434:30972): arch=i386 syscall=chmod success=yes exit=0 a0=1e4ff88 a1=1ff a2=bb03b4 a3=12 items=0 ppid=1 pid=3906 auid=502 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm=cyrus-master exe=/usr/lib/cyrus-imapd/cyrus-master subj=unconfined_u:system_r:cyrus_t:s0 key=(null) Hash: cyrus-master,cyrus_t,var_lib_t,sock_file,setattr audit2allow #============= cyrus_t ============== allow cyrus_t var_lib_t:sock_file setattr; audit2allow -R #============= cyrus_t ============== allow cyrus_t var_lib_t:sock_file setattr;