RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1963216 - SELinux is preventing /usr/lib/systemd/systemd-timesyncd from 'getattr' accesses on the lnk_file /var/lib/systemd/timesync.
Summary: SELinux is preventing /usr/lib/systemd/systemd-timesyncd from 'getattr' acces...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: selinux-policy
Version: 8.4
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: beta
: 8.5
Assignee: Zdenek Pytela
QA Contact: Milos Malik
URL:
Whiteboard: abrt_hash:2bac8600a45364a6fcddf6ccf53...
Depends On: 1649666
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-21 17:10 UTC by Zdenek Pytela
Modified: 2021-10-07 18:50 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of: 1649666
Environment:
Last Closed: 2021-07-01 15:22:03 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Zdenek Pytela 2021-05-21 17:10:40 UTC
+++ This bug was initially created as a clone of Bug #1649666 +++

Description of problem:
SELinux is preventing /usr/lib/systemd/systemd-timesyncd from 'getattr' accesses on the lnk_file /var/lib/systemd/timesync.

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

If you believe that systemd-timesyncd should be allowed getattr access on the timesync lnk_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 'systemd-timesyn' --raw | audit2allow -M my-systemdtimesyn
# semodule -X 300 -i my-systemdtimesyn.pp

Additional Information:
Source Context                system_u:system_r:systemd_timedated_t:s0
Target Context                system_u:object_r:init_var_lib_t:s0
Target Objects                /var/lib/systemd/timesync [ lnk_file ]
Source                        systemd-timesyn
Source Path                   /usr/lib/systemd/systemd-timesyncd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-udev-239-6.git9f3aed1.fc29.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.2-42.fc29.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.18.17-300.fc29.x86_64 #1 SMP Mon
                              Nov 5 17:56:16 UTC 2018 x86_64 x86_64
Alert Count                   1
First Seen                    2018-11-14 12:59:17 IST
Last Seen                     2018-11-14 12:59:17 IST
Local ID                      ca0f7360-7ab9-4628-a66c-6cb4857d309a

Raw Audit Messages
type=AVC msg=audit(1542180557.269:85): avc:  denied  { getattr } for  pid=741 comm="systemd-timesyn" path="/var/lib/systemd/timesync" dev="sda3" ino=1444885 scontext=system_u:system_r:systemd_timedated_t:s0 tcontext=system_u:object_r:init_var_lib_t:s0 tclass=lnk_file permissive=1


type=SYSCALL msg=audit(1542180557.269:85): arch=x86_64 syscall=lstat success=yes exit=0 a0=55d11875619c a1=7ffc12acb500 a2=7ffc12acb500 a3=0 items=0 ppid=1 pid=741 auid=4294967295 uid=963 gid=963 euid=963 suid=963 fsuid=963 egid=963 sgid=963 fsgid=963 tty=(none) ses=4294967295 comm=systemd-timesyn exe=/usr/lib/systemd/systemd-timesyncd subj=system_u:system_r:systemd_timedated_t:s0 key=(null)

Hash: systemd-timesyn,systemd_timedated_t,init_var_lib_t,lnk_file,getattr

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

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.6
hashmarkername: setroubleshoot
kernel:         4.18.17-300.fc29.x86_64
type:           libreport

--- Additional comment from Lukas Vrabec on 2018-12-17 19:41:02 CET ---

This PR should fix this bug:
https://github.com/fedora-selinux/selinux-policy/pull/235

--- Additional comment from Lukas Vrabec on 2018-12-17 19:41:36 CET ---



--- Additional comment from Fedora Update System on 2019-01-13 16:44:33 CET ---

selinux-policy-3.14.2-46.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-6a20cfef61

--- Additional comment from Fedora Update System on 2019-01-14 04:02:52 CET ---

selinux-policy-3.14.2-46.fc29 has been pushed to the Fedora 29 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-2019-6a20cfef61

--- Additional comment from Fedora Update System on 2019-01-17 03:16:19 CET ---

selinux-policy-3.14.2-46.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 5 Zdenek Pytela 2021-07-01 15:22:03 UTC
Closing this bz as it turned out not to be a current RHEL 8 bug in the end.


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