Lines Matching refs:bpf_token
57 struct bpf_token;
1595 struct bpf_token *token;
1761 struct bpf_token { struct
2444 bool bpf_token_capable(const struct bpf_token *token, int cap);
2446 static inline bool bpf_allow_ptr_leaks(const struct bpf_token *token) in bpf_allow_ptr_leaks()
2451 static inline bool bpf_allow_uninit_stack(const struct bpf_token *token) in bpf_allow_uninit_stack()
2456 static inline bool bpf_bypass_spec_v1(const struct bpf_token *token) in bpf_bypass_spec_v1()
2461 static inline bool bpf_bypass_spec_v4(const struct bpf_token *token) in bpf_bypass_spec_v4()
2484 void bpf_token_inc(struct bpf_token *token);
2485 void bpf_token_put(struct bpf_token *token);
2487 struct bpf_token *bpf_token_get_from_fd(u32 ufd);
2489 bool bpf_token_allow_cmd(const struct bpf_token *token, enum bpf_cmd cmd);
2490 bool bpf_token_allow_map_type(const struct bpf_token *token, enum bpf_map_type type);
2491 bool bpf_token_allow_prog_type(const struct bpf_token *token,
2868 static inline bool bpf_token_capable(const struct bpf_token *token, int cap) in bpf_token_capable()
2873 static inline void bpf_token_inc(struct bpf_token *token) in bpf_token_inc()
2877 static inline void bpf_token_put(struct bpf_token *token) in bpf_token_put()
2881 static inline struct bpf_token *bpf_token_get_from_fd(u32 ufd) in bpf_token_get_from_fd()