diff mbox series

[1/2] libsepol: fix typos

Message ID 20241230140523.60053-2-cgoettsche@seltendoof.de (mailing list archive)
State Accepted
Commit 2cb6bacddcd6
Delegated to: Petr Lautrbach
Headers show
Series [1/2] libsepol: fix typos | expand

Commit Message

Christian Göttsche Dec. 30, 2024, 2:05 p.m. UTC
From: Christian Göttsche <cgzones@googlemail.com>

Found by codespell(1) and typos[1].

[1]: https://github.com/crate-ci/typos

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
---
 libsepol/src/kernel_to_cil.c | 2 +-
 libsepol/src/module_to_cil.c | 2 +-
 libsepol/src/policydb.c      | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Comments

James Carter Jan. 8, 2025, 6:24 p.m. UTC | #1
On Mon, Dec 30, 2024 at 9:05 AM Christian Göttsche
<cgoettsche@seltendoof.de> wrote:
>
> From: Christian Göttsche <cgzones@googlemail.com>
>
> Found by codespell(1) and typos[1].
>
> [1]: https://github.com/crate-ci/typos
>
> Signed-off-by: Christian Göttsche <cgzones@googlemail.com>

For these two patches:
Acked-by: James Carter <jwcart2@gmail.com>

> ---
>  libsepol/src/kernel_to_cil.c | 2 +-
>  libsepol/src/module_to_cil.c | 2 +-
>  libsepol/src/policydb.c      | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/libsepol/src/kernel_to_cil.c b/libsepol/src/kernel_to_cil.c
> index 2d563e7d..ddca2b62 100644
> --- a/libsepol/src/kernel_to_cil.c
> +++ b/libsepol/src/kernel_to_cil.c
> @@ -1802,7 +1802,7 @@ static char *avtab_node_to_str(struct policydb *pdb, avtab_key_t *key, avtab_dat
>                 } else if (datum->xperms->specified == AVTAB_XPERMS_NLMSG) {
>                         xperm = (char *) "nlmsg";
>                 } else {
> -                       ERR(NULL, "Unknown extended permssion");
> +                       ERR(NULL, "Unknown extended permission");
>                         goto exit;
>                 }
>                 rule = create_str("(%s %s %s (%s %s (%s)))",
> diff --git a/libsepol/src/module_to_cil.c b/libsepol/src/module_to_cil.c
> index 0ede0c9b..ae9a2b5d 100644
> --- a/libsepol/src/module_to_cil.c
> +++ b/libsepol/src/module_to_cil.c
> @@ -709,7 +709,7 @@ static int avrulex_to_cil(int indent, struct policydb *pdb, uint32_t type, const
>         } else if (xperms->specified == AVTAB_XPERMS_NLMSG) {
>                 xperm = "nlmsg";
>         } else {
> -               ERR(NULL, "Unkown avrule xperms->specified: %i", xperms->specified);
> +               ERR(NULL, "Unknown avrule xperms->specified: %i", xperms->specified);
>                 rc = -1;
>                 goto exit;
>         }
> diff --git a/libsepol/src/policydb.c b/libsepol/src/policydb.c
> index 0747e789..8443380b 100644
> --- a/libsepol/src/policydb.c
> +++ b/libsepol/src/policydb.c
> @@ -1662,7 +1662,7 @@ int policydb_load_isids(policydb_t * p, sidtab_t * s)
>   *
>   * arguments:
>   *   policydb_t *pol       module policy to modify
> - *   uint32_t sym          the symbole table for insertion (SYM_*)
> + *   uint32_t sym          the symbol table for insertion (SYM_*)
>   *   hashtab_key_t key     the key for the symbol - not cloned
>   *   hashtab_datum_t data  the data for the symbol - not cloned
>   *   scope                 scope of this symbol, either SCOPE_REQ or SCOPE_DECL
> --
> 2.45.2
>
>
Petr Lautrbach Jan. 16, 2025, 4:09 p.m. UTC | #2
James Carter <jwcart2@gmail.com> writes:

> On Mon, Dec 30, 2024 at 9:05 AM Christian Göttsche
> <cgoettsche@seltendoof.de> wrote:
>>
>> From: Christian Göttsche <cgzones@googlemail.com>
>>
>> Found by codespell(1) and typos[1].
>>
>> [1]: https://github.com/crate-ci/typos
>>
>> Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
>
> For these two patches:
> Acked-by: James Carter <jwcart2@gmail.com>

Merged. Thanks!

>> ---
>>  libsepol/src/kernel_to_cil.c | 2 +-
>>  libsepol/src/module_to_cil.c | 2 +-
>>  libsepol/src/policydb.c      | 2 +-
>>  3 files changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/libsepol/src/kernel_to_cil.c b/libsepol/src/kernel_to_cil.c
>> index 2d563e7d..ddca2b62 100644
>> --- a/libsepol/src/kernel_to_cil.c
>> +++ b/libsepol/src/kernel_to_cil.c
>> @@ -1802,7 +1802,7 @@ static char *avtab_node_to_str(struct policydb *pdb, avtab_key_t *key, avtab_dat
>>                 } else if (datum->xperms->specified == AVTAB_XPERMS_NLMSG) {
>>                         xperm = (char *) "nlmsg";
>>                 } else {
>> -                       ERR(NULL, "Unknown extended permssion");
>> +                       ERR(NULL, "Unknown extended permission");
>>                         goto exit;
>>                 }
>>                 rule = create_str("(%s %s %s (%s %s (%s)))",
>> diff --git a/libsepol/src/module_to_cil.c b/libsepol/src/module_to_cil.c
>> index 0ede0c9b..ae9a2b5d 100644
>> --- a/libsepol/src/module_to_cil.c
>> +++ b/libsepol/src/module_to_cil.c
>> @@ -709,7 +709,7 @@ static int avrulex_to_cil(int indent, struct policydb *pdb, uint32_t type, const
>>         } else if (xperms->specified == AVTAB_XPERMS_NLMSG) {
>>                 xperm = "nlmsg";
>>         } else {
>> -               ERR(NULL, "Unkown avrule xperms->specified: %i", xperms->specified);
>> +               ERR(NULL, "Unknown avrule xperms->specified: %i", xperms->specified);
>>                 rc = -1;
>>                 goto exit;
>>         }
>> diff --git a/libsepol/src/policydb.c b/libsepol/src/policydb.c
>> index 0747e789..8443380b 100644
>> --- a/libsepol/src/policydb.c
>> +++ b/libsepol/src/policydb.c
>> @@ -1662,7 +1662,7 @@ int policydb_load_isids(policydb_t * p, sidtab_t * s)
>>   *
>>   * arguments:
>>   *   policydb_t *pol       module policy to modify
>> - *   uint32_t sym          the symbole table for insertion (SYM_*)
>> + *   uint32_t sym          the symbol table for insertion (SYM_*)
>>   *   hashtab_key_t key     the key for the symbol - not cloned
>>   *   hashtab_datum_t data  the data for the symbol - not cloned
>>   *   scope                 scope of this symbol, either SCOPE_REQ or SCOPE_DECL
>> --
>> 2.45.2
>>
>>
diff mbox series

Patch

diff --git a/libsepol/src/kernel_to_cil.c b/libsepol/src/kernel_to_cil.c
index 2d563e7d..ddca2b62 100644
--- a/libsepol/src/kernel_to_cil.c
+++ b/libsepol/src/kernel_to_cil.c
@@ -1802,7 +1802,7 @@  static char *avtab_node_to_str(struct policydb *pdb, avtab_key_t *key, avtab_dat
 		} else if (datum->xperms->specified == AVTAB_XPERMS_NLMSG) {
 			xperm = (char *) "nlmsg";
 		} else {
-			ERR(NULL, "Unknown extended permssion");
+			ERR(NULL, "Unknown extended permission");
 			goto exit;
 		}
 		rule = create_str("(%s %s %s (%s %s (%s)))",
diff --git a/libsepol/src/module_to_cil.c b/libsepol/src/module_to_cil.c
index 0ede0c9b..ae9a2b5d 100644
--- a/libsepol/src/module_to_cil.c
+++ b/libsepol/src/module_to_cil.c
@@ -709,7 +709,7 @@  static int avrulex_to_cil(int indent, struct policydb *pdb, uint32_t type, const
 	} else if (xperms->specified == AVTAB_XPERMS_NLMSG) {
 		xperm = "nlmsg";
 	} else {
-		ERR(NULL, "Unkown avrule xperms->specified: %i", xperms->specified);
+		ERR(NULL, "Unknown avrule xperms->specified: %i", xperms->specified);
 		rc = -1;
 		goto exit;
 	}
diff --git a/libsepol/src/policydb.c b/libsepol/src/policydb.c
index 0747e789..8443380b 100644
--- a/libsepol/src/policydb.c
+++ b/libsepol/src/policydb.c
@@ -1662,7 +1662,7 @@  int policydb_load_isids(policydb_t * p, sidtab_t * s)
  *
  * arguments:
  *   policydb_t *pol       module policy to modify
- *   uint32_t sym          the symbole table for insertion (SYM_*)
+ *   uint32_t sym          the symbol table for insertion (SYM_*)
  *   hashtab_key_t key     the key for the symbol - not cloned
  *   hashtab_datum_t data  the data for the symbol - not cloned
  *   scope                 scope of this symbol, either SCOPE_REQ or SCOPE_DECL