Bug 873770 - SELinux is preventing /usr/sbin/sendmail.sendmail from using the 'net_admin' capabilities.
Summary: SELinux is preventing /usr/sbin/sendmail.sendmail from using the 'net_admin' ...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:07f2c0ef83667af87399fff7622...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-06 16:40 UTC by GWL
Modified: 2013-07-08 08:58 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-07-08 08:58:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-11-06 16:40 UTC, GWL
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-11-06 16:40 UTC, GWL
no flags Details

Description GWL 2012-11-06 16:40:33 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.6.5-1.fc17.x86_64

description:
:SELinux is preventing /usr/sbin/sendmail.sendmail from using the 'net_admin' capabilities.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that sendmail.sendmail should have the net_admin capability 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 sendmail /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:sendmail_t:s0
:Target Context                system_u:system_r:sendmail_t:s0
:Target Objects                 [ capability ]
:Source                        sendmail
:Source Path                   /usr/sbin/sendmail.sendmail
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           sendmail-8.14.5-14.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-156.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.5-1.fc17.x86_64 #1 SMP Wed Oct
:                              31 19:37:18 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-11-07 00:39:23 SGT
:Last Seen                     2012-11-07 00:39:23 SGT
:Local ID                      1e555e46-3cfc-4059-8ce1-8a81d2590f85
:
:Raw Audit Messages
:type=AVC msg=audit(1352219963.800:50): avc:  denied  { net_admin } for  pid=1271 comm="sendmail" capability=12  scontext=system_u:system_r:sendmail_t:s0 tcontext=system_u:system_r:sendmail_t:s0 tclass=capability
:
:
:type=SYSCALL msg=audit(1352219963.800:50): arch=x86_64 syscall=ioctl success=no exit=ENODEV a0=4 a1=8933 a2=7fff2a6b5020 a3=1c items=0 ppid=1 pid=1271 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=51 sgid=51 fsgid=51 tty=(none) ses=4294967295 comm=sendmail exe=/usr/sbin/sendmail.sendmail subj=system_u:system_r:sendmail_t:s0 key=(null)
:
:Hash: sendmail,sendmail_t,sendmail_t,capability,net_admin
:
:audit2allow
:
:#============= sendmail_t ==============
:allow sendmail_t self:capability net_admin;
:
:audit2allow -R
:
:#============= sendmail_t ==============
:allow sendmail_t self:capability net_admin;
:


Potential duplicate bug: 741940

Comment 1 GWL 2012-11-06 16:40:38 UTC
Created attachment 639438 [details]
File: type

Comment 2 GWL 2012-11-06 16:40:42 UTC
Created attachment 639439 [details]
File: hashmarkername

Comment 3 Daniel Walsh 2012-11-06 18:32:21 UTC
Certainly looks like, 

Are you getting this repeatedly?

Comment 4 Eric Paris 2012-11-06 22:10:26 UTC
#define SIOCGIFINDEX    0x8933          /* name -> if_index mapping     */

(all i know so far)

Comment 5 Fedora End Of Life 2013-07-04 00:52:15 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 6 Miroslav Grepl 2013-07-08 08:58:55 UTC
#============= sendmail_t ==============

#!!!! This avc has a dontaudit rule in the current policy
allow sendmail_t self:capability net_admin;


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