projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e81e3f4
)
ima: valid return code from ima_inode_alloc
author
Eric Paris
<eparis@redhat.com>
Fri, 4 Dec 2009 20:47:44 +0000
(15:47 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 16 Dec 2009 17:16:46 +0000
(12:16 -0500)
ima_inode_alloc returns 0 and 1, but the LSM hooks expects an errno.
Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
security/integrity/ima/ima_iint.c
patch
|
blob
|
blame
|
history
diff --git
a/security/integrity/ima/ima_iint.c
b/security/integrity/ima/ima_iint.c
index a4e2b1dac943b8ed05ee39dd23df2fbe56a80844..4a53f396d4227f42d597c911b212163ceeaad2d6 100644
(file)
--- a/
security/integrity/ima/ima_iint.c
+++ b/
security/integrity/ima/ima_iint.c
@@
-87,8
+87,6
@@
out:
/**
* ima_inode_alloc - allocate an iint associated with an inode
* @inode: pointer to the inode
- *
- * Return 0 on success, 1 on failure.
*/
int ima_inode_alloc(struct inode *inode)
{
@@
-99,7
+97,7
@@
int ima_inode_alloc(struct inode *inode)
iint = ima_iint_insert(inode);
if (!iint)
- return
1
;
+ return
-ENOMEM
;
return 0;
}