Bug 1754397 - SELinux is preventing timedatex from using the 'sys_time' capabilities.
Summary: SELinux is preventing timedatex from using the 'sys_time' capabilities.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 31
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Patrik Koncity
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:29f5ff25e0ac3e06ebdc4292f56...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-23 07:19 UTC by Yaniv Kaul
Modified: 2019-10-29 01:27 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.14.4-39.fc31
Clone Of:
Environment:
Last Closed: 2019-10-29 01:27:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Yaniv Kaul 2019-09-23 07:19:50 UTC
Description of problem:
Tried to change timezone.
SELinux is preventing timedatex from using the 'sys_time' capabilities.

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

If you believe that timedatex should have the sys_time capability 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 'timedatex' --raw | audit2allow -M my-timedatex
# semodule -X 300 -i my-timedatex.pp

Additional Information:
Source Context                system_u:system_r:timedatex_t:s0
Target Context                system_u:system_r:timedatex_t:s0
Target Objects                Unknown [ capability ]
Source                        timedatex
Source Path                   timedatex
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.4-35.fc31.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.3.0-1.fc31.x86_64 #1 SMP Mon Sep
                              16 12:34:42 UTC 2019 x86_64 x86_64
Alert Count                   3
First Seen                    2019-09-23 12:48:10 +0530
Last Seen                     2019-09-23 12:48:15 +0530
Local ID                      089c0f50-b8af-4ee5-b7ff-5afa338f1a51

Raw Audit Messages
type=AVC msg=audit(1569223095.98:346): avc:  denied  { sys_time } for  pid=15474 comm="timedatex" capability=25  scontext=system_u:system_r:timedatex_t:s0 tcontext=system_u:system_r:timedatex_t:s0 tclass=capability permissive=0


Hash: timedatex,timedatex_t,timedatex_t,capability,sys_time

Version-Release number of selected component:
selinux-policy-3.14.4-35.fc31.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.10.1
hashmarkername: setroubleshoot
kernel:         5.3.0-1.fc31.x86_64
type:           libreport

Comment 1 Fedora Update System 2019-10-26 16:59:18 UTC
FEDORA-2019-7d65c50fd6 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-7d65c50fd6

Comment 2 Fedora Update System 2019-10-27 04:02:44 UTC
selinux-policy-3.14.4-39.fc31 has been pushed to the Fedora 31 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-7d65c50fd6

Comment 3 Fedora Update System 2019-10-29 01:27:44 UTC
selinux-policy-3.14.4-39.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.


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