Use proc_pid_ns() to get pid_namespace from the proc superblock
authorAlexey Gladkov <gladkov.alexey@gmail.com>
Thu, 23 Apr 2020 20:03:10 +0000 (22:03 +0200)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 24 Apr 2020 21:38:30 +0000 (16:38 -0500)
commitc59f415a7cb6e1e1e1cdbd6ee370b050e95f6b21
tree79e9113bc0cdb5e48f8f4f6ab2163ad2ebae82c1
parent6ade99ec6175ab2b54c227521e181e1c3c2bfc8a
Use proc_pid_ns() to get pid_namespace from the proc superblock

To get pid_namespace from the procfs superblock should be used a special
helper. This will avoid errors when s_fs_info will change the type.

Link: https://lore.kernel.org/lkml/20200423200316.164518-3-gladkov.alexey@gmail.com/
Link: https://lore.kernel.org/lkml/20200423112858.95820-1-gladkov.alexey@gmail.com/
Link: https://lore.kernel.org/lkml/06B50A1C-406F-4057-BFA8-3A7729EA7469@lca.pw/
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
fs/locks.c
security/tomoyo/realpath.c