Lines Matching refs:sec
47 struct reiserfs_security_handle *sec) in reiserfs_security_init() argument
52 sec->name = NULL; in reiserfs_security_init()
58 error = security_old_inode_init_security(inode, dir, qstr, &sec->name, in reiserfs_security_init()
59 &sec->value, &sec->length); in reiserfs_security_init()
64 sec->name = NULL; in reiserfs_security_init()
65 sec->value = NULL; in reiserfs_security_init()
66 sec->length = 0; in reiserfs_security_init()
70 if (sec->length && reiserfs_xattrs_initialized(inode->i_sb)) { in reiserfs_security_init()
72 reiserfs_xattr_nblocks(inode, sec->length); in reiserfs_security_init()
82 struct reiserfs_security_handle *sec) in reiserfs_security_write() argument
85 if (strlen(sec->name) < sizeof(XATTR_SECURITY_PREFIX)) in reiserfs_security_write()
88 error = reiserfs_xattr_set_handle(th, inode, sec->name, sec->value, in reiserfs_security_write()
89 sec->length, XATTR_CREATE); in reiserfs_security_write()
96 void reiserfs_security_free(struct reiserfs_security_handle *sec) in reiserfs_security_free() argument
98 kfree(sec->name); in reiserfs_security_free()
99 kfree(sec->value); in reiserfs_security_free()
100 sec->name = NULL; in reiserfs_security_free()
101 sec->value = NULL; in reiserfs_security_free()