security: fix typos and spelling errors
Subsystems (9)
PATCH 1/1 security: fix typos and spelling errors
From: Tanya Agarwal <[email protected]>
Fix typos and spelling errors in security module comments that were identified using the codespell tool.
No functional changes - documentation only.
--- security/apparmor/apparmorfs.c | 6 +++--- security/apparmor/domain.c | 4 ++-- security/apparmor/label.c | 2 +- security/apparmor/lsm.c | 2 +- security/apparmor/policy.c | 4 ++-- security/integrity/evm/evm_crypto.c | 2 +- security/integrity/evm/evm_main.c | 2 +- security/integrity/ima/ima_main.c | 6 +++--- security/landlock/ruleset.c | 2 +- security/selinux/avc.c | 2 +- security/smack/smack.h | 2 +- security/smack/smack_access.c | 4 ++-- security/smack/smack_lsm.c | 6 +++--- security/smack/smackfs.c | 2 +- security/tomoyo/domain.c | 2 +- 15 files changed, 24 insertions(+), 24 deletions(-)
security/apparmor/apparmorfs.c +3 -3
@@ -43,7 +43,7 @@* The interface is split into two main components based on their function * a securityfs component: * used for static files that are always available, and which allows -* userspace to specificy the location of the security filesystem. +* userspace to specify the location of the security filesystem. * * fns and data are prefixed with * aa_sfs_
@@ -204,7 +204,7 @@ static struct file_system_type aafs_ops = {/** * __aafs_setup_d_inode - basic inode setup for apparmorfs * @dir: parent directory for the dentry -* @dentry: dentry we are seting the inode up for +* @dentry: dentry we are setting the inode up for * @mode: permissions the file should have * @data: data to store on inode.i_private, available in open() * @link: if symlink, symlink target string
@@ -2244,7 +2244,7 @@ static void *p_next(struct seq_file *f, void *p, loff_t *pos)/** * p_stop - stop depth first traversal * @f: seq_file we are filling -* @p: the last profile writen +* @p: the last profile written * * Release all locking done by p_start/p_next on namespace tree */
security/apparmor/domain.c +2 -2
@@ -755,7 +755,7 @@ static int profile_onexec(const struct cred *subj_cred,/* change_profile on exec already granted */ /* * NOTE: Domain transitions from unconfined are allowed -* even when no_new_privs is set because this aways results +* even when no_new_privs is set because this always results * in a further reduction of permissions. */ return 0 ;
@@ -926,7 +926,7 @@ int apparmor_bprm_creds_for_exec(struct linux_binprm *bprm)* * NOTE: Domain transitions from unconfined and to stacked * subsets are allowed even when no_new_privs is set because this -* aways results in a further reduction of permissions. +* always results in a further reduction of permissions. */ if ((bprm->unsafe & LSM_UNSAFE_NO_NEW_PRIVS) && !unconfined(label) &&
security/apparmor/label.c +1 -1
@@ -1456,7 +1456,7 @@ bool aa_update_label_name(struct aa_ns *ns, struct aa_label *label, gfp_t gfp)/* * cached label name is present and visible -* @label->hname only exists if label is namespace hierachical +* @label->hname only exists if label is namespace hierarchical */ static inline bool use_label_hname (struct aa_ns *ns,struct aa_label *label,int flags)
security/apparmor/lsm.c +1 -1
@@ -2006,7 +2006,7 @@ static int __init alloc_buffers(void)* two should be enough, with more CPUs it is possible that more * buffers will be used simultaneously. The preallocated pool may grow. * This preallocation has also the side-effect that AppArmor will be -* disabled early at boot if aa_g_path_max is extremly high. +* disabled early at boot if aa_g_path_max is extremely high. */ if (num_online_cpus () >1 ) num =4 +RESERVE_COUNT ;
security/apparmor/policy.c +2 -2
@@ -463,7 +463,7 @@ static struct aa_policy *__lookup_parent(struct aa_ns *ns, }/** -* __create_missing_ancestors - create place holders for missing ancestores +* __create_missing_ancestors - create place holders for missing ancestors * @ns: namespace to lookup profile in (NOT NULL) * @hname: hierarchical profile name to find parent of (NOT NULL) * @gfp: type of allocation.
@@ -1068,7 +1068,7 @@ ssize_t aa_replace_profiles(struct aa_ns *policy_ns, struct aa_label *label, goto out;/* ensure that profiles are all for the same ns -* TODO: update locking to remove this constaint. All profiles in +* TODO: update locking to remove this constraint. All profiles in * the load set must succeed as a set or the load will * fail. Sort ent list and take ns locks in hierarchy order */
security/integrity/evm/evm_crypto.c +1 -1
@@ -180,7 +180,7 @@ static void hmac_add_misc(struct shash_desc *desc, struct inode *inode, }/* -* Dump large security xattr values as a continuous ascii hexademical string. +* Dump large security xattr values as a continuous ascii hexadecimal string. * (pr_debug is limited to 64 bytes.) */ static void dump_security_xattr_l(const char *prefix, const void *src,
security/integrity/evm/evm_main.c +1 -1
@@ -169,7 +169,7 @@ static int is_unsupported_hmac_fs(struct dentry *dentry)* and compare it against the stored security.evm xattr. * * For performance: -* - use the previoulsy retrieved xattr value and length to calculate the +* - use the previously retrieved xattr value and length to calculate the * HMAC.) * - cache the verification result in the iint, when available. *
security/integrity/ima/ima_main.c +3 -3
@@ -983,9 +983,9 @@ int process_buffer_measurement(struct mnt_idmap *idmap, }/* -* Both LSM hooks and auxilary based buffer measurements are -* based on policy. To avoid code duplication, differentiate -* between the LSM hooks and auxilary buffer measurements, +* Both LSM hooks and auxiliary based buffer measurements are +* based on policy. To avoid code duplication, differentiate +* between the LSM hooks and auxiliary buffer measurements, * retrieving the policy rule information only for the LSM hook * buffer measurements. */
security/landlock/ruleset.c +1 -1
@@ -121,7 +121,7 @@ create_rule(const struct landlock_id id,return ERR_PTR (-ENOMEM );RB_CLEAR_NODE (&new_rule->node);if (is_object_pointer (id.type)) { -/* This should be catched by insert_rule(). */ +/* This should have beeen caught by insert_rule(). */ WARN_ON_ONCE (!id.key.object);landlock_get_object (id.key.object); }
security/selinux/avc.c +1 -1
@@ -936,7 +936,7 @@ static void avc_flush(void)spin_lock_irqsave (lock, flag);/* -* With preemptable RCU, the outer spinlock does not +* With preemptible RCU, the outer spinlock does not * prevent RCU grace periods from ending. */ rcu_read_lock ();
security/smack/smack.h +1 -1
@@ -42,7 +42,7 @@/* * This is the repository for labels seen so that it is -* not necessary to keep allocating tiny chuncks of memory +* not necessary to keep allocating tiny chunks of memory * and so that they can be shared. * * Labels are never modified in place. Anytime a label
security/smack/smack_access.c +2 -2
@@ -242,7 +242,7 @@ int smk_tskacc(struct task_smack *tsp, struct smack_known *obj_known, }/* -* Allow for priviliged to override policy. +* Allow for privileged to override policy. */ if (rc !=0 &&smack_privileged (CAP_MAC_OVERRIDE )) rc =0 ;
@@ -277,7 +277,7 @@ int smk_curacc(struct smack_known *obj_known,#ifdef CONFIG_AUDIT /** -* smack_str_from_perm : helper to transalate an int to a +* smack_str_from_perm : helper to translate an int to a * readable string * @string : the string to fill * @access : the int
security/smack/smack_lsm.c +3 -3
@@ -1950,7 +1950,7 @@ static int smack_file_send_sigiotask(struct task_struct *tsk,*/ file = fown->file; -/* we don't log here as rc can be overriden */ +/* we don't log here as rc can be overridden */ blob =smack_file (file); skp = *blob; rc =smk_access (skp, tkp,MAY_DELIVER ,NULL );
@@ -4211,7 +4211,7 @@ static int smack_socket_sock_rcv_skb(struct sock *sk, struct sk_buff *skb)/* * Receiving a packet requires that the other end * be able to write here. Read access is not required. -* This is the simplist possible security model +* This is the simplest possible security model * for networking. */ rc =smk_access (skp, ssp->smk_in,MAY_WRITE , &ad);
@@ -4717,7 +4717,7 @@ static int smack_post_notification(const struct cred *w_cred,* @gfp: type of the memory for the allocation * * Prepare to audit cases where (@field @op @rulestr) is true. -* The label to be audited is created if necessay. +* The label to be audited is created if necessary. */ static int smack_audit_rule_init (u32 field,u32 op,char *rulestr,void **vrule,gfp_t gfp)
security/smack/smackfs.c +1 -1
@@ -165,7 +165,7 @@ static int smk_cipso_doi_value = SMACK_CIPSO_DOI_DEFAULT;#define SMK_LOADLEN (SMK_LABELLEN + SMK_LABELLEN + SMK_ACCESSLEN)/* -* Stricly for CIPSO level manipulation. +* Strictly for CIPSO level manipulation. * Set the category bit number in a smack label sized buffer. */ static inline void smack_catset_bit (unsigned int cat,char *catsetp)
security/tomoyo/domain.c +1 -1
@@ -913,7 +913,7 @@ bool tomoyo_dump_page(struct linux_binprm *bprm, unsigned long pos,#ifdef CONFIG_MMU /* * This is called at execve() time in order to dig around -* in the argv/environment of the new proceess +* in the argv/environment of the new process * (represented by bprm). */ mmap_read_lock (bprm->mm);
Signature · 1 line
2.39.5
Thanks for the fixes!
Quoted 32 lines · Tanya Agarwal
From: Tanya Agarwal <[email protected]>
Fix typos and spelling errors in security module comments that were identified using the codespell tool.
No functional changes - documentation only.Signed-off-by Tanya Agarwal <[email protected]>--- security/apparmor/apparmorfs.c | 6 +++--- security/apparmor/domain.c | 4 ++-- security/apparmor/label.c | 2 +- security/apparmor/lsm.c | 2 +- security/apparmor/policy.c | 4 ++-- security/integrity/evm/evm_crypto.c | 2 +- security/integrity/evm/evm_main.c | 2 +- security/integrity/ima/ima_main.c | 6 +++--- security/landlock/ruleset.c | 2 +- security/selinux/avc.c | 2 +- security/smack/smack.h | 2 +- security/smack/smack_access.c | 4 ++-- security/smack/smack_lsm.c | 6 +++--- security/smack/smackfs.c | 2 +- security/tomoyo/domain.c | 2 +- 15 files changed, 24 insertions(+), 24 deletions(-)[...]
security/landlock/ruleset.c +0
-0
security/landlock/ruleset.c create_rule(const struct landlock_id id, · line 124
Quoted 5 lines
security/landlock/ruleset.c +1
-1@@ -121,7 +121,7 @@ create_rule(const struct landlock_id id,return ERR_PTR (-ENOMEM );RB_CLEAR_NODE (&new_rule->node);if (is_object_pointer (id.type)) { -/* This should be catched by insert_rule(). */ +/* This should have beeen caught by insert_rule(). */
This is accidentally introducing another typo: s/beeen/been/
—Günther
PATCH v2 1/1 security: fix typos and spelling errors
From: Tanya Agarwal <[email protected]>
Fix typos and spelling errors in security module comments that were identified using the codespell tool.
No functional changes - documentation only.
---
Thanks Günther, for catching this error.
The irony of having a spelling mistake in a patch that fixes spelling mistakes is not lost on me :)
I've fixed it in V2 of the patch. Thank you for the careful review!
V2: fix spelling mistake - s/beeen/been/
security/apparmor/apparmorfs.c | 6 +++--- security/apparmor/domain.c | 4 ++-- security/apparmor/label.c | 2 +- security/apparmor/lsm.c | 2 +- security/apparmor/policy.c | 4 ++-- security/integrity/evm/evm_crypto.c | 2 +- security/integrity/evm/evm_main.c | 2 +- security/integrity/ima/ima_main.c | 6 +++--- security/landlock/ruleset.c | 2 +- security/selinux/avc.c | 2 +- security/smack/smack.h | 2 +- security/smack/smack_access.c | 4 ++-- security/smack/smack_lsm.c | 6 +++--- security/smack/smackfs.c | 2 +- security/tomoyo/domain.c | 2 +- 15 files changed, 24 insertions(+), 24 deletions(-)
security/apparmor/apparmorfs.c +3 -3
@@ -43,7 +43,7 @@* The interface is split into two main components based on their function * a securityfs component: * used for static files that are always available, and which allows -* userspace to specificy the location of the security filesystem. +* userspace to specify the location of the security filesystem. * * fns and data are prefixed with * aa_sfs_
@@ -204,7 +204,7 @@ static struct file_system_type aafs_ops = {/** * __aafs_setup_d_inode - basic inode setup for apparmorfs * @dir: parent directory for the dentry -* @dentry: dentry we are seting the inode up for +* @dentry: dentry we are setting the inode up for * @mode: permissions the file should have * @data: data to store on inode.i_private, available in open() * @link: if symlink, symlink target string
@@ -2244,7 +2244,7 @@ static void *p_next(struct seq_file *f, void *p, loff_t *pos)/** * p_stop - stop depth first traversal * @f: seq_file we are filling -* @p: the last profile writen +* @p: the last profile written * * Release all locking done by p_start/p_next on namespace tree */
security/apparmor/domain.c +2 -2
@@ -755,7 +755,7 @@ static int profile_onexec(const struct cred *subj_cred,/* change_profile on exec already granted */ /* * NOTE: Domain transitions from unconfined are allowed -* even when no_new_privs is set because this aways results +* even when no_new_privs is set because this always results * in a further reduction of permissions. */ return 0 ;
@@ -926,7 +926,7 @@ int apparmor_bprm_creds_for_exec(struct linux_binprm *bprm)* * NOTE: Domain transitions from unconfined and to stacked * subsets are allowed even when no_new_privs is set because this -* aways results in a further reduction of permissions. +* always results in a further reduction of permissions. */ if ((bprm->unsafe & LSM_UNSAFE_NO_NEW_PRIVS) && !unconfined(label) &&
security/apparmor/label.c +1 -1
@@ -1456,7 +1456,7 @@ bool aa_update_label_name(struct aa_ns *ns, struct aa_label *label, gfp_t gfp)/* * cached label name is present and visible -* @label->hname only exists if label is namespace hierachical +* @label->hname only exists if label is namespace hierarchical */ static inline bool use_label_hname (struct aa_ns *ns,struct aa_label *label,int flags)
security/apparmor/lsm.c +1 -1
@@ -2006,7 +2006,7 @@ static int __init alloc_buffers(void)* two should be enough, with more CPUs it is possible that more * buffers will be used simultaneously. The preallocated pool may grow. * This preallocation has also the side-effect that AppArmor will be -* disabled early at boot if aa_g_path_max is extremly high. +* disabled early at boot if aa_g_path_max is extremely high. */ if (num_online_cpus () >1 ) num =4 +RESERVE_COUNT ;
security/apparmor/policy.c +2 -2
@@ -463,7 +463,7 @@ static struct aa_policy *__lookup_parent(struct aa_ns *ns, }/** -* __create_missing_ancestors - create place holders for missing ancestores +* __create_missing_ancestors - create place holders for missing ancestors * @ns: namespace to lookup profile in (NOT NULL) * @hname: hierarchical profile name to find parent of (NOT NULL) * @gfp: type of allocation.
@@ -1068,7 +1068,7 @@ ssize_t aa_replace_profiles(struct aa_ns *policy_ns, struct aa_label *label, goto out;/* ensure that profiles are all for the same ns -* TODO: update locking to remove this constaint. All profiles in +* TODO: update locking to remove this constraint. All profiles in * the load set must succeed as a set or the load will * fail. Sort ent list and take ns locks in hierarchy order */
security/integrity/evm/evm_crypto.c +1 -1
@@ -180,7 +180,7 @@ static void hmac_add_misc(struct shash_desc *desc, struct inode *inode, }/* -* Dump large security xattr values as a continuous ascii hexademical string. +* Dump large security xattr values as a continuous ascii hexadecimal string. * (pr_debug is limited to 64 bytes.) */ static void dump_security_xattr_l(const char *prefix, const void *src,
security/integrity/evm/evm_main.c +1 -1
@@ -169,7 +169,7 @@ static int is_unsupported_hmac_fs(struct dentry *dentry)* and compare it against the stored security.evm xattr. * * For performance: -* - use the previoulsy retrieved xattr value and length to calculate the +* - use the previously retrieved xattr value and length to calculate the * HMAC.) * - cache the verification result in the iint, when available. *
security/integrity/ima/ima_main.c +3 -3
@@ -983,9 +983,9 @@ int process_buffer_measurement(struct mnt_idmap *idmap, }/* -* Both LSM hooks and auxilary based buffer measurements are -* based on policy. To avoid code duplication, differentiate -* between the LSM hooks and auxilary buffer measurements, +* Both LSM hooks and auxiliary based buffer measurements are +* based on policy. To avoid code duplication, differentiate +* between the LSM hooks and auxiliary buffer measurements, * retrieving the policy rule information only for the LSM hook * buffer measurements. */
security/landlock/ruleset.c +1 -1
@@ -121,7 +121,7 @@ create_rule(const struct landlock_id id,return ERR_PTR (-ENOMEM );RB_CLEAR_NODE (&new_rule->node);if (is_object_pointer (id.type)) { -/* This should be catched by insert_rule(). */ +/* This should have been caught by insert_rule(). */ WARN_ON_ONCE (!id.key.object);landlock_get_object (id.key.object); }
security/selinux/avc.c +1 -1
@@ -936,7 +936,7 @@ static void avc_flush(void)spin_lock_irqsave (lock, flag);/* -* With preemptable RCU, the outer spinlock does not +* With preemptible RCU, the outer spinlock does not * prevent RCU grace periods from ending. */ rcu_read_lock ();
security/smack/smack.h +1 -1
@@ -42,7 +42,7 @@/* * This is the repository for labels seen so that it is -* not necessary to keep allocating tiny chuncks of memory +* not necessary to keep allocating tiny chunks of memory * and so that they can be shared. * * Labels are never modified in place. Anytime a label
security/smack/smack_access.c +2 -2
@@ -242,7 +242,7 @@ int smk_tskacc(struct task_smack *tsp, struct smack_known *obj_known, }/* -* Allow for priviliged to override policy. +* Allow for privileged to override policy. */ if (rc !=0 &&smack_privileged (CAP_MAC_OVERRIDE )) rc =0 ;
@@ -277,7 +277,7 @@ int smk_curacc(struct smack_known *obj_known,#ifdef CONFIG_AUDIT /** -* smack_str_from_perm : helper to transalate an int to a +* smack_str_from_perm : helper to translate an int to a * readable string * @string : the string to fill * @access : the int
security/smack/smack_lsm.c +3 -3
@@ -1950,7 +1950,7 @@ static int smack_file_send_sigiotask(struct task_struct *tsk,*/ file = fown->file; -/* we don't log here as rc can be overriden */ +/* we don't log here as rc can be overridden */ blob =smack_file (file); skp = *blob; rc =smk_access (skp, tkp,MAY_DELIVER ,NULL );
@@ -4211,7 +4211,7 @@ static int smack_socket_sock_rcv_skb(struct sock *sk, struct sk_buff *skb)/* * Receiving a packet requires that the other end * be able to write here. Read access is not required. -* This is the simplist possible security model +* This is the simplest possible security model * for networking. */ rc =smk_access (skp, ssp->smk_in,MAY_WRITE , &ad);
@@ -4717,7 +4717,7 @@ static int smack_post_notification(const struct cred *w_cred,* @gfp: type of the memory for the allocation * * Prepare to audit cases where (@field @op @rulestr) is true. -* The label to be audited is created if necessay. +* The label to be audited is created if necessary. */ static int smack_audit_rule_init (u32 field,u32 op,char *rulestr,void **vrule,gfp_t gfp)
security/smack/smackfs.c +1 -1
@@ -165,7 +165,7 @@ static int smk_cipso_doi_value = SMACK_CIPSO_DOI_DEFAULT;#define SMK_LOADLEN (SMK_LABELLEN + SMK_LABELLEN + SMK_ACCESSLEN)/* -* Stricly for CIPSO level manipulation. +* Strictly for CIPSO level manipulation. * Set the category bit number in a smack label sized buffer. */ static inline void smack_catset_bit (unsigned int cat,char *catsetp)
security/tomoyo/domain.c +1 -1
@@ -913,7 +913,7 @@ bool tomoyo_dump_page(struct linux_binprm *bprm, unsigned long pos,#ifdef CONFIG_MMU /* * This is called at execve() time in order to dig around -* in the argv/environment of the new proceess +* in the argv/environment of the new process * (represented by bprm). */ mmap_read_lock (bprm->mm);
Signature · 1 line
2.39.5
Paul Moore
maintainerQuoted 17 lines · Tanya Agarwal
From: Tanya Agarwal <[email protected]>
Fix typos and spelling errors in security module comments that were identified using the codespell tool.
No functional changes - documentation only.Signed-off-by Tanya Agarwal <[email protected]>---
Thanks Günther, for catching this error.
The irony of having a spelling mistake in a patch that fixes spelling mistakes is not lost on me :)I've fixed it in V2 of the patch. Thank you for the careful review!
V2: fix spelling mistake - s/beeen/been/
Quoted 16 lines
security/apparmor/apparmorfs.c | 6 +++--- security/apparmor/domain.c | 4 ++-- security/apparmor/label.c | 2 +- security/apparmor/lsm.c | 2 +- security/apparmor/policy.c | 4 ++-- security/integrity/evm/evm_crypto.c | 2 +- security/integrity/evm/evm_main.c | 2 +- security/integrity/ima/ima_main.c | 6 +++--- security/landlock/ruleset.c | 2 +- security/selinux/avc.c | 2 +- security/smack/smack.h | 2 +- security/smack/smack_access.c | 4 ++-- security/smack/smack_lsm.c | 6 +++--- security/smack/smackfs.c | 2 +- security/tomoyo/domain.c | 2 +- 15 files changed, 24 insertions(+), 24 deletions(-)
Hi Tanya,
Ideally this patchset would be split into into seperate, independent patches, one for AppArmor, one for IMA/EVM, one for Landlock, one for SELinux, one for Smack, and one for TOMOYO. This allows for each LSM maintainer to review and merge these fixes individually as opposed to requiring every LSM maintainer to ACK this patch before it can be merged. There is also a risk, as with any cross-subsystem patch, that this patch will cause merge conflicts in the future as there is the possibility of multiple development trees touching the same file region, function, etc.
As a general rule, if you have a single patch that touches multiple kernel subsystems, and the changes in each subsystem can be applied independently, you really should split the patch into subsystem specific patches. You also should post these patches independently, and not as a single patchset, as a single patchset crossing multiple subsystems can sometimes cause some confusion among maintainers about who is going to be responsible for handling the patchset (even if all the patches are split properly).
--
paul-moore.com
Tetsuo Handa
maintainerQuoted 5 lines · Paul Moore
Hi Tanya,
Ideally this patchset would be split into into seperate, independent patches, one for AppArmor, one for IMA/EVM, one for Landlock, one for SELinux, one for Smack, and one for TOMOYO.
I don't think we need to split this patchset into individual modules, especially because this patchset does not affect the result of kernel build. We sometimes need to do "git bisect", and reducing number of commits helps saving building time and testing time for bisection.
Paul Moore
maintainerQuoted 11 lines · Tetsuo Handa
Quoted 5 lines · Paul Moore
Hi Tanya,
Ideally this patchset would be split into into seperate, independent patches, one for AppArmor, one for IMA/EVM, one for Landlock, one for SELinux, one for Smack, and one for TOMOYO.
I don't think we need to split this patchset into individual modules, especially because this patchset does not affect the result of kernel build. We sometimes need to do "git bisect", and reducing number of commits helps saving building time and testing time for bisection.
Merge conflicts and spending time having to coordinate maintainer ACKs is a real time cost.
Split the patch please.
Signature · 1 line
paul-moore.com
Quoted 33 lines · Tanya Agarwal
From: Tanya Agarwal <[email protected]>
Fix typos and spelling errors in security module comments that were identified using the codespell tool.
No functional changes - documentation only.Signed-off-by Tanya Agarwal <[email protected]>---
Thanks Günther, for catching this error.
The irony of having a spelling mistake in a patch that fixes spelling mistakes is not lost on me :)I've fixed it in V2 of the patch. Thank you for the careful review!
V2: fix spelling mistake - s/beeen/been/
security/apparmor/apparmorfs.c | 6 +++--- security/apparmor/domain.c | 4 ++-- security/apparmor/label.c | 2 +- security/apparmor/lsm.c | 2 +- security/apparmor/policy.c | 4 ++-- security/integrity/evm/evm_crypto.c | 2 +- security/integrity/evm/evm_main.c | 2 +- security/integrity/ima/ima_main.c | 6 +++--- security/landlock/ruleset.c | 2 +- security/selinux/avc.c | 2 +- security/smack/smack.h | 2 +- security/smack/smack_access.c | 4 ++-- security/smack/smack_lsm.c | 6 +++--- security/smack/smackfs.c | 2 +- security/tomoyo/domain.c | 2 +- 15 files changed, 24 insertions(+), 24 deletions(-)
[...]
security/integrity/ima/ima_main.c int process_buffer_measurement(struct mnt_idmap *idmap, · line 987
Quoted 13 lines
security/integrity/ima/ima_main.c +2
-3@@ -983,9 +983,9 @@ int process_buffer_measurement(struct mnt_idmap *idmap, }/* -* Both LSM hooks and auxilary based buffer measurements are -* based on policy. To avoid code duplication, differentiate -* between the LSM hooks and auxilary buffer measurements, +* Both LSM hooks and auxiliary based buffer measurements are +* based on policy. To avoid code duplication, differentiate
^^^
(Small nit:) This change from two-spaces-after-the-dot to a single space looks like it happened accidentally. The two-space style is dominant in the ima_main.c file.
(However, I am not involved in IMA and others have more authority to review this part. As Paul also said, reviews tend to go smoother when the scope for the patch is a single subsystem - it makes the responsibilities clearer.)
security/integrity/ima/ima_main.c int process_buffer_measurement(struct mnt_idmap *idmap, · line 991
Quoted 4 lines
security/integrity/ima/ima_main.c +1
-0+* between the LSM hooks and auxiliary buffer measurements, * retrieving the policy rule information only for the LSM hook * buffer measurements. */
–Günther
Quoted 57 lines · Günther Noack
Quoted 33 lines · Tanya Agarwal
From: Tanya Agarwal <[email protected]>
Fix typos and spelling errors in security module comments that were identified using the codespell tool.
No functional changes - documentation only.Signed-off-by Tanya Agarwal <[email protected]>---
Thanks Günther, for catching this error.
The irony of having a spelling mistake in a patch that fixes spelling mistakes is not lost on me :)I've fixed it in V2 of the patch. Thank you for the careful review!
V2: fix spelling mistake - s/beeen/been/
security/apparmor/apparmorfs.c | 6 +++---
security/apparmor/domain.c | 4 ++--
security/apparmor/label.c | 2 +-
security/apparmor/lsm.c | 2 +-
security/apparmor/policy.c | 4 ++--
security/integrity/evm/evm_crypto.c | 2 +-
security/integrity/evm/evm_main.c | 2 +-
security/integrity/ima/ima_main.c | 6 +++---
security/landlock/ruleset.c | 2 +-
security/selinux/avc.c | 2 +-
security/smack/smack.h | 2 +-
security/smack/smack_access.c | 4 ++--
security/smack/smack_lsm.c | 6 +++---
security/smack/smackfs.c | 2 +-
security/tomoyo/domain.c | 2 +-15 files changed, 24 insertions(+), 24 deletions(-)[...]
Quoted 9 lines
security/integrity/ima/ima_main.c +0
-0@@ -983,9 +983,9 @@ int process_buffer_measurement(struct mnt_idmap *idmap, }
/*security/integrity/ima/ima_main.c int process_buffer_measurement(struct mnt_idmap *idmap, · line 987
Quoted 5 lines
security/integrity/ima/ima_main.c +2
-3-* Both LSM hooks and auxilary based buffer measurements are -* based on policy. To avoid code duplication, differentiate -* between the LSM hooks and auxilary buffer measurements, +* Both LSM hooks and auxiliary based buffer measurements are +* based on policy. To avoid code duplication, differentiate ^^^
(Small nit:) This change from two-spaces-after-the-dot to a single space looks like it happened accidentally. The two-space style is dominant in the
ima_main.cfile.
Quoted 6 lines
(However, I am not involved in IMA and others have more authority to review this part. As Paul also said, reviews tend to go smoother when the scope for the patch is a single subsystem - it makes the responsibilities clearer.)
security/integrity/ima/ima_main.c int process_buffer_measurement(struct mnt_idmap *idmap, · line 988
Quoted 1 line
security/integrity/ima/ima_main.c +1
-0+* between the LSM hooks and auxiliary buffer measurements,
The spelling mistake being corrected in two places is auxilary -> auxiliary. Thank you for noticing the unnecessary change from two spaces to one space as well.
FYI, I agree with Paul the patch should be split.
Quoted 5 lines
Quoted 3 lines
* retrieving the policy rule information only for the LSM hook
* buffer measurements.
*/–Günther
Quoted 64 lines · Mimi Zohar
Quoted 62 lines · Günther Noack
Quoted 33 lines · Tanya Agarwal
From: Tanya Agarwal <[email protected]>
Fix typos and spelling errors in security module comments that were identified using the codespell tool.
No functional changes - documentation only.Signed-off-by Tanya Agarwal <[email protected]>---
Thanks Günther, for catching this error.
The irony of having a spelling mistake in a patch that fixes spelling mistakes is not lost on me :)I've fixed it in V2 of the patch. Thank you for the careful review!
V2: fix spelling mistake - s/beeen/been/
security/apparmor/apparmorfs.c | 6 +++--- security/apparmor/domain.c | 4 ++-- security/apparmor/label.c | 2 +- security/apparmor/lsm.c | 2 +- security/apparmor/policy.c | 4 ++-- security/integrity/evm/evm_crypto.c | 2 +- security/integrity/evm/evm_main.c | 2 +- security/integrity/ima/ima_main.c | 6 +++--- security/landlock/ruleset.c | 2 +- security/selinux/avc.c | 2 +- security/smack/smack.h | 2 +- security/smack/smack_access.c | 4 ++-- security/smack/smack_lsm.c | 6 +++--- security/smack/smackfs.c | 2 +- security/tomoyo/domain.c | 2 +- 15 files changed, 24 insertions(+), 24 deletions(-)[...]
Quoted 6 lines
security/integrity/ima/ima_main.c +0
-0security/integrity/ima/ima_main.c int process_buffer_measurement(struct mnt_idmap *idmap, · line 987
Quoted 8 lines
security/integrity/ima/ima_main.c +2
-3@@ -983,9 +983,9 @@ int process_buffer_measurement(struct mnt_idmap *idmap, }/* -* Both LSM hooks and auxilary based buffer measurements are -* based on policy. To avoid code duplication, differentiate -* between the LSM hooks and auxilary buffer measurements, +* Both LSM hooks and auxiliary based buffer measurements are +* based on policy. To avoid code duplication, differentiate ^^^(Small nit:) This change from two-spaces-after-the-dot to a single space looks like it happened accidentally. The two-space style is dominant in the
ima_main.cfile.(However, I am not involved in IMA and others have more authority to review this part. As Paul also said, reviews tend to go smoother when the scope for the patch is a single subsystem - it makes the responsibilities clearer.)
Quoted 9 lines
Quoted 1 line
security/integrity/ima/ima_main.c int process_buffer_measurement(struct mnt_idmap *idmap, · line 988
Quoted 1 line
security/integrity/ima/ima_main.c +1
-0+* between the LSM hooks and auxiliary buffer measurements, The spelling mistake being corrected in two places is auxilary -> auxiliary. Thank you for noticing the unnecessary change from two spaces to one space as well.
FYI, I agree with Paul the patch should be split.
Reviewed-by Mimi Zohar <[email protected]>
Hi All,
Thanks for the review.
Sure, I'll split patches of different security subsystems so, that they are easy for maintainers to merge.
Regards,
Tanya
Paul Moore
maintainerQuoted 5 lines · Tanya Agarwal
Hi All,
Thanks for the review.
Sure, I'll split patches of different security subsystems so, that they are easy for maintainers to merge.
Thanks!
Signature · 1 line
paul-moore.com