Bug 870080 - SELinux is preventing /usr/sbin/sendmail.sendmail from 'read' accesses on the file passwd.
Summary: SELinux is preventing /usr/sbin/sendmail.sendmail from 'read' accesses on the...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:76260d4d49d246426f0ef591cf3...
: 870081 870087 870091 870092 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-25 14:21 UTC by Martin
Modified: 2014-09-15 00:03 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-10-25 17:45:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-10-25 14:21 UTC, Martin
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-10-25 14:21 UTC, Martin
no flags Details

Description Martin 2012-10-25 14:21:16 UTC
Additional info:
libreport version: 2.0.16
kernel:         3.6.3-3.fc18.x86_64

description:
:SELinux is preventing /usr/sbin/sendmail.sendmail from 'read' accesses on the file passwd.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that sendmail.sendmail should be allowed read access on the passwd 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 newaliases /var/log/audit/audit.log | audit2allow -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:shadow_t:s0
:Target Objects                passwd [ file ]
:Source                        newaliases
:Source Path                   /usr/sbin/sendmail.sendmail
:Port                          <Neznámé>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    <Neznámé>
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.2-4.fc17.x86_64 #1 SMP Wed Oct
:                              17 02:43:21 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-10-25 14:15:18 CEST
:Last Seen                     2012-10-25 14:15:18 CEST
:Local ID                      79468b61-a768-4ddb-8691-9664198858af
:
:Raw Audit Messages
:type=AVC msg=audit(1351167318.643:140): avc:  denied  { read } for  pid=3470 comm="newaliases" name="passwd" dev="dm-0" ino=133756 scontext=unconfined_u:system_r:system_mail_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:shadow_t:s0 tclass=file
:
:
:type=AVC msg=audit(1351167318.643:140): avc:  denied  { open } for  pid=3470 comm="newaliases" path="/etc/passwd" dev="dm-0" ino=133756 scontext=unconfined_u:system_r:system_mail_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:shadow_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1351167318.643:140): arch=x86_64 syscall=open success=yes exit=ESRCH a0=7f3334d8b6ea a1=80000 a2=1b6 a3=238 items=0 ppid=3468 pid=3470 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,shadow_t,file,read
:
:audit2allow
:
:#============= system_mail_t ==============
:allow system_mail_t shadow_t:file { read open };
:
:audit2allow -R
:
:#============= system_mail_t ==============
:allow system_mail_t shadow_t:file { read open };
:

Comment 1 Martin 2012-10-25 14:21:19 UTC
Created attachment 633346 [details]
File: type

Comment 2 Martin 2012-10-25 14:21:22 UTC
Created attachment 633347 [details]
File: hashmarkername

Comment 3 Daniel Walsh 2012-10-25 17:45:33 UTC
Some how you /etc/passwd file got mislabeled as shadow_t.

restorecon -v /etc/passwd

Should fix.

Any idea how it got mislabeled?

Comment 4 Daniel Walsh 2012-10-25 17:45:59 UTC
*** Bug 870081 has been marked as a duplicate of this bug. ***

Comment 5 Daniel Walsh 2012-10-25 17:47:07 UTC
*** Bug 870087 has been marked as a duplicate of this bug. ***

Comment 6 Daniel Walsh 2012-10-25 17:47:17 UTC
*** Bug 870091 has been marked as a duplicate of this bug. ***

Comment 7 Daniel Walsh 2012-10-25 17:47:26 UTC
*** Bug 870092 has been marked as a duplicate of this bug. ***

Comment 8 Miroslav Grepl 2012-10-26 11:19:11 UTC
Ok, this is still the same issue with upgrading + mislabeled /etc/passwd. We have another bug where we are trying to find what is wrong.


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