execute: properly enforce group

https://bugzilla.redhat.com/show_bug.cgi?id=723892
This commit is contained in:
Lennart Poettering 2011-08-01 21:34:42 +02:00
parent 4c12626c8e
commit fa8f36ac15

View file

@ -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;
}