Bug 1509274 - SELinux is preventing rngd from using the 'dac_override' capabilities.
Summary: SELinux is preventing rngd from using the 'dac_override' capabilities.
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: x86_64
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:785a7c1c913cbb6005a32e2ac77...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-03 13:09 UTC by Michał
Modified: 2017-11-16 12:48 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-11-16 12:48:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michał 2017-11-03 13:09:25 UTC
Description of problem:
SELinux is preventing rngd from using the 'dac_override' capabilities.

*****  Plugin dac_override (91.4 confidence) suggests   **********************

If aby pomóc ustalić, czy domena wymaga tego dostępu lub w systemie istnieje plik z błędnymi uprawnieniami
Then należy włączyć audyt, aby uzyskać informacje o ścieżce problemowego pliku i ponownie utworzyć błąd.
Do

Włączenie pełnego audytu
# auditctl -w /etc/shadow -p w
Próba ponownego utworzenia AVC. Następnie wykonanie polecenia
# ausearch -m avc -ts recent
Jeśli widoczny jest wpis ŚCIEŻKI, należy sprawdzić właściciela/uprawnienia pliku,
a następnie je naprawić. W przeciwnym wypadku należy zgłosić błąd w Bugzilli.

*****  Plugin catchall (9.59 confidence) suggests   **************************

If jeśli rngd powinno mieć domyślnie możliwość dac_override.
Then proszę to zgłosić jako błąd.
Można utworzyć lokalny moduł polityki, aby umożliwić ten dostęp.
Do
allow this access for now by executing:
# ausearch -c 'rngd' --raw | audit2allow -M my-rngd
# semodule -X 300 -i my-rngd.pp

Additional Information:
Source Context                system_u:system_r:rngd_t:s0
Target Context                system_u:system_r:rngd_t:s0
Target Objects                Unknown [ capability ]
Source                        rngd
Source Path                   rngd
Port                          <Nieznane>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-283.14.fc27.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.13.9-300.fc27.x86_64 #1 SMP Mon
                              Oct 23 13:41:58 UTC 2017 x86_64 x86_64
Alert Count                   1
First Seen                    2017-11-03 12:48:47 GMT
Last Seen                     2017-11-03 12:48:47 GMT
Local ID                      f6bb6491-509b-4b88-add7-ff03e192b617

Raw Audit Messages
type=AVC msg=audit(1509713327.656:99): avc:  denied  { dac_override } for  pid=1421 comm="rngd" capability=1  scontext=system_u:system_r:rngd_t:s0 tcontext=system_u:system_r:rngd_t:s0 tclass=capability permissive=0


Hash: rngd,rngd_t,rngd_t,capability,dac_override

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

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.2
hashmarkername: setroubleshoot
kernel:         4.13.9-300.fc27.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2017-11-03 16:37:24 UTC
Hi, 

This looks like issue on your system then in selinux-policy. Please read following blog and let us know if your system is fixed.

https://danwalsh.livejournal.com/69478.html

Thanks,
Lukas.

Comment 2 Michał 2017-11-15 09:46:02 UTC
Hi,

couldn't find path for the offending file, but magically error disapeared after few reboots. SO:

FIXED 
;)

Comment 3 Lukas Vrabec 2017-11-16 12:48:56 UTC
Closing, thanks.


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