exec: Assigning the empty string to CapabilityBoundSet= should drop all caps
Previously, it would set all caps, but it should drop them all, anything else makes little sense. Also, document that this works as it does, and what to do in order to assign all caps to the bounding set. https://bugzilla.redhat.com/show_bug.cgi?id=914705
This commit is contained in:
+8
-1
@@ -2645,7 +2645,14 @@ int unit_kill(Unit *u, KillWho w, int signo, DBusError *error) {
|
||||
return UNIT_VTABLE(u)->kill(u, w, signo, error);
|
||||
}
|
||||
|
||||
int unit_kill_common(Unit *u, KillWho who, int signo, pid_t main_pid, pid_t control_pid, DBusError *error) {
|
||||
int unit_kill_common(
|
||||
Unit *u,
|
||||
KillWho who,
|
||||
int signo,
|
||||
pid_t main_pid,
|
||||
pid_t control_pid,
|
||||
DBusError *error) {
|
||||
|
||||
int r = 0;
|
||||
|
||||
if (who == KILL_MAIN && main_pid <= 0) {
|
||||
|
||||
Reference in New Issue
Block a user