This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 1468501 - preset override for user-session services missing compared to system service configuration
preset override for user-session services missing compared to system service ...
Status: NEW
Product: Fedora
Classification: Fedora
Component: systemd (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: systemd-maint
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2017-07-07 05:16 EDT by Fabio Valentini
Modified: 2017-08-15 04:22 EDT (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Fabio Valentini 2017-07-07 05:16:00 EDT
By default, systemd system services are disabled after RPM package installation - unless they ship a preset override file. This is handled by the file "/usr/lib/systemd/system-preset/99-default-disable.preset".

No such policy/preset exists for user session services.

When using the systemd scriptlets from the Packaging Guidelines (in a package which ships a user session service), the "%systemd_user_post" macro is triggered on package installation, and thus enables the service in question for _ALL_ users on the system globally - including root, gdm, and others (which is obviously not the desired behavior).

I suggest shipping a user-preset file equivalent to the "system-preset/99-default-disable.preset" file to prevent this unexpected misbehavior.

Right now, one has to ship a preset file to explicitly prevent user services from being activated, which is exactly the opposite of what has to be done for system services (shipping a preset explicitly enabling it on installation, otherwise it's disabled by default).

Version-Release number of selected component (if applicable):
All systemd versions in fedora 25, 26, rawhide are affected.
Comment 1 Jan Kurik 2017-08-15 04:22:32 EDT
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.

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