KFunc bpf_remove_dentry_xattr
Remove a extended attribute(
Definition
Remove name__str
of dentry
. For security reasons, only name__str
with prefix security.bpf.
is allowed. The caller has not locked dentry->d_inode
.
Parameters
dentry
: dentry to get
name__str
: name of the
Returns
0
on success, a negative value on error.
Signature
int bpf_remove_dentry_xattr(struct dentry *dentry, const char *name__str)
Note
This function may sleep, and therefore can only be used from sleepable programs.
Usage
Docs could be improved
This part of the docs is incomplete, contributions are very welcome
Program types
The following program types can make use of this kfunc:
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome