]> git.ipfire.org Git - thirdparty/systemd.git/commit
Revert "execute: Call capability_ambient_set_apply even if ambient set is 0" 32937/head
authorŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 28 May 2024 14:56:03 +0000 (16:56 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 31 Jul 2024 09:09:58 +0000 (11:09 +0200)
commit18d51ec876120fa0e22529db51df09f8b7a5aa7b
tree6b8e4a30eb3c32157b91e5929f7b023d3390aa2b
parente0ebc81b2d194206c519375394bd67baa19e67ce
Revert "execute: Call capability_ambient_set_apply even if ambient set is 0"

With ambient capabilities being dropped at the start of process managers
(both system and user) as well as systemd-executor it isn't necessary
to drop them here. Moreover, at this point also the inheritable set can
be preserved. This makes it possible to assign a user session manager
inheritable capabilities which combined with file capabilites (ei sets)
of service executables enable running user services with capabilities
but only when started by the manager.

This reverts commit 943800f4e7728feb2416dd57b8c296614497b94f.
src/core/exec-invoke.c