]> git.baikalelectronics.ru Git - kernel.git/commit
ima: ima_write_policy() limit locking
authorPetko Manolov <petkan@mip-labs.com>
Sun, 3 Jan 2016 15:36:38 +0000 (17:36 +0200)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Sun, 3 Jan 2016 18:22:38 +0000 (13:22 -0500)
commit735620a0096022f7e5f6dfc2e8d7e5eabef09cf4
tree3648577f5c9ca834f9e634e93ea94cecae6e3245
parent6368ca5cc7f0786810faaa05562a35b627e8b69d
ima: ima_write_policy() limit locking

There is no need to hold the ima_write_mutex for so long.  We only need it
around ima_parse_add_rule().

Changelog:
- The return path now takes into account failed kmalloc() call.

Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Petko Manolov <petkan@mip-labs.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/ima/ima_fs.c