Bug 1921273 - SELinux is preventing dhclient-script from 'getattr' accesses on the file /usr/bin/chronyc.
Summary: SELinux is preventing dhclient-script from 'getattr' accesses on the file /us...
Keywords:
Status: CLOSED DUPLICATE of bug 1897388
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 33
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f6d7fab8b807b0f942f3f4bdd3a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-27 20:09 UTC by samyhyde
Modified: 2021-01-28 10:43 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-01-28 10:43:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description samyhyde 2021-01-27 20:09:04 UTC
Description of problem:
SELinux is preventing dhclient-script from 'getattr' accesses on the file /usr/bin/chronyc.

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

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

Additional Information:
Source Context                unconfined_u:system_r:dhcpc_t:s0-s0:c0.c1023
Target Context                system_u:object_r:chronyc_exec_t:s0
Target Objects                /usr/bin/chronyc [ file ]
Source                        dhclient-script
Source Path                   dhclient-script
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           chrony-4.0-1.fc33.x86_64
SELinux Policy RPM            selinux-policy-targeted-3.14.6-34.fc33.noarch
Local Policy RPM              selinux-policy-targeted-3.14.6-34.fc33.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.10.10-200.fc33.x86_64 #1 SMP Sun
                              Jan 24 19:58:54 UTC 2021 x86_64 x86_64
Alert Count                   8
First Seen                    2021-01-15 15:55:37 CST
Last Seen                     2021-01-27 13:55:04 CST
Local ID                      22fce5d2-60ff-4dbf-9a43-692ac359c44e

Raw Audit Messages
type=AVC msg=audit(1611777304.473:2674): avc:  denied  { getattr } for  pid=82957 comm="dhclient-script" path="/usr/bin/chronyc" dev="dm-0" ino=262483 scontext=unconfined_u:system_r:dhcpc_t:s0-s0:c0.c1023 tcontext=system_u:object_r:chronyc_exec_t:s0 tclass=file permissive=0


Hash: dhclient-script,dhcpc_t,chronyc_exec_t,file,getattr

Version-Release number of selected component:
selinux-policy-targeted-3.14.6-34.fc33.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.14.0
hashmarkername: setroubleshoot
kernel:         5.10.10-200.fc33.x86_64
type:           libreport

Comment 1 Milos Malik 2021-01-27 20:33:31 UTC
I believe this bug is a duplicate of BZ#1897388.

Comment 2 Zdenek Pytela 2021-01-28 10:43:59 UTC

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


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