Bug 653403 - SELinux is preventing /usr/sbin/sendmail.sendmail "write" access on /var/spool/clientmqueue.
Summary: SELinux is preventing /usr/sbin/sendmail.sendmail "write" access on /var...
Keywords:
Status: CLOSED DUPLICATE of bug 653399
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:7a8450866d4...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-15 11:02 UTC by pigetak178
Modified: 2010-11-15 11:08 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-15 11:08:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description pigetak178 2010-11-15 11:02:42 UTC
Summary:

SELinux is preventing /usr/sbin/sendmail.sendmail "write" access on
/var/spool/clientmqueue.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by sendmail. It is not expected that this access
is required by sendmail and this access may signal an intrusion attempt. It is
also possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:ddclient_t:s0
Target Context                system_u:object_r:mqueue_spool_t:s0
Target Objects                /var/spool/clientmqueue [ dir ]
Source                        sendmail
Source Path                   /usr/sbin/sendmail.sendmail
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           sendmail-8.14.4-9.fc14
Target RPM Packages           sendmail-8.14.4-9.fc14
Policy RPM                    selinux-policy-3.9.7-10.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.6-48.fc14.x86_64 #1 SMP Fri Oct 22 15:36:08
                              UTC 2010 x86_64 x86_64
Alert Count                   4
First Seen                    Mon 15 Nov 2010 04:08:05 AM EST
Last Seen                     Mon 15 Nov 2010 04:08:05 AM EST
Local ID                      9746ebd9-0962-477f-bfdd-c615bbbedd2c
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1289812085.969:417): avc:  denied  { write } for  pid=15177 comm="sendmail" name="clientmqueue" dev=dm-0 ino=137223 scontext=system_u:system_r:ddclient_t:s0 tcontext=system_u:object_r:mqueue_spool_t:s0 tclass=dir

node=(removed) type=AVC msg=audit(1289812085.969:417): avc:  denied  { add_name } for  pid=15177 comm="sendmail" name="dfoAF985Ms015177" scontext=system_u:system_r:ddclient_t:s0 tcontext=system_u:object_r:mqueue_spool_t:s0 tclass=dir

node=(removed) type=AVC msg=audit(1289812085.969:417): avc:  denied  { create } for  pid=15177 comm="sendmail" name="dfoAF985Ms015177" scontext=system_u:system_r:ddclient_t:s0 tcontext=system_u:object_r:mqueue_spool_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1289812085.969:417): avc:  denied  { read write open } for  pid=15177 comm="sendmail" name="dfoAF985Ms015177" dev=dm-0 ino=131138 scontext=system_u:system_r:ddclient_t:s0 tcontext=system_u:object_r:mqueue_spool_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1289812085.969:417): arch=c000003e syscall=2 success=yes exit=3 a0=7ff4468baa40 a1=c2 a2=1b0 a3=0 items=0 ppid=3268 pid=15177 auid=4294967295 uid=496 gid=493 euid=496 suid=496 fsuid=496 egid=51 sgid=51 fsgid=51 tty=(none) ses=4294967295 comm="sendmail" exe="/usr/sbin/sendmail.sendmail" subj=system_u:system_r:ddclient_t:s0 key=(null)



Hash String generated from  catchall,sendmail,ddclient_t,mqueue_spool_t,dir,write
audit2allow suggests:

#============= ddclient_t ==============
#!!!! The source type 'ddclient_t' can write to a 'dir' of the following types:
# ddclient_var_lib_t, ddclient_var_run_t, ddclient_var_t, var_t, var_lib_t, var_run_t, var_log_t, root_t

allow ddclient_t mqueue_spool_t:dir { write add_name };
#!!!! The source type 'ddclient_t' can write to a 'file' of the following types:
# ddclient_var_lib_t, ddclient_var_run_t, ddclient_var_t, ddclient_log_t, root_t

allow ddclient_t mqueue_spool_t:file { read write create open };

Comment 1 Miroslav Grepl 2010-11-15 11:08:32 UTC

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


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