diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-26 14:37:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-26 14:37:48 -0400 |
commit | f9ba5375a8aae4aeea6be15df77e24707a429812 (patch) | |
tree | c6388d7e40f0f6a70d7ba6a4d4aeaa0d1f5591f6 /security/security.c | |
parent | 45352bbf48e95078b4acd20774f49e72676e1e0f (diff) | |
parent | bade72d607c4eb1b1d6c7852c493b75f065a56b5 (diff) |
Merge branch 'ima-memory-use-fixes'
* ima-memory-use-fixes:
IMA: fix the ToMToU logic
IMA: explicit IMA i_flag to remove global lock on inode_delete
IMA: drop refcnt from ima_iint_cache since it isn't needed
IMA: only allocate iint when needed
IMA: move read counter into struct inode
IMA: use i_writecount rather than a private counter
IMA: use inode->i_lock to protect read and write counters
IMA: convert internal flags from long to char
IMA: use unsigned int instead of long for counters
IMA: drop the inode opencount since it isn't needed for operation
IMA: use rbtree instead of radix tree for inode information cache
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/security/security.c b/security/security.c index b50f472061a4..3ef5e2a7a741 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -325,16 +325,8 @@ EXPORT_SYMBOL(security_sb_parse_opts_str); | |||
325 | 325 | ||
326 | int security_inode_alloc(struct inode *inode) | 326 | int security_inode_alloc(struct inode *inode) |
327 | { | 327 | { |
328 | int ret; | ||
329 | |||
330 | inode->i_security = NULL; | 328 | inode->i_security = NULL; |
331 | ret = security_ops->inode_alloc_security(inode); | 329 | return security_ops->inode_alloc_security(inode); |
332 | if (ret) | ||
333 | return ret; | ||
334 | ret = ima_inode_alloc(inode); | ||
335 | if (ret) | ||
336 | security_inode_free(inode); | ||
337 | return ret; | ||
338 | } | 330 | } |
339 | 331 | ||
340 | void security_inode_free(struct inode *inode) | 332 | void security_inode_free(struct inode *inode) |