Bug 1624553 - SELinux is preventing dhclient from 'open' accesses on the chr_file /dev/random.
Summary: SELinux is preventing dhclient from 'open' accesses on the chr_file /dev/random.
Keywords:
Status: CLOSED DUPLICATE of bug 1624552
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:d9d5cf67139f494625ba51593c8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-01 10:49 UTC by Mikhail
Modified: 2018-09-01 17:17 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-09-01 17:17:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2018-09-01 10:49:28 UTC
Description of problem:
SELinux is preventing dhclient from 'open' accesses on the chr_file /dev/random.

*****  Plugin catchall_boolean (89.3 confidence) suggests   ******************

If you want to allow authlogin to nsswitch use ldap
Then you must tell SELinux about this by enabling the 'authlogin_nsswitch_use_ldap' boolean.

Do
setsebool -P authlogin_nsswitch_use_ldap 1

*****  Plugin catchall (11.6 confidence) suggests   **************************

If you believe that dhclient should be allowed open access on the random chr_file 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 'dhclient' --raw | audit2allow -M my-dhclient
# semodule -X 300 -i my-dhclient.pp

Additional Information:
Source Context                system_u:system_r:dhcpc_t:s0
Target Context                system_u:object_r:random_device_t:s0
Target Objects                /dev/random [ chr_file ]
Source                        dhclient
Source Path                   dhclient
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.2-32.fc29.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.19.0-0.rc1.git0.1.fc30.x86_64 #1
                              SMP Mon Aug 27 13:01:19 UTC 2018 x86_64 x86_64
Alert Count                   3
First Seen                    2018-08-29 00:29:50 +05
Last Seen                     2018-09-01 13:03:05 +05
Local ID                      b117d1dc-00b1-44b2-bd6e-992968edb015

Raw Audit Messages
type=AVC msg=audit(1535788985.624:647): avc:  denied  { open } for  pid=2233 comm="dhclient" path="/dev/random" dev="devtmpfs" ino=1032 scontext=system_u:system_r:dhcpc_t:s0 tcontext=system_u:object_r:random_device_t:s0 tclass=chr_file permissive=1


Hash: dhclient,dhcpc_t,random_device_t,chr_file,open

Version-Release number of selected component:
selinux-policy-3.14.2-32.fc29.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.19.0-0.rc1.git4.1.fc30.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2018-09-01 17:17:19 UTC

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


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