Lines Matching refs:sec
47 struct reiserfs_security_handle *sec) in reiserfs_security_init() argument
52 sec->name = NULL; in reiserfs_security_init()
53 sec->value = NULL; in reiserfs_security_init()
59 error = security_old_inode_init_security(inode, dir, qstr, &sec->name, in reiserfs_security_init()
60 &sec->value, &sec->length); in reiserfs_security_init()
65 sec->name = NULL; in reiserfs_security_init()
66 sec->value = NULL; in reiserfs_security_init()
67 sec->length = 0; in reiserfs_security_init()
71 if (sec->length && reiserfs_xattrs_initialized(inode->i_sb)) { in reiserfs_security_init()
73 reiserfs_xattr_nblocks(inode, sec->length); in reiserfs_security_init()
83 struct reiserfs_security_handle *sec) in reiserfs_security_write() argument
88 if (XATTR_SECURITY_PREFIX_LEN + strlen(sec->name) > XATTR_NAME_MAX) in reiserfs_security_write()
91 strlcat(xattr_name, sec->name, sizeof(xattr_name)); in reiserfs_security_write()
93 error = reiserfs_xattr_set_handle(th, inode, xattr_name, sec->value, in reiserfs_security_write()
94 sec->length, XATTR_CREATE); in reiserfs_security_write()
101 void reiserfs_security_free(struct reiserfs_security_handle *sec) in reiserfs_security_free() argument
103 kfree(sec->value); in reiserfs_security_free()
104 sec->name = NULL; in reiserfs_security_free()
105 sec->value = NULL; in reiserfs_security_free()