Revert "execute: Call capability_ambient_set_apply even if ambient set is 0" accepted/tizen/unified/dev/20240619.062926
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, 29 May 2024 22:07:11 +0000 (00:07 +0200)
commitcd2bd2abe7ca9f127bd2163fb71510d987a957da
treed3589baa6b5b4f0cd43d23fb7fc7ce93a8533eb1
parent8a3c48ba19efd13a88234ea5033e31cda40f047a
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.

Change-Id: I479f6268373ac8b0772f9ac56dd52f45e6003705
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Forwarded: https://github.com/systemd/systemd/pull/32937
src/core/exec-invoke.c