From: Lennart Poettering Date: Mon, 1 Aug 2011 19:34:42 +0000 (+0200) Subject: execute: properly enforce group X-Git-Tag: v33~18 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa8f36ac15f6c3985f053cdd3698655958442f7f;p=systemd execute: properly enforce group https://bugzilla.redhat.com/show_bug.cgi?id=723892 --- diff --git a/src/execute.c b/src/execute.c index f07d018a..668bf9d0 100644 --- a/src/execute.c +++ b/src/execute.c @@ -1193,7 +1193,7 @@ int exec_spawn(ExecCommand *command, } if (apply_permissions) - if (enforce_groups(context, username, uid) < 0) { + if (enforce_groups(context, username, gid) < 0) { r = EXIT_GROUP; goto fail_child; }