Bug 1589720

Summary: systemd presets request - selinux-autorelabel-mark.service
Product: [Fedora] Fedora Reporter: Petr Lautrbach <plautrba>
Component: fedora-releaseAssignee: Stephen Gallagher <sgallagh>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dennis, jdisnard, jkeating, kellin, kevin, mboddu, mboddu, pbrobinson, sgallagh, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: fedora-release-29-0.5.noarch Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-16 11:32:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Lautrbach 2018-06-11 09:08:19 UTC
* Does the service require post-rpm-installation configuration in order to be useful (for example, does it need manual edits to a configuration file)?

No

* Does the service listen on a network socket for connections originating on a separate physical or virtual machine?

No

* Is the service non-persistent (i.e. run once at startup and exit)?

Yes

* What is the exact name (or names) of the systemd unit files to be enabled?

selinux-autorelabel-mark.service

* Is this request for all Fedora deliverables or only for some Editions (list them)?

All



The current situation is that selinux-autorelabel-mark.service services is enabled via symlink shipped in policycoreutils package:

ln -s ../selinux-autorelabel-mark.service %{buildroot}/%{_unitdir}/basic.target.wants/


When this request is resolved, we'll change the service to use:

[Install]
WantedBy=sysinit.target

and policycoreutils.spec file to use:

%post
%systemd_post selinux-autorelabel-mark.service

%preun
%systemd_preun selinux-autorelabel-mark.service



This is based on the initscripts change which happened in rhel7-branch - https://github.com/fedora-sysv/initscripts/commit/995e8ad74f5a6bc51f28c0be4ed02c547e0891d6

Comment 1 Stephen Gallagher 2018-06-13 15:33:28 UTC
PR submitted as https://pagure.io/fedora-release/pull-request/143

Mohan, please review and merge for Fedora 29.

Comment 2 Petr Lautrbach 2018-07-16 11:32:58 UTC
Thanks!

Comment 3 Red Hat Bugzilla 2023-09-14 04:29:40 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days