Home
last modified time | relevance | path

Searched refs:name__str (Results 1 – 3 of 3) sorted by relevance

/linux/fs/
H A Dbpf_fs_kfuncs.c99 static bool match_security_bpf_prefix(const char *name__str) in match_security_bpf_prefix() argument
101 return !strncmp(name__str, XATTR_NAME_BPF_LSM, XATTR_NAME_BPF_LSM_LEN); in match_security_bpf_prefix()
120 * @name__str: name of the xattr
123 * Get xattr *name__str* of *dentry* and store the output in *value_ptr*.
125 * For security reasons, only *name__str* with prefixes "user." or
130 __bpf_kfunc int bpf_get_dentry_xattr(struct dentry *dentry, const char *name__str, in bpf_get_dentry_xattr() argument
144 ret = bpf_xattr_read_permission(name__str, inode); in bpf_get_dentry_xattr()
147 return __vfs_getxattr(dentry, inode, name__str, value, value_len); in bpf_get_dentry_xattr()
153 * @name__str: name of the xattr
156 * Get xattr *name__str* o
163 bpf_get_file_xattr(struct file * file,const char * name__str,struct bpf_dynptr * value_p) bpf_get_file_xattr() argument
202 bpf_set_dentry_xattr_locked(struct dentry * dentry,const char * name__str,const struct bpf_dynptr * value_p,int flags) bpf_set_dentry_xattr_locked() argument
250 bpf_remove_dentry_xattr_locked(struct dentry * dentry,const char * name__str) bpf_remove_dentry_xattr_locked() argument
289 bpf_set_dentry_xattr(struct dentry * dentry,const char * name__str,const struct bpf_dynptr * value_p,int flags) bpf_set_dentry_xattr() argument
315 bpf_remove_dentry_xattr(struct dentry * dentry,const char * name__str) bpf_remove_dentry_xattr() argument
339 bpf_cgroup_read_xattr(struct cgroup * cgroup,const char * name__str,struct bpf_dynptr * value_p) bpf_cgroup_read_xattr() argument
[all...]
/linux/include/linux/
H A Dbpf_lsm.h51 int bpf_set_dentry_xattr_locked(struct dentry *dentry, const char *name__str,
53 int bpf_remove_dentry_xattr_locked(struct dentry *dentry, const char *name__str);
94 static inline int bpf_set_dentry_xattr_locked(struct dentry *dentry, const char *name__str, in bpf_set_dentry_xattr_locked() argument
99 static inline int bpf_remove_dentry_xattr_locked(struct dentry *dentry, const char *name__str) in bpf_remove_dentry_xattr_locked() argument
/linux/tools/testing/selftests/bpf/
H A Dbpf_kfuncs.h91 extern int bpf_set_dentry_xattr(struct dentry *dentry, const char *name__str,
93 extern int bpf_remove_dentry_xattr(struct dentry *dentry, const char *name__str) __ksym __weak;