librunas: clone another process also if not root
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 21 Dec 2011 14:44:24 +0000 (09:44 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 21 Dec 2011 14:44:24 +0000 (09:44 -0500)
Still useful to isolate umask(0).

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
librunas/runas.c

index 12327c1111fd15715174d41947f5e41db26beca3..cbb70ee193469dfe35439b8735fcbdda9ebad938 100644 (file)
@@ -204,7 +204,6 @@ int run_as(int (*cmd)(void *data), void *data, uid_t uid, gid_t gid)
                                uid, geteuid());
                        return -EPERM;
                }
                                uid, geteuid());
                        return -EPERM;
                }
-               return (*cmd)(data);
        }
 
        child_stack = malloc(CHILD_STACK_SIZE * 2);
        }
 
        child_stack = malloc(CHILD_STACK_SIZE * 2);
This page took 0.024877 seconds and 4 git commands to generate.