From 1e4e7f6a125af20c563f8c6932d210a8f5f902e9 Mon Sep 17 00:00:00 2001 From: Dominick Grift Date: Wed, 24 Mar 2021 16:11:05 +0100 Subject: [PATCH] cil_conditional_statements.md: fix expr definition expr "(expr (tunable_id tunable_id))" does not work but "(expr tunable_id tunable_id)" does work for example, this works (tunable test1) (tunable test2) (tunableif (or test1 test2) (true (allow a b (c (d))))) but this does not work: (tunable test1) (tunable test2) (tunableif (or (test1 test2)) (true (allow a b (c (d))))) Signed-off-by: Dominick Grift --- secilc/docs/cil_conditional_statements.md | 24 +++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/secilc/docs/cil_conditional_statements.md b/secilc/docs/cil_conditional_statements.md index a55a9b6cccd6..55f0bfd65aa8 100644 --- a/secilc/docs/cil_conditional_statements.md +++ b/secilc/docs/cil_conditional_statements.md @@ -78,12 +78,12 @@ Contains the run time conditional statements that are instantiated in the binary

expr

Zero or more expr's, the valid operators and syntax are:

-

(and (boolean_id boolean_id))

-

(or (boolean_id boolean_id))

-

(xor (boolean_id boolean_id))

-

(eq (boolean_id boolean_id))

-

(neq (boolean_id boolean_id))

-

(not (boolean_id))

+

(and boolean_id boolean_id)

+

(or boolean_id boolean_id)

+

(xor boolean_id boolean_id)

+

(eq boolean_id boolean_id)

+

(neq boolean_id boolean_id)

+

(not boolean_id)

true

@@ -196,12 +196,12 @@ Compile time conditional statement that may or may not add CIL statements to be

expr

Zero or more expr's, the valid operators and syntax are:

-

(and (tunable_id tunable_id))

-

(or (tunable_id tunable_id))

-

(xor (tunable_id tunable_id))

-

(eq (tunable_id tunable_id))

-

(neq (tunable_id tunable_id))

-

(not (tunable_id))

+

(and tunable_id tunable_id)

+

(or tunable_id tunable_id)

+

(xor tunable_id tunable_id)

+

(eq tunable_id tunable_id)

+

(neq tunable_id tunable_id)

+

(not tunable_id)

true

-- 2.32.0