xattr.c

linux

5.5.9

Brick

º¯ÊýÃû³Æ
strcmp_prefixstatic const char *strcmp_prefix(const char *a, const char *a_prefix)
xattr_resolve_nameFind the xattr_handler with the matching prefix.
xattr_permissionCheck permissions for extended attribute access
__vfs_setxattrint __vfs_setxattr(struct dentry *dentry, struct inode *inode, const char *name, const void *value, size_t size, int flags)
__vfs_setxattr_nopermperform setxattr operation without performing * permission checks.
vfs_setxattrint vfs_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)
xattr_getsecuritystatic ssize_t xattr_getsecurity(struct inode *inode, const char *name, void *value, size_t size)
vfs_getxattr_allocallocate memory, if necessary, before calling getxattr * Allocate memory, if not already allocated, or re-allocate correct size, * before retrieving the extended attribute
__vfs_getxattrssize_t __vfs_getxattr(struct dentry *dentry, struct inode *inode, const char *name, void *value, size_t size)
vfs_getxattrssize_t vfs_getxattr(struct dentry *dentry, const char *name, void *value, size_t size)
vfs_listxattrssize_t vfs_listxattr(struct dentry *dentry, char *list, size_t size)
__vfs_removexattrint __vfs_removexattr(struct dentry *dentry, const char *name)
vfs_removexattrint vfs_removexattr(struct dentry *dentry, const char *name)
setxattrExtended attribute SET operations
path_setxattrstatic int path_setxattr(const char __user *pathname, const char __user *name, const void __user *value, size_t size, int flags, unsigned int lookup_flags)
SYSCALL_DEFINE5SYSCALL_DEFINE5(setxattr, const char __user *, pathname, const char __user *, name, const void __user *, value, size_t, size, int, flags)
SYSCALL_DEFINE5SYSCALL_DEFINE5(lsetxattr, const char __user *, pathname, const char __user *, name, const void __user *, value, size_t, size, int, flags)
SYSCALL_DEFINE5SYSCALL_DEFINE5(fsetxattr, int, fd, const char __user *, name, const void __user *, value, size_t, size, int, flags)
getxattrExtended attribute GET operations
path_getxattrstatic ssize_t path_getxattr(const char __user *pathname, const char __user *name, void __user *value, size_t size, unsigned int lookup_flags)
SYSCALL_DEFINE4SYSCALL_DEFINE4(getxattr, const char __user *, pathname, const char __user *, name, void __user *, value, size_t, size)
SYSCALL_DEFINE4SYSCALL_DEFINE4(lgetxattr, const char __user *, pathname, const char __user *, name, void __user *, value, size_t, size)
SYSCALL_DEFINE4SYSCALL_DEFINE4(fgetxattr, int, fd, const char __user *, name, void __user *, value, size_t, size)
listxattrExtended attribute LIST operations
path_listxattrstatic ssize_t path_listxattr(const char __user *pathname, char __user *list, size_t size, unsigned int lookup_flags)
SYSCALL_DEFINE3SYSCALL_DEFINE3(listxattr, const char __user *, pathname, char __user *, list, size_t, size)
SYSCALL_DEFINE3SYSCALL_DEFINE3(llistxattr, const char __user *, pathname, char __user *, list, size_t, size)
SYSCALL_DEFINE3SYSCALL_DEFINE3(flistxattr, int, fd, char __user *, list, size_t, size)
removexattrExtended attribute REMOVE operations
path_removexattrstatic int path_removexattr(const char __user *pathname, const char __user *name, unsigned int lookup_flags)
SYSCALL_DEFINE2SYSCALL_DEFINE2(removexattr, const char __user *, pathname, const char __user *, name)
SYSCALL_DEFINE2SYSCALL_DEFINE2(lremovexattr, const char __user *, pathname, const char __user *, name)
SYSCALL_DEFINE2SYSCALL_DEFINE2(fremovexattr, int, fd, const char __user *, name)
generic_listxattrCombine the results of the list() operation from every xattr_handler in the * list.
xattr_full_nameCompute full attribute name from suffix
simple_xattr_allocAllocate new xattr and copy in the value; but leave the name to callers.
simple_xattr_getxattr GET operation for in-memory/pseudo filesystems
simple_xattr_setxattr SET operation for in-memory/pseudo filesystems
xattr_is_trustedstatic bool xattr_is_trusted(const char *name)
xattr_list_onestatic int xattr_list_one(char **buffer, ssize_t *remaining_size, const char *name)
simple_xattr_listxattr LIST operation for in-memory/pseudo filesystems
simple_xattr_list_addAdds an extended attribute to the list