]> Pileus Git - ~andy/linux/blobdiff - security/capability.c
security: cap_inode_getsecctx returning garbage
[~andy/linux] / security / capability.c
index 1728d4e375db509c4e192e0e69fb1a0ee020bf49..83efc90b344d1ae96c2c9182444fd8ef82c71504 100644 (file)
@@ -843,7 +843,7 @@ static int cap_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen)
 
 static int cap_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen)
 {
-       return 0;
+       return -EOPNOTSUPP;
 }
 #ifdef CONFIG_KEYS
 static int cap_key_alloc(struct key *key, const struct cred *cred,