Bug 682264 - SELinux is preventing /usr/lib/cyrus-imapd/ctl_cyrusdb from 'add_name' accesses on the directory __db.001.
Summary: SELinux is preventing /usr/lib/cyrus-imapd/ctl_cyrusdb from 'add_name' access...
Keywords:
Status: CLOSED DUPLICATE of bug 682260
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:4aaad509868...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-04 16:00 UTC by Grosswiler Roger
Modified: 2011-03-07 09:26 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-07 09:26:38 UTC
Type: ---


Attachments (Terms of Use)

Description Grosswiler Roger 2011-03-04 16:00:48 UTC
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;

Comment 1 Miroslav Grepl 2011-03-07 09:26:38 UTC

*** This bug has been marked as a duplicate of bug 682260 ***


Note You need to log in before you can comment on or make changes to this bug.