]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ima: Fix trivial typos in the comments
authorAustin Kim <austindh.kim@gmail.com>
Wed, 24 Nov 2021 21:44:18 +0000 (21:44 +0000)
committerMimi Zohar <zohar@linux.ibm.com>
Tue, 15 Feb 2022 16:10:03 +0000 (11:10 -0500)
There are a few minor typos in the comments. Fix these.

Signed-off-by: Austin Kim <austindh.kim@gmail.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_api.c
security/integrity/ima/ima_main.c
security/integrity/ima/ima_policy.c
security/integrity/ima/ima_template_lib.c

index a64fb0130b01520f863559eb23ca90a9c1ff8610..5b220a2fe573dccf0d502df0662c22efa6e3a919 100644 (file)
@@ -238,7 +238,7 @@ int ima_collect_measurement(struct integrity_iint_cache *iint,
                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
         * measurement/appraisal/audit.
         */
index 8c6e4514d4944c0ba7c3081733846ffde70d2f63..8ed6da428328ba207f49f0c57197d8d7c63c6d5d 100644 (file)
@@ -764,7 +764,7 @@ int ima_post_read_file(struct file *file, void *buf, loff_t size,
  *           call to ima_post_load_data().
  *
  * 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).
  *
  * For permission return 0, otherwise return -EACCES.
index 2a1f6418b10a62f93b8100434eafd100419e2588..90f528558adc23734e363e52a3aa916db5149fd2 100644 (file)
@@ -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
         * 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.
         */
        ima_lsm_free_rule(entry);
index ca017cae73eb3bd02a5656049e87552f113d5450..5a5d462ab36db10222258b1992acf188eabf3bef 100644 (file)
@@ -272,7 +272,7 @@ static int ima_eventdigest_init_common(const u8 *digest, u32 digestsize,
         * digest formats:
         *  - DATA_FMT_DIGEST: 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
         */
        u8 buffer[CRYPTO_MAX_ALG_NAME + 2 + IMA_MAX_DIGEST_SIZE] = { 0 };