Bug 785501 - SELinux is preventing /usr/sbin/sendmail.sendmail from 'read' accesses on the directory /home/mikhail/Downloads.
Summary: SELinux is preventing /usr/sbin/sendmail.sendmail from 'read' accesses on the...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:4c00ac85c511e67971833400988...
: 786850 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-29 05:56 UTC by Mikhail
Modified: 2012-03-15 15:32 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-15 15:32:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2012-01-29 05:56:05 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.2-1.fc16.i686.PAE
reason:         SELinux is preventing /usr/sbin/sendmail.sendmail from 'read' accesses on the directory /home/mikhail/Downloads.
time:           Вс. 29 янв. 2012 11:55:50

description:
:SELinux is preventing /usr/sbin/sendmail.sendmail from 'read' accesses on the directory /home/mikhail/Downloads.
:
:*****  Plugin catchall (50.5 confidence) suggests  ***************************
:
:If you believe that sendmail.sendmail should be allowed read access on the Downloads 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 newaliases /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:*****  Plugin leaks (50.5 confidence) suggests  ******************************
:
:If you want to ignore sendmail.sendmail trying to read access the Downloads directory, because you believe it should not need this access.
:Then you should report this as a bug.  
:You can generate a local policy module to dontaudit this access.
:Do
:# grep /usr/sbin/sendmail.sendmail /var/log/audit/audit.log | audit2allow -D -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:system_r:system_mail_t:s0-s0:c0.c1023
:Target Context                unconfined_u:object_r:user_home_t:s0
:Target Objects                /home/mikhail/Downloads [ dir ]
:Source                        newaliases
:Source Path                   /usr/sbin/sendmail.sendmail
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           sendmail-8.14.5-11.fc16
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-69.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.1.6-1.fc16.i686.PAE #1 SMP Wed Dec
:                              21 23:01:09 UTC 2011 i686 i686
:Alert Count                   1
:First Seen                    Вс. 08 янв. 2012 14:33:17
:Last Seen                     Вс. 08 янв. 2012 14:33:17
:Local ID                      a66f4d29-b707-425f-841c-a76ac80f8eee
:
:Raw Audit Messages
:type=AVC msg=audit(1326011597.228:1702): avc:  denied  { read } for  pid=25242 comm="newaliases" path="/home/mikhail/Downloads" dev=sda5 ino=10092759 scontext=unconfined_u:system_r:system_mail_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir
:
:
:type=AVC msg=audit(1326011597.228:1702): avc:  denied  { read } for  pid=25242 comm="newaliases" path="/home/mikhail/Downloads" dev=sda5 ino=10092759 scontext=unconfined_u:system_r:system_mail_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1326011597.228:1702): arch=i386 syscall=execve success=yes exit=0 a0=909e798 a1=909e830 a2=909d7c0 a3=909d7c0 items=0 ppid=25241 pid=25242 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=51 sgid=51 fsgid=51 tty=pts0 ses=2 comm=newaliases exe=/usr/sbin/sendmail.sendmail subj=unconfined_u:system_r:system_mail_t:s0-s0:c0.c1023 key=(null)
:
:Hash: newaliases,system_mail_t,user_home_t,dir,read
:
:audit2allow
:
:#============= system_mail_t ==============
:allow system_mail_t user_home_t:dir read;
:
:audit2allow -R
:
:#============= system_mail_t ==============
:allow system_mail_t user_home_t:dir read;
:

Comment 1 Miroslav Grepl 2012-01-30 12:19:05 UTC
Are you mailing content of ~/Downloads?

Comment 2 Miroslav Grepl 2012-02-02 16:09:37 UTC
*** Bug 786850 has been marked as a duplicate of this bug. ***


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