Bug 2144226

Summary: SELinux is triggered when Automatic Date & Time is toggled
Product: [Fedora] Fedora Reporter: Daniel Mendizabal <daniel>
Component: systemdAssignee: systemd-maint
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: dtardon, fedoraproject, filbranden, flepied, lnykryn, msekleta, ryncsn, ssahani, s, systemd-maint, yuwatana, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-01 13:58:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Mendizabal 2022-11-20 01:55:09 UTC
Description of problem:
SELinux is triggered and a custom policy needs to be created to solve the problem:

require {
	type systemd_gpt_generator_t;
	class capability sys_admin;
}

#============= systemd_gpt_generator_t ==============
allow systemd_gpt_generator_t self:capability sys_admin;


How reproducible:
1. Open Gnome Settings
2. Choose Date & Time
3. Switch Automatic Date & Time ON and OFF 


Actual results:
Time and Date is off

Expected results:
Time and Date to be in synced with online server

Comment 1 Lukáš Nykrýn 2022-11-28 13:53:27 UTC
I think this is a known bug (I don't have the link on my hand), but it should be fixed soon in selinux-policy.

Comment 2 David Tardon 2022-12-01 13:58:48 UTC

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