usernsd: also pass pid of process that made the req

We'll use this in the next patch to correctly write sysctls.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Tycho Andersen 2015-09-16 21:02:37 -06:00 committed by Pavel Emelyanov
parent 72ff44d0dc
commit 85ebf0a83b
5 changed files with 67 additions and 23 deletions

View file

@ -80,7 +80,7 @@ extern int userns_gid(int gid);
extern int dump_user_ns(pid_t pid, int ns_id);
extern void free_userns_maps(void);
typedef int (*uns_call_t)(void *arg, int fd);
typedef int (*uns_call_t)(void *arg, int fd, pid_t pid);
/*
* Async call -- The call is guaranteed to be done till the
* CR_STATE_COMPLETE happens. The function may return even