Skip to contentSkip to conversation

linux-next: manual merge of the userns tree with the vfs tree

DISCUSSION Stephen Rothwell 1 participant 1 message Dec 10, 2014 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Eric,

Today's linux-next merge of the userns tree got conflicts in include/linux/user_namespace.h and kernel/user.c between commit 435d5f4bb2cc ("common object embedded into various struct ....ns") from the vfs tree and commit 2b714ea67ed4 ("userns: Add a knob to disable setgroups on a per user namespace basis") from the userns tree.

I fixed it up (see below) and can carry the fix as necessary (no action is required).

Signature · 34 lines
Cheers,
Stephen Rothwell                    [email protected]

diff --cc include/linux/user_namespace.h
index 4cf06c140e21,6451c401dcf6..000000000000
--- a/include/linux/user_namespace.h
+++ b/include/linux/user_namespace.h
@@@ -27,7 -32,8 +33,8 @@@ struct user_namespace 
  	int			level;
  	kuid_t			owner;
  	kgid_t			group;
 -	unsigned int		proc_inum;
 +	struct ns_common	ns;
+ 	unsigned long		flags;
  
  	/* Register of per-UID persistent keyrings for this namespace */
  #ifdef CONFIG_PERSISTENT_KEYRINGS
diff --cc kernel/user.c
index 69b800aebf13,2d09940c9632..000000000000
--- a/kernel/user.c
+++ b/kernel/user.c
@@@ -50,10 -50,8 +50,11 @@@ struct user_namespace init_user_ns = 
  	.count = ATOMIC_INIT(3),
  	.owner = GLOBAL_ROOT_UID,
  	.group = GLOBAL_ROOT_GID,
 -	.proc_inum = PROC_USER_INIT_INO,
 +	.ns.inum = PROC_USER_INIT_INO,
 +#ifdef CONFIG_USER_NS
 +	.ns.ops = &userns_operations,
 +#endif
+ 	.flags = USERNS_INIT_FLAGS,
  #ifdef CONFIG_PERSISTENT_KEYRINGS
  	.persistent_keyring_register_sem =
  	__RWSEM_INITIALIZER(init_user_ns.persistent_keyring_register_sem),