diff options
Diffstat (limited to 'pasta.c')
| -rw-r--r-- | pasta.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -235,14 +235,10 @@ static int pasta_spawn_cmd(void *arg) /** * pasta_start_ns() - Fork command in new namespace if target ns is not given * @c: Execution context - * @uid: UID we're running as in the init namespace - * @gid: GID we're running as in the init namespace - * @config_idmaps: Whether to configure user mappings * @argc: Number of arguments for spawned command * @argv: Command to spawn and arguments */ -void pasta_start_ns(struct ctx *c, uid_t uid, gid_t gid, bool config_idmaps, - int argc, char *argv[]) +void pasta_start_ns(struct ctx *c, int argc, char *argv[]) { char ns_fn_stack[NS_FN_STACK_SIZE] __attribute__ ((aligned(__alignof__(max_align_t)))); @@ -259,10 +255,6 @@ void pasta_start_ns(struct ctx *c, uid_t uid, gid_t gid, bool config_idmaps, if (!c->debug) c->quiet = 1; - /* Configure user and group mappings */ - if (config_idmaps) - make_ugid_map(0, uid, gid); - if (argc == 0) { arg.exe = getenv("SHELL"); if (!arg.exe) |
