Bug 1317944

Summary: SELinux is preventing /usr/sbin/dhcpd from using the 'fowner' capabilities.
Product: [Fedora] Fedora Reporter: Alexander Yurtsev <ayurtsev>
Component: dhcpAssignee: Jiri Popelka <jpopelka>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 23CC: dominick.grift, dwalsh, eddie.kuns, eddie, goeran, jpopelka, lam, lvrabec, mgrepl, plautrba, thozza, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:19fe146c0b5635bdd31af116825cb12eebade89791980a86fe98071f7a8376e6;VARIANT_ID=workstation;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-21 07:33:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Alexander Yurtsev 2016-03-15 14:57:30 UTC
Description of problem:
I was trying to start the dhcpd with the below command when I got this error:

systemctl start dhcpd6.service
SELinux is preventing /usr/sbin/dhcpd from using the 'fowner' capabilities.

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

If вы считаете, что dhcpd следует разрешить доступ fowner по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
чтобы разрешить доступ, выполните:
# grep dhcpd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:dhcpd_t:s0
Target Context                system_u:system_r:dhcpd_t:s0
Target Objects                Unknown [ capability ]
Source                        dhcpd
Source Path                   /usr/sbin/dhcpd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           dhcp-server-4.3.3-8.P1.fc23.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-158.9.fc23.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.4.4-301.fc23.x86_64 #1 SMP Fri
                              Mar 4 17:42:42 UTC 2016 x86_64 x86_64
Alert Count                   3
First Seen                    2016-03-15 17:20:59 MSK
Last Seen                     2016-03-15 17:38:51 MSK
Local ID                      25b6e71f-4336-470a-8265-07aef346a139

Raw Audit Messages
type=AVC msg=audit(1458052731.789:977): avc:  denied  { fowner } for  pid=11607 comm="dhcpd" capability=3  scontext=system_u:system_r:dhcpd_t:s0 tcontext=system_u:system_r:dhcpd_t:s0 tclass=capability permissive=0


type=SYSCALL msg=audit(1458052731.789:977): arch=x86_64 syscall=link success=yes exit=0 a0=5633cfa38aac a1=7ffe6bc11500 a2=7ffe6bc1151d a3=1c items=0 ppid=1 pid=11607 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=dhcpd exe=/usr/sbin/dhcpd subj=system_u:system_r:dhcpd_t:s0 key=(null)

Hash: dhcpd,dhcpd_t,dhcpd_t,capability,fowner

Version-Release number of selected component:
selinux-policy-3.13.1-158.9.fc23.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.4-301.fc23.x86_64
type:           libreport

Comment 1 Leszek Matok 2016-03-21 21:30:51 UTC
Description of problem:
Nothing, dhcpd was started on system boot.

dhcpd appears to be working fine despite this error.

Version-Release number of selected component:
selinux-policy-3.13.1-158.9.fc23.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.5-300.fc23.x86_64
type:           libreport

Comment 2 Leszek Matok 2016-04-14 20:57:35 UTC
Description of problem:
Computer starting, dhcpd server starting from rc.local if I remember correctly. I've never seen any avc denial from that until this policy update.

Version-Release number of selected component:
selinux-policy-3.13.1-158.12.fc23.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.6-301.fc23.x86_64
type:           libreport

Comment 3 Leszek Matok 2016-04-14 20:59:42 UTC
Apparently I have as I was the last commenter? I need to drink less! ;)

Still, a policy error for sure.

Comment 4 pgaltieri 2016-04-19 21:37:10 UTC
This error also occurs on F22

Comment 5 Göran Uddeborg 2016-05-09 18:53:42 UTC
And in F24 with selinux-policy-targeted-3.13.1-184.fc24.noarch.

Comment 6 Leszek Matok 2016-05-09 19:28:29 UTC
Perhaps we should change product to dhcpd?

I'm in CC list of one particular selinux-policy bug that's 100% reproducible and nothing happens for... I guess I can say _years_ already...

Maybe dhcpd maintainer would notice and push a policy update?

Comment 7 Edward Kuns 2016-06-20 05:10:24 UTC
I see this on Fedora 23 with 

dhcp-server-4.3.3-9.P1.fc23.x86_64

Is this related to / a dup of Bug 1315802?

Comment 8 Jiri Popelka 2016-06-21 07:33:24 UTC

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