aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-07-26 21:08:32 -0700
committerZiyan <jaraidaniel@gmail.com>2016-04-03 14:55:54 +0200
commitcd3e667d8bc6ec17361f9ae7cb274c0805803822 (patch)
treec35e070e437e4e0355aa469c25a2009884089ac7 /include
parente86da70c31376c5b743373ebb0b5afc519c624be (diff)
downloadkernel_samsung_tuna-cd3e667d8bc6ec17361f9ae7cb274c0805803822.zip
kernel_samsung_tuna-cd3e667d8bc6ec17361f9ae7cb274c0805803822.tar.gz
kernel_samsung_tuna-cd3e667d8bc6ec17361f9ae7cb274c0805803822.tar.bz2
vfs: Add a user namespace reference from struct mnt_namespace
This will allow for support for unprivileged mounts in a new user namespace. Acked-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> (cherry picked from commit 771b1371686e0a63e938ada28de020b9a0040f55)
Diffstat (limited to 'include')
-rw-r--r--include/linux/mnt_namespace.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/mnt_namespace.h b/include/linux/mnt_namespace.h
index 53af0b1..7fe24fd 100644
--- a/include/linux/mnt_namespace.h
+++ b/include/linux/mnt_namespace.h
@@ -10,6 +10,7 @@ struct mnt_namespace {
atomic_t count;
struct vfsmount * root;
struct list_head list;
+ struct user_namespace *user_ns;
u64 seq; /* Sequence number to prevent loops */
wait_queue_head_t poll;
int event;
@@ -24,9 +25,10 @@ struct proc_mounts {
struct fs_struct;
+struct user_namespace;
extern struct mnt_namespace *create_mnt_ns(struct vfsmount *mnt);
extern struct mnt_namespace *copy_mnt_ns(unsigned long, struct mnt_namespace *,
- struct fs_struct *);
+ struct user_namespace *, struct fs_struct *);
extern void put_mnt_ns(struct mnt_namespace *ns);
static inline void get_mnt_ns(struct mnt_namespace *ns)
{