diff options
author | Maciej Żenczykowski <maze@google.com> | 2020-01-27 03:11:51 -0800 |
---|---|---|
committer | Maciej Żenczykowski <maze@google.com> | 2020-02-14 23:28:26 +0000 |
commit | 83f2977da8b9a51ea665acdc6e0e336aa3781604 (patch) | |
tree | 096062baab0b60e4f5b0556d91edd1961fcef30c /progs/include/bpf_map_def.h | |
parent | 6f87896bdf30bcbca4616b3afa8e328d939d0c97 (diff) | |
download | bpf-83f2977da8b9a51ea665acdc6e0e336aa3781604.tar.gz |
add bpf_map_def support for setting uid/gid/mode
Test: build, atest, adb shell ls -lZ /sys/fs/bpf
Bug: 149434314
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ie4001fbe16b4bc84fc8ec7138ae4928cd86f5ce7
Diffstat (limited to 'progs/include/bpf_map_def.h')
-rw-r--r-- | progs/include/bpf_map_def.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/include/bpf_map_def.h b/progs/include/bpf_map_def.h index 89a96d4..b233dc9 100644 --- a/progs/include/bpf_map_def.h +++ b/progs/include/bpf_map_def.h @@ -62,4 +62,8 @@ struct bpf_map_def { // The following are not supported by the Android bpfloader: // unsigned int inner_map_idx; // unsigned int numa_node; + + unsigned int uid; // uid_t + unsigned int gid; // gid_t + unsigned int mode; // mode_t }; |