* [PATCH v2] secilc: kernel policy language is infix
@ 2021-12-12 18:49 Topi Miettinen
2022-03-30 17:33 ` James Carter
0 siblings, 1 reply; 3+ messages in thread
From: Topi Miettinen @ 2021-12-12 18:49 UTC (permalink / raw)
To: selinux; +Cc: Topi Miettinen
Prefix / Polish (CIL): and a b
Infix (KPL): a and b
Postfix / Reverse Polish: a b and
Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
---
v2: improved commit message
v1: https://lore.kernel.org/selinux/20211119213728.19331-1-toiwoton@gmail.com/
---
secilc/docs/cil_reference_guide.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/secilc/docs/cil_reference_guide.md b/secilc/docs/cil_reference_guide.md
index 1e63e680..ac800b12 100644
--- a/secilc/docs/cil_reference_guide.md
+++ b/secilc/docs/cil_reference_guide.md
@@ -189,7 +189,7 @@ Expressions
Expressions may occur in the following CIL statements: [`booleanif`](cil_conditional_statements.md#booleanif), [`tunableif`](cil_conditional_statements.md#tunableif), [`classpermissionset`](cil_class_and_permission_statements.md#classpermissionset), [`typeattributeset`](cil_type_statements.md#typeattributeset), [`roleattributeset`](cil_role_statements.md#roleattributeset), [`categoryset`](cil_mls_labeling_statements.md#categoryset), [`constrain`](cil_constraint_statements.md#constrain), [`mlsconstrain`](cil_constraint_statements.md#mlsconstrain), [`validatetrans`](cil_constraint_statements.md#validatetrans), [`mlsvalidatetrans`](cil_constraint_statements.md#mlsvalidatetrans)
-CIL expressions use the [prefix](http://www.cs.man.ac.uk/~pjj/cs212/fix.html) or Polish notation and may be nested (note that the kernel policy language uses postfix or reverse Polish notation). The syntax is as follows, where the parenthesis are part of the syntax:
+CIL expressions use the [prefix](http://www.cs.man.ac.uk/~pjj/cs212/fix.html) or Polish notation and may be nested (note that the kernel policy language uses infix notation). The syntax is as follows, where the parenthesis are part of the syntax:
```
expr_set = (name ... | expr ...)
base-commit: f7ec4b4a84aaf3e60b099e267dbfdabbfb1878c7
--
2.33.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] secilc: kernel policy language is infix
2021-12-12 18:49 [PATCH v2] secilc: kernel policy language is infix Topi Miettinen
@ 2022-03-30 17:33 ` James Carter
2022-03-30 19:02 ` James Carter
0 siblings, 1 reply; 3+ messages in thread
From: James Carter @ 2022-03-30 17:33 UTC (permalink / raw)
To: Topi Miettinen; +Cc: SElinux list
On Sun, Dec 12, 2021 at 4:22 PM Topi Miettinen <toiwoton@gmail.com> wrote:
>
> Prefix / Polish (CIL): and a b
> Infix (KPL): a and b
> Postfix / Reverse Polish: a b and
>
> Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
Sorry, this dropped off my radar.
Acked-by: James Carter <jwcart2@gmail.com>
> ---
> v2: improved commit message
>
> v1: https://lore.kernel.org/selinux/20211119213728.19331-1-toiwoton@gmail.com/
> ---
> secilc/docs/cil_reference_guide.md | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/secilc/docs/cil_reference_guide.md b/secilc/docs/cil_reference_guide.md
> index 1e63e680..ac800b12 100644
> --- a/secilc/docs/cil_reference_guide.md
> +++ b/secilc/docs/cil_reference_guide.md
> @@ -189,7 +189,7 @@ Expressions
>
> Expressions may occur in the following CIL statements: [`booleanif`](cil_conditional_statements.md#booleanif), [`tunableif`](cil_conditional_statements.md#tunableif), [`classpermissionset`](cil_class_and_permission_statements.md#classpermissionset), [`typeattributeset`](cil_type_statements.md#typeattributeset), [`roleattributeset`](cil_role_statements.md#roleattributeset), [`categoryset`](cil_mls_labeling_statements.md#categoryset), [`constrain`](cil_constraint_statements.md#constrain), [`mlsconstrain`](cil_constraint_statements.md#mlsconstrain), [`validatetrans`](cil_constraint_statements.md#validatetrans), [`mlsvalidatetrans`](cil_constraint_statements.md#mlsvalidatetrans)
>
> -CIL expressions use the [prefix](http://www.cs.man.ac.uk/~pjj/cs212/fix.html) or Polish notation and may be nested (note that the kernel policy language uses postfix or reverse Polish notation). The syntax is as follows, where the parenthesis are part of the syntax:
> +CIL expressions use the [prefix](http://www.cs.man.ac.uk/~pjj/cs212/fix.html) or Polish notation and may be nested (note that the kernel policy language uses infix notation). The syntax is as follows, where the parenthesis are part of the syntax:
>
> ```
> expr_set = (name ... | expr ...)
>
> base-commit: f7ec4b4a84aaf3e60b099e267dbfdabbfb1878c7
> --
> 2.33.0
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] secilc: kernel policy language is infix
2022-03-30 17:33 ` James Carter
@ 2022-03-30 19:02 ` James Carter
0 siblings, 0 replies; 3+ messages in thread
From: James Carter @ 2022-03-30 19:02 UTC (permalink / raw)
To: Topi Miettinen; +Cc: SElinux list
On Wed, Mar 30, 2022 at 1:33 PM James Carter <jwcart2@gmail.com> wrote:
>
> On Sun, Dec 12, 2021 at 4:22 PM Topi Miettinen <toiwoton@gmail.com> wrote:
> >
> > Prefix / Polish (CIL): and a b
> > Infix (KPL): a and b
> > Postfix / Reverse Polish: a b and
> >
> > Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
>
> Sorry, this dropped off my radar.
>
> Acked-by: James Carter <jwcart2@gmail.com>
>
And merged.
Thanks,
Jim
> > ---
> > v2: improved commit message
> >
> > v1: https://lore.kernel.org/selinux/20211119213728.19331-1-toiwoton@gmail.com/
> > ---
> > secilc/docs/cil_reference_guide.md | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/secilc/docs/cil_reference_guide.md b/secilc/docs/cil_reference_guide.md
> > index 1e63e680..ac800b12 100644
> > --- a/secilc/docs/cil_reference_guide.md
> > +++ b/secilc/docs/cil_reference_guide.md
> > @@ -189,7 +189,7 @@ Expressions
> >
> > Expressions may occur in the following CIL statements: [`booleanif`](cil_conditional_statements.md#booleanif), [`tunableif`](cil_conditional_statements.md#tunableif), [`classpermissionset`](cil_class_and_permission_statements.md#classpermissionset), [`typeattributeset`](cil_type_statements.md#typeattributeset), [`roleattributeset`](cil_role_statements.md#roleattributeset), [`categoryset`](cil_mls_labeling_statements.md#categoryset), [`constrain`](cil_constraint_statements.md#constrain), [`mlsconstrain`](cil_constraint_statements.md#mlsconstrain), [`validatetrans`](cil_constraint_statements.md#validatetrans), [`mlsvalidatetrans`](cil_constraint_statements.md#mlsvalidatetrans)
> >
> > -CIL expressions use the [prefix](http://www.cs.man.ac.uk/~pjj/cs212/fix.html) or Polish notation and may be nested (note that the kernel policy language uses postfix or reverse Polish notation). The syntax is as follows, where the parenthesis are part of the syntax:
> > +CIL expressions use the [prefix](http://www.cs.man.ac.uk/~pjj/cs212/fix.html) or Polish notation and may be nested (note that the kernel policy language uses infix notation). The syntax is as follows, where the parenthesis are part of the syntax:
> >
> > ```
> > expr_set = (name ... | expr ...)
> >
> > base-commit: f7ec4b4a84aaf3e60b099e267dbfdabbfb1878c7
> > --
> > 2.33.0
> >
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-03-30 19:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-12 18:49 [PATCH v2] secilc: kernel policy language is infix Topi Miettinen
2022-03-30 17:33 ` James Carter
2022-03-30 19:02 ` James Carter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.