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 1228321 - keepalived gets AVC when loading module
Summary: keepalived gets AVC when loading module
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.1
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Patrik Kis
URL:
Whiteboard:
: 1261389 (view as bug list)
Depends On:
Blocks: 1232175
TreeView+ depends on / blocked
 
Reported: 2015-06-04 15:22 UTC by Ryan O'Hara
Modified: 2015-11-19 10:35 UTC (History)
11 users (show)

Fixed In Version: selinux-policy-3.13.1-34.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1232175 (view as bug list)
Environment:
Last Closed: 2015-11-19 10:35:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2300 0 normal SHIPPED_LIVE selinux-policy bug fix update 2015-11-19 09:55:26 UTC

Description Ryan O'Hara 2015-06-04 15:22:55 UTC
When keepalived starts it will try to load the ip_vs* modules. It is able to load the ip_vs module, but fails to load the ip_vs_rr module. The AVC reads:

type=AVC msg=audit(1433429290.228:446): avc:  denied  { module_request } for  pid=2621 comm="keepalived" kmod="ip_vs_rr" scontext=system_u:system_r:keepalived_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=system

The keepalived service should be able to load any of the ip_vs* modules. Current workaround is to run the following command:

/usr/sbin/setsebool -V -P domain_kernel_load_modules 1

Comment 2 Simon Sekidde 2015-06-17 03:08:11 UTC
Ryan, 

Does this AVC also occur when you assign any of the other scheduling algorithms to a virtual server?

Comment 3 David Johle 2015-06-17 21:50:08 UTC
I see this same issue, definitely not just limited to RR.

type=AVC msg=audit(1434409392.217:5568): avc:  denied  { module_request } for  pid=17699 comm="keepalived" kmod="ip_vs_rr" scontext=system_u:system_r:keepalived_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=system

type=AVC msg=audit(1434574044.484:370): avc:  denied  { module_request } for  pid=1458 comm="keepalived" kmod="ip_vs_wrr" scontext=system_u:system_r:keepalived_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=system

type=AVC msg=audit(1434409743.116:5571): avc:  denied  { module_request } for  pid=17738 comm="keepalived" kmod="ip_vs_wlc" scontext=system_u:system_r:keepalived_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=system

type=AVC msg=audit(1434574086.022:373): avc:  denied  { module_request } for  pid=1469 comm="keepalived" kmod="ip_vs_dh" scontext=system_u:system_r:keepalived_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=system


Seems like it's all.

Comment 4 Miroslav Grepl 2015-07-16 08:22:09 UTC
This is  a valid request.

Comment 5 Lukas Vrabec 2015-07-16 15:09:11 UTC
commit 5dc526e60870f336e388c7ee83ea8f955c87cbe8
Author: Lukas Vrabec <lvrabec>
Date:   Thu Jul 16 16:49:44 2015 +0200

    Allow keepalived request kernel load module. Resolves: #1228321

Comment 7 Ryan O'Hara 2015-09-09 13:03:05 UTC
*** Bug 1261389 has been marked as a duplicate of this bug. ***

Comment 10 errata-xmlrpc 2015-11-19 10:35:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2300.html


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