Bug 545954 - SELinux is preventing /bin/mktemp "write" access on /.esmtp_queue.
Summary: SELinux is preventing /bin/mktemp "write" access on /.esmtp_queue.
Keywords:
Status: CLOSED DUPLICATE of bug 544603
Alias: None
Product: Fedora
Classification: Fedora
Component: esmtp
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Steven M. Parrish
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:4bae615c447...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-09 17:45 UTC by Konstantin Svist
Modified: 2009-12-09 18:11 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-12-09 18:11:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Konstantin Svist 2009-12-09 17:45:41 UTC
Summary:

SELinux is preventing /bin/mktemp "write" access on /.esmtp_queue.

Detailed Description:

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

SELinux denied access requested by mktemp. It is not expected that this access
is required by mktemp 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://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:logwatch_t:s0-s0:c0.c1023
Target Context                system_u:object_r:default_t:s0
Target Objects                /.esmtp_queue [ dir ]
Source                        mktemp
Source Path                   /bin/mktemp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           coreutils-7.6-7.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-55.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.6-162.fc12.i686 #1 SMP Fri
                              Dec 4 01:09:09 EST 2009 i686 i686
Alert Count                   3
First Seen                    Wed 09 Dec 2009 03:47:04 AM PST
Last Seen                     Wed 09 Dec 2009 03:47:04 AM PST
Local ID                      aa617710-227b-42fb-9c51-609848db9b42
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1260359224.476:47): avc:  denied  { write } for  pid=3312 comm="mktemp" name=".esmtp_queue" dev=sda7 ino=213330 scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 tcontext=system_u:object_r:default_t:s0 tclass=dir

node=(removed) type=AVC msg=audit(1260359224.476:47): avc:  denied  { add_name } for  pid=3312 comm="mktemp" name="yt0fsR5P" scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 tcontext=system_u:object_r:default_t:s0 tclass=dir

node=(removed) type=AVC msg=audit(1260359224.476:47): avc:  denied  { create } for  pid=3312 comm="mktemp" name="yt0fsR5P" scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 tcontext=system_u:object_r:default_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1260359224.476:47): arch=40000003 syscall=39 success=yes exit=0 a0=8f81058 a1=1c0 a2=8050864 a3=8 items=0 ppid=3308 pid=3312 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=5 comm="mktemp" exe="/bin/mktemp" subj=system_u:system_r:logwatch_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-55.fc12,catchall,mktemp,logwatch_t,default_t,dir,write
audit2allow suggests:

#============= logwatch_t ==============
allow logwatch_t default_t:dir { write create add_name };

Comment 1 Daniel Walsh 2009-12-09 18:11:58 UTC

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


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