Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144805
b: refs/heads/master
c: b82bb72
h: refs/heads/master
i:
  144803: a688069
v: v3
  • Loading branch information
Jeff Mahoney authored and Al Viro committed May 9, 2009
1 parent dba2757 commit d9036d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ab17c4f02156c4f75d7fa43a5aa2a7f942d47201
refs/heads/master: b82bb72ba7df473461c5e2368a4e7497c8ce76e9
12 changes: 10 additions & 2 deletions trunk/fs/reiserfs/xattr_security.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,16 @@ int reiserfs_security_init(struct inode *dir, struct inode *inode,
struct reiserfs_security_handle *sec)
{
int blocks = 0;
int error = security_inode_init_security(inode, dir, &sec->name,
&sec->value, &sec->length);
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);
if (error) {
if (error == -EOPNOTSUPP)
error = 0;
Expand Down

0 comments on commit d9036d4

Please sign in to comment.