android_kernel_sony_sdm845/security/integrity/ima
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mimi Zohar 28fffa9066 Revert "ima: limit file hash setting by user to fix and log modes"
commit f5acb3dcba1ffb7f0b8cbb9dba61500eea5d610b upstream.

Userspace applications have been modified to write security xattrs,
but they are not context aware.  In the case of security.ima, the
security xattr can be either a file hash or a file signature.
Permitting writing one, but not the other requires the application to
be context aware.

In addition, userspace applications might write files to a staging
area, which might not be in policy, and then change some file metadata
(eg. owner) making it in policy.  As a result, these files are not
labeled properly.

This reverts commit c68ed80c97, which
prevents writing file hashes as security.ima xattrs.

Requested-by: Patrick Ohly <patrick.ohly@intel.com>
Cc: Dmitry Kasatkin <dmitry.kasatkin@gmail.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Cc: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-06-06 16:44:33 +02:00
..
ima.h ima: fix ima_d_path() possible race with rename 2017-03-12 06:41:44 +01:00
ima_api.c ima: fix ima_d_path() possible race with rename 2017-03-12 06:41:44 +01:00
ima_appraise.c Revert "ima: limit file hash setting by user to fix and log modes" 2018-06-06 16:44:33 +02:00
ima_crypto.c ima: Fallback to the builtin hash algorithm 2018-05-30 07:50:44 +02:00
ima_fs.c ima: fix memory leak in ima_release_policy 2017-01-12 11:39:30 +01:00
ima_init.c ima: include pcr for each measurement log entry 2016-06-30 01:14:21 -04:00
ima_main.c ima: Fallback to the builtin hash algorithm 2018-05-30 07:50:44 +02:00
ima_mok.c IMA: Use the the system trusted keyrings instead of .ima_mok 2016-04-11 22:49:15 +01:00
ima_policy.c ima: extend ima_get_action() to return the policy pcr 2016-06-30 01:14:20 -04:00
ima_queue.c ima: extend the measurement entry specific pcr 2016-06-30 01:14:22 -04:00
ima_template.c ima: separate 'security.ima' reading functionality from collect 2016-02-18 17:13:32 -05:00
ima_template_lib.c ima: separate 'security.ima' reading functionality from collect 2016-02-18 17:13:32 -05:00
ima_template_lib.h ima: wrap event related data to the new ima_event_data structure 2015-05-21 13:59:28 -04:00
Kconfig IMA: Use the the system trusted keyrings instead of .ima_mok 2016-04-11 22:49:15 +01:00
Makefile IMA: Use the the system trusted keyrings instead of .ima_mok 2016-04-11 22:49:15 +01:00