--- zzzz-none-000/linux-3.10.107/include/linux/user_namespace.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/include/linux/user_namespace.h 2021-02-04 17:41:59.000000000 +0000 @@ -3,6 +3,7 @@ #include #include +#include #include #include @@ -30,10 +31,14 @@ int level; kuid_t owner; kgid_t group; - unsigned int proc_inum; + struct ns_common ns; unsigned long flags; - bool may_mount_sysfs; - bool may_mount_proc; + + /* Register of per-UID persistent keyrings for this namespace */ +#ifdef CONFIG_PERSISTENT_KEYRINGS + struct key *persistent_keyring_register; + struct rw_semaphore persistent_keyring_register_sem; +#endif }; extern struct user_namespace init_user_ns; @@ -58,9 +63,9 @@ } struct seq_operations; -extern struct seq_operations proc_uid_seq_operations; -extern struct seq_operations proc_gid_seq_operations; -extern struct seq_operations proc_projid_seq_operations; +extern const struct seq_operations proc_uid_seq_operations; +extern const struct seq_operations proc_gid_seq_operations; +extern const struct seq_operations proc_projid_seq_operations; extern ssize_t proc_uid_map_write(struct file *, const char __user *, size_t, loff_t *); extern ssize_t proc_gid_map_write(struct file *, const char __user *, size_t, loff_t *); extern ssize_t proc_projid_map_write(struct file *, const char __user *, size_t, loff_t *); @@ -97,6 +102,4 @@ } #endif -void update_mnt_policy(struct user_namespace *userns); - #endif /* _LINUX_USER_H */