Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1591421 - SELinux is preventing fail2ban-server from using the 'getpgid' accesses on a process.
Summary: SELinux is preventing fail2ban-server from using the 'getpgid' accesses on a ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1f43a2219ef1b76934c15acb586...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-14 16:57 UTC by Pavel Slama
Modified: 2018-08-08 15:33 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.13.1-284.37.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-08-08 15:33:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Pavel Slama 2018-06-14 16:57:25 UTC
Description of problem:
SELinux is preventing fail2ban-server from using the 'getpgid' accesses on a process.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that fail2ban-server should be allowed getpgid access on processes labeled fail2ban_t 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:
# ausearch -c 'fail2ban-server' --raw | audit2allow -M my-fail2banserver
# semodule -X 300 -i my-fail2banserver.pp

Additional Information:
Source Context                system_u:system_r:fail2ban_t:s0
Target Context                system_u:system_r:fail2ban_t:s0
Target Objects                Unknown [ process ]
Source                        fail2ban-server
Source Path                   fail2ban-server
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-283.34.fc27.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.16.14-200.fc27.x86_64 #1 SMP Tue
                              Jun 5 16:30:48 UTC 2018 x86_64 x86_64
Alert Count                   9
First Seen                    2018-05-14 04:43:21 CEST
Last Seen                     2018-06-14 18:52:51 CEST
Local ID                      42253f2e-0528-43ec-8f27-ddccad6a7a95

Raw Audit Messages
type=AVC msg=audit(1528995171.948:3209): avc:  denied  { getpgid } for  pid=1117 comm="fail2ban-server" scontext=system_u:system_r:fail2ban_t:s0 tcontext=system_u:system_r:fail2ban_t:s0 tclass=process permissive=1


Hash: fail2ban-server,fail2ban_t,fail2ban_t,process,getpgid

Version-Release number of selected component:
selinux-policy-3.13.1-283.34.fc27.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.16.14-200.fc27.x86_64
type:           libreport

Comment 1 Fedora Update System 2018-07-27 09:21:38 UTC
selinux-policy-3.13.1-284.37.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-4bb4de2d86

Comment 2 Fedora Update System 2018-07-27 15:38:33 UTC
selinux-policy-3.13.1-284.37.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-4bb4de2d86

Comment 3 Fedora Update System 2018-08-08 15:33:15 UTC
selinux-policy-3.13.1-284.37.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


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