selinux: adjust typos in comments
authorChristian Göttsche <cgzones@googlemail.com>
Thu, 20 Apr 2023 15:04:59 +0000 (17:04 +0200)
committerPaul Moore <paul@paul-moore.com>
Mon, 8 May 2023 20:44:01 +0000 (16:44 -0400)
Found by codespell(1)

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c
security/selinux/ima.c
security/selinux/include/audit.h
security/selinux/include/ima.h
security/selinux/selinuxfs.c
security/selinux/ss/services.c

index 79b4890e9936dc1ee9e046c8020a22e018ac7990..c49ce2044a179b205020c1c0157dc0d12f5fe970 100644 (file)
@@ -937,7 +937,7 @@ out:
 }
 
 /*
- * NOTE: the caller is resposible for freeing the memory even if on error.
+ * NOTE: the caller is responsible for freeing the memory even if on error.
  */
 static int selinux_add_opt(int token, const char *s, void **mnt_opts)
 {
index 7daf59667f5975daa2fc565843b35185ff001e86..aa34da9b0aebd52cd6df71e8c50bf30b273dd50e 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Author: Lakshmi Ramasubramanian (nramas@linux.microsoft.com)
  *
- * Measure critical data structures maintainted by SELinux
+ * Measure critical data structures maintained by SELinux
  * using IMA subsystem.
  */
 #include <linux/vmalloc.h>
index 406bceb90c6cde2e32b4db3100ea4d8a970d7aad..d5495134a5b9e83839a39cfcab978492e3081bdc 100644 (file)
@@ -41,7 +41,7 @@ void selinux_audit_rule_free(void *rule);
  *     selinux_audit_rule_match - determine if a context ID matches a rule.
  *     @sid: the context ID to check
  *     @field: the field this rule refers to
- *     @op: the operater the rule uses
+ *     @op: the operator the rule uses
  *     @rule: pointer to the audit rule to check against
  *
  *     Returns 1 if the context id matches the rule, 0 if it does not, and
index 05e04172c86d8703c6e682078b7185e3ec390428..93c05e97eb7ff94cf6ec563905bc9536e8b57912 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Author: Lakshmi Ramasubramanian (nramas@linux.microsoft.com)
  *
- * Measure critical data structures maintainted by SELinux
+ * Measure critical data structures maintained by SELinux
  * using IMA subsystem.
  */
 
index 69a583b91fc57c5ff04a2f66155278c6156e6ea5..7cc7e2f0272b69e20888734135d6328a99de7884 100644 (file)
@@ -951,7 +951,7 @@ static ssize_t sel_write_create(struct file *file, char *buf, size_t size)
                 * either whitespace or multibyte characters, they shall be
                 * encoded based on the percentage-encoding rule.
                 * If not encoded, the sscanf logic picks up only left-half
-                * of the supplied name; splitted by a whitespace unexpectedly.
+                * of the supplied name; split by a whitespace unexpectedly.
                 */
                char   *r, *w;
                int     c1, c2;
index f14d1ffe54c5dc7b4461906f5dcdc3650321f920..9571a447e427282c7465c65f8b66a5f9909eb46c 100644 (file)
@@ -583,7 +583,7 @@ static void type_attribute_bounds_av(struct policydb *policydb,
 
 /*
  * flag which drivers have permissions
- * only looking for ioctl based extended permssions
+ * only looking for ioctl based extended permissions
  */
 void services_compute_xperms_drivers(
                struct extended_perms *xperms,