Skip to content
Commit 750e7857 authored by Jie Jiang's avatar Jie Jiang Committed by Andrii Nakryiko
Browse files

bpf: Support uid and gid when mounting bpffs



Parse uid and gid in bpf_parse_param() so that they can be passed in as
the `data` parameter when mount() bpffs. This will be useful when we
want to control which user/group has the control to the mounted bpffs,
otherwise a separate chown() call will be needed.

Signed-off-by: default avatarJie Jiang <jiejiang@chromium.org>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Acked-by: default avatarMike Frysinger <vapier@chromium.org>
Acked-by: default avatarChristian Brauner <brauner@kernel.org>
Acked-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20231212093923.497838-1-jiejiang@chromium.org
parent 62d9a969
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment