chiark / gitweb /
execute: properly enforce group
authorLennart Poettering <lennart@poettering.net>
Mon, 1 Aug 2011 19:34:42 +0000 (21:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 1 Aug 2011 19:34:42 +0000 (21:34 +0200)
https://bugzilla.redhat.com/show_bug.cgi?id=723892

src/execute.c

index f07d018..668bf9d 100644 (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;
                         }