]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/uapi/linux/bpf.h
bpf/cgroup: fix a verification error for a CGROUP_DEVICE type prog
[mirror_ubuntu-bionic-kernel.git] / include / uapi / linux / bpf.h
index 4c223ab30293cd1e07248b960e213c7f22b778c5..04b2f613dd066e993a4e9c1792f6f2fc41e536ed 100644 (file)
@@ -995,7 +995,8 @@ struct bpf_perf_event_value {
 #define BPF_DEVCG_DEV_CHAR     (1ULL << 1)
 
 struct bpf_cgroup_dev_ctx {
-       __u32 access_type; /* (access << 16) | type */
+       /* access_type encoded as (BPF_DEVCG_ACC_* << 16) | BPF_DEVCG_DEV_* */
+       __u32 access_type;
        __u32 major;
        __u32 minor;
 };