]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
bpf: allow for mount options to specify permissions
authorDaniel Borkmann <daniel@iogearbox.net>
Sat, 26 Nov 2016 00:28:08 +0000 (01:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Nov 2016 01:38:47 +0000 (20:38 -0500)
commita3af5f80010625a9ffbe8edd4bae615a7516b6bc
tree55ee9e7b193b3a51ff9f0a625bcd6d4f8181876d
parent21116b7068b9b66ac16b2fe3675469f459968c3f
bpf: allow for mount options to specify permissions

Since we recently converted the BPF filesystem over to use mount_nodev(),
we now have the possibility to also hold mount options in sb's s_fs_info.
This work implements mount options support for specifying permissions on
the sb's inode, which will be used by tc when it manually needs to mount
the fs.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/inode.c