RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1292249 - SELInux denies net_admin capability to dovecot auth
Summary: SELInux denies net_admin capability to dovecot auth
Keywords:
Status: CLOSED DUPLICATE of bug 1431859
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: dovecot
Version: 7.2
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Michal Hlavinka
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-16 20:07 UTC by Orion Poplawski
Modified: 2017-06-22 14:33 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-22 11:26:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2015-12-16 20:07:24 UTC
Description of problem:

I see lots of:

type=AVC msg=audit(1450293169.317:688505): avc:  denied  { net_admin } for  pid=30585 comm="auth" capability=12  scontext=system_u:system_r:dovecot_auth_t:s0 tcontext=system_u:system_r:dovecot_auth_t:s0 tclass=capability

No apparent ill effects though.

Version-Release number of selected component (if applicable):
dovecot-2.2.10-5.el7.x86_64
selinux-policy-3.13.1-60.el7.noarch

Comment 2 Miroslav Grepl 2015-12-18 15:26:58 UTC
Are you getting it only for dovecot?

Comment 3 Orion Poplawski 2015-12-18 16:42:43 UTC
That's all I'm seeing it for, yes.

Comment 4 Miroslav Grepl 2016-04-28 13:05:04 UTC
Michal,
any idea why it is needed?

       CAP_NET_ADMIN
              Perform various network-related operations:
              * interface configuration;
              * administration of IP firewall, masquerading, and accounting;
              * modify routing tables;
              * bind to any address for transparent proxying;
              * set type-of-service (TOS)
              * clear driver statistics;
              * set promiscuous mode;
              * enabling multicasting;
              * use  setsockopt(2)  to  set  the  following  socket  options:  SO_DEBUG,  SO_MARK,  SO_PRIORITY (for a priority outside the range 0 to 6),
                SO_RCVBUFFORCE, and SO_SNDBUFFORCE


Thank you.

Comment 5 Michal Hlavinka 2017-06-20 11:20:07 UTC
I'm not aware of anything in dovecot that would require CAP_NET_ADMIN capability and did not find anything in the sources. I've asked upstream if there is need for this or not.

Comment 7 Michal Hlavinka 2017-06-22 11:26:22 UTC
Ok, so I guess we can close this one as duplicate

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

Comment 8 Orion Poplawski 2017-06-22 14:10:21 UTC
Unfortunately, I cannot access that bug.

Comment 9 Michal Hlavinka 2017-06-22 14:33:02 UTC
The important thing here is that this should get fixed in rhel-7.4. Fix is ready and verified and if nothing unexpected happens, it should get released with 7.4 update.


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