/proc/fs/afs points into /proc/self/net. Create it with proc_self_symlink() so nothing can be mounted on the link itself. Signed-off-by: Christian Brauner (Amutable) --- fs/afs/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/afs/main.c b/fs/afs/main.c index 7a883c59976f..b12725f1d3d5 100644 --- a/fs/afs/main.c +++ b/fs/afs/main.c @@ -188,7 +188,7 @@ static int __init afs_init(void) if (ret < 0) goto error_fs; - afs_proc_symlink = proc_symlink("fs/afs", NULL, "../self/net/afs"); + afs_proc_symlink = proc_self_symlink("fs/afs", NULL, "../self/net/afs"); if (!afs_proc_symlink) { ret = -ENOMEM; goto error_proc; -- 2.53.0