Skip to content

KFunc bpf_remove_dentry_xattr

v6.15

Remove a extended attribute(xattr) of a directory entry(dentry)

Definition

Remove xattr 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 xattr from

name__str: name of the xattr

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