summaryrefslogtreecommitdiff
path: root/kernel/bpf/inode.c
diff options
context:
space:
mode:
authorAnay Wadhera <awadhera@berkeley.edu>2021-05-20 21:58:12 -0700
committerMichael Bestas <mkbestas@lineageos.org>2022-04-19 00:49:47 +0300
commitcb3d90016fbe561502d0a324cab01e388b35acfa (patch)
treee3a29231361c634f07128220fc7a6837ba998579 /kernel/bpf/inode.c
parent205c12845c5d42a97656186fbf34de918eda4eae (diff)
Revert "bpf: Use mount_nodev not mount_ns to mount the bpf filesystem"
This reverts commit 5b7ea922e1754107f77d146011612f2e42600cc1. Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'kernel/bpf/inode.c')
-rw-r--r--kernel/bpf/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/inode.c b/kernel/bpf/inode.c
index 00f978e9cf91..d1a7646f79c5 100644
--- a/kernel/bpf/inode.c
+++ b/kernel/bpf/inode.c
@@ -358,7 +358,7 @@ static int bpf_fill_super(struct super_block *sb, void *data, int silent)
static struct dentry *bpf_mount(struct file_system_type *type, int flags,
const char *dev_name, void *data)
{
- return mount_nodev(type, flags, data, bpf_fill_super);
+ return mount_ns(type, flags, current->nsproxy->mnt_ns, bpf_fill_super);
}
static struct file_system_type bpf_fs_type = {