Commit 65603435 authored by Austin Kim's avatar Austin Kim Committed by Mimi Zohar

ima: Fix trivial typos in the comments

There are a few minor typos in the comments. Fix these.
Signed-off-by: default avatarAustin Kim <austindh.kim@gmail.com>
Signed-off-by: default avatarMimi Zohar <zohar@linux.ibm.com>
parent 754e0b0e
...@@ -238,7 +238,7 @@ int ima_collect_measurement(struct integrity_iint_cache *iint, ...@@ -238,7 +238,7 @@ int ima_collect_measurement(struct integrity_iint_cache *iint,
goto out; goto out;
/* /*
* Dectecting file change is based on i_version. On filesystems * Detecting file change is based on i_version. On filesystems
* which do not support i_version, support is limited to an initial * which do not support i_version, support is limited to an initial
* measurement/appraisal/audit. * measurement/appraisal/audit.
*/ */
......
...@@ -764,7 +764,7 @@ int ima_post_read_file(struct file *file, void *buf, loff_t size, ...@@ -764,7 +764,7 @@ int ima_post_read_file(struct file *file, void *buf, loff_t size,
* call to ima_post_load_data(). * call to ima_post_load_data().
* *
* Callers of this LSM hook can not measure, appraise, or audit the * Callers of this LSM hook can not measure, appraise, or audit the
* data provided by userspace. Enforce policy rules requring a file * data provided by userspace. Enforce policy rules requiring a file
* signature (eg. kexec'ed kernel image). * signature (eg. kexec'ed kernel image).
* *
* For permission return 0, otherwise return -EACCES. * For permission return 0, otherwise return -EACCES.
......
...@@ -429,7 +429,7 @@ static int ima_lsm_update_rule(struct ima_rule_entry *entry) ...@@ -429,7 +429,7 @@ static int ima_lsm_update_rule(struct ima_rule_entry *entry)
/* /*
* ima_lsm_copy_rule() shallow copied all references, except for the * ima_lsm_copy_rule() shallow copied all references, except for the
* LSM references, from entry to nentry so we only want to free the LSM * LSM references, from entry to nentry so we only want to free the LSM
* references and the entry itself. All other memory refrences will now * references and the entry itself. All other memory references will now
* be owned by nentry. * be owned by nentry.
*/ */
ima_lsm_free_rule(entry); ima_lsm_free_rule(entry);
......
...@@ -272,7 +272,7 @@ static int ima_eventdigest_init_common(const u8 *digest, u32 digestsize, ...@@ -272,7 +272,7 @@ static int ima_eventdigest_init_common(const u8 *digest, u32 digestsize,
* digest formats: * digest formats:
* - DATA_FMT_DIGEST: digest * - DATA_FMT_DIGEST: digest
* - DATA_FMT_DIGEST_WITH_ALGO: [<hash algo>] + ':' + '\0' + digest, * - DATA_FMT_DIGEST_WITH_ALGO: [<hash algo>] + ':' + '\0' + digest,
* where <hash algo> is provided if the hash algoritm is not * where <hash algo> is provided if the hash algorithm is not
* SHA1 or MD5 * SHA1 or MD5
*/ */
u8 buffer[CRYPTO_MAX_ALG_NAME + 2 + IMA_MAX_DIGEST_SIZE] = { 0 }; u8 buffer[CRYPTO_MAX_ALG_NAME + 2 + IMA_MAX_DIGEST_SIZE] = { 0 };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment