reiserfs: dont associate security.* with xattr files

The security.* xattrs are ignored for xattr files, so don't create them.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Jeff Mahoney 2009-05-05 15:30:16 -04:00 коммит произвёл Al Viro
Родитель ab17c4f021
Коммит b82bb72ba7
1 изменённых файлов: 10 добавлений и 2 удалений

Просмотреть файл

@ -55,7 +55,15 @@ int reiserfs_security_init(struct inode *dir, struct inode *inode,
struct reiserfs_security_handle *sec) struct reiserfs_security_handle *sec)
{ {
int blocks = 0; int blocks = 0;
int error = security_inode_init_security(inode, dir, &sec->name, int error;
sec->name = NULL;
/* Don't add selinux attributes on xattrs - they'll never get used */
if (IS_PRIVATE(dir))
return 0;
error = security_inode_init_security(inode, dir, &sec->name,
&sec->value, &sec->length); &sec->value, &sec->length);
if (error) { if (error) {
if (error == -EOPNOTSUPP) if (error == -EOPNOTSUPP)