2 #include <linux/errno.h>
5 #include <linux/xattr.h>
6 #include <linux/slab.h>
9 #include <asm/uaccess.h>
21 return reiserfs_xattr_get(dentry->
d_inode, name, buffer, size);
25 security_set(
struct dentry *dentry,
const char *name,
const void *buffer,
26 size_t size,
int flags,
int handler_flags)
34 return reiserfs_xattr_set(dentry->
d_inode, name, buffer, size, flags);
37 static size_t security_list(
struct dentry *dentry,
char *
list,
size_t list_len,
38 const char *name,
size_t namelen,
int handler_flags)
40 const size_t len = namelen + 1;
45 if (list && len <= list_len) {
46 memcpy(list, name, namelen);
81 if (sec->
length && reiserfs_xattrs_initialized(inode->
i_sb)) {
82 blocks = reiserfs_xattr_jcreate_nblocks(inode) +
83 reiserfs_xattr_nblocks(inode, sec->
length);
99 error = reiserfs_xattr_set_handle(th, inode, sec->
name, sec->
value,
119 .list = security_list,