Lines Matching refs:token
1545 struct bpf_token *token; member
2368 bool bpf_token_capable(const struct bpf_token *token, int cap);
2370 static inline bool bpf_allow_ptr_leaks(const struct bpf_token *token) in bpf_allow_ptr_leaks() argument
2372 return bpf_token_capable(token, CAP_PERFMON); in bpf_allow_ptr_leaks()
2375 static inline bool bpf_allow_uninit_stack(const struct bpf_token *token) in bpf_allow_uninit_stack() argument
2377 return bpf_token_capable(token, CAP_PERFMON); in bpf_allow_uninit_stack()
2380 static inline bool bpf_bypass_spec_v1(const struct bpf_token *token) in bpf_bypass_spec_v1() argument
2382 return cpu_mitigations_off() || bpf_token_capable(token, CAP_PERFMON); in bpf_bypass_spec_v1()
2385 static inline bool bpf_bypass_spec_v4(const struct bpf_token *token) in bpf_bypass_spec_v4() argument
2387 return cpu_mitigations_off() || bpf_token_capable(token, CAP_PERFMON); in bpf_bypass_spec_v4()
2405 void bpf_token_inc(struct bpf_token *token);
2406 void bpf_token_put(struct bpf_token *token);
2410 bool bpf_token_allow_cmd(const struct bpf_token *token, enum bpf_cmd cmd);
2411 bool bpf_token_allow_map_type(const struct bpf_token *token, enum bpf_map_type type);
2412 bool bpf_token_allow_prog_type(const struct bpf_token *token,
2783 static inline bool bpf_token_capable(const struct bpf_token *token, int cap) in bpf_token_capable() argument
2788 static inline void bpf_token_inc(struct bpf_token *token) in bpf_token_inc() argument
2792 static inline void bpf_token_put(struct bpf_token *token) in bpf_token_put() argument