]> git.baikalelectronics.ru Git - kernel.git/commit
ima: Shallow copy the args_p member of ima_rule_entry.lsm elements
authorTyler Hicks <tyhicks@linux.microsoft.com>
Thu, 9 Jul 2020 06:19:07 +0000 (01:19 -0500)
committerMimi Zohar <zohar@linux.ibm.com>
Mon, 20 Jul 2020 17:28:13 +0000 (13:28 -0400)
commit449d603100f9b91559bf7cd8d68919c9c338b66d
tree3f2b9a3d2436a1118ef52b387ca497f4d4bdc2bf
parentac0d2ef7b9aaeaeabe22988ec9829aa80af62c5e
ima: Shallow copy the args_p member of ima_rule_entry.lsm elements

The args_p member is a simple string that is allocated by
ima_rule_init(). Shallow copy it like other non-LSM references in
ima_rule_entry structs.

There are no longer any necessary error path cleanups to do in
ima_lsm_copy_rule().

Signed-off-by: Tyler Hicks <tyhicks@linux.microsoft.com>
Signed-off-by: Tyler Hicks <tyhicks@linux.microsoft.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_policy.c