[PATCH 1/3] tools/flask: Strip trailing whitespace

Andrew Cooper posted 3 patches 3 months ago
[PATCH 1/3] tools/flask: Strip trailing whitespace
Posted by Andrew Cooper 3 months ago
No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Daniel P. Smith <dpsmith@apertussolutions.com>
---
 tools/flask/policy/modules/modules.conf           | 2 +-
 tools/flask/policy/modules/vm_role.cons           | 4 ++--
 tools/flask/policy/policy/mls                     | 2 +-
 tools/flask/policy/policy/support/misc_macros.spt | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tools/flask/policy/modules/modules.conf b/tools/flask/policy/modules/modules.conf
index 6dba0a3d9172..1b6975551ab4 100644
--- a/tools/flask/policy/modules/modules.conf
+++ b/tools/flask/policy/modules/modules.conf
@@ -42,7 +42,7 @@ xenstore = on
 all_system_role = on
 
 # Example users, roles, and constraints for user-based separation.
-# 
+#
 # The three users defined here can set up grant/event channel communication
 # (vchan, device frontend/backend) between their own VMs, but cannot set up a
 # channel to a VM under a different user.
diff --git a/tools/flask/policy/modules/vm_role.cons b/tools/flask/policy/modules/vm_role.cons
index 3847ec1afa4e..ac38217f4641 100644
--- a/tools/flask/policy/modules/vm_role.cons
+++ b/tools/flask/policy/modules/vm_role.cons
@@ -3,7 +3,7 @@
 #
 # constrain class_set perm_set expression ;
 #
-# expression : ( expression ) 
+# expression : ( expression )
 #	     | not expression
 #	     | expression and expression
 #	     | expression or expression
@@ -17,7 +17,7 @@
 #	     | t1 op names
 #	     | t2 op names
 #
-# op : == | != 
+# op : == | !=
 # role_op : == | != | eq | dom | domby | incomp
 #
 # names : name | { name_list }
diff --git a/tools/flask/policy/policy/mls b/tools/flask/policy/policy/mls
index 9290a76ae9bc..c4b74c10cda7 100644
--- a/tools/flask/policy/policy/mls
+++ b/tools/flask/policy/policy/mls
@@ -1,6 +1,6 @@
 ifdef(`enable_mls',`
 #
-# Define sensitivities 
+# Define sensitivities
 #
 # Domination of sensitivities is in increasin
 # numerical order, with s0 being the lowest
diff --git a/tools/flask/policy/policy/support/misc_macros.spt b/tools/flask/policy/policy/support/misc_macros.spt
index 3116db92fbed..4c3be036c6e9 100644
--- a/tools/flask/policy/policy/support/misc_macros.spt
+++ b/tools/flask/policy/policy/support/misc_macros.spt
@@ -21,7 +21,7 @@ define(`ifndef',`ifdef(`$1',`$3',`$2')')
 #
 # __endline__
 #
-# dummy macro to insert a newline.  used for 
+# dummy macro to insert a newline.  used for
 # errprint, so the close parentheses can be
 # indented correctly.
 #
-- 
2.39.5
Re: [PATCH 1/3] tools/flask: Strip trailing whitespace
Posted by Daniel Smith 3 months ago
---- On Mon, 28 Jul 2025 13:55:46 -0400 Andrew Cooper <andrew.cooper3@citrix.com> wrote ---

 > No functional change. 
 >  
 > Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> 
 > --- 
 > CC: Daniel P. Smith <dpsmith@apertussolutions.com> 
 > --- 
 >  tools/flask/policy/modules/modules.conf           | 2 +- 
 >  tools/flask/policy/modules/vm_role.cons           | 4 ++-- 
 >  tools/flask/policy/policy/mls                     | 2 +- 
 >  tools/flask/policy/policy/support/misc_macros.spt | 2 +- 
 >  4 files changed, 5 insertions(+), 5 deletions(-) 
 >  
 > diff --git a/tools/flask/policy/modules/modules.conf b/tools/flask/policy/modules/modules.conf 
 > index 6dba0a3d9172..1b6975551ab4 100644 
 > --- a/tools/flask/policy/modules/modules.conf 
 > +++ b/tools/flask/policy/modules/modules.conf 
 > @@ -42,7 +42,7 @@ xenstore = on 
 >  all_system_role = on 
 >  
 >  # Example users, roles, and constraints for user-based separation. 
 > -# 
 > +# 
 >  # The three users defined here can set up grant/event channel communication 
 >  # (vchan, device frontend/backend) between their own VMs, but cannot set up a 
 >  # channel to a VM under a different user. 
 > diff --git a/tools/flask/policy/modules/vm_role.cons b/tools/flask/policy/modules/vm_role.cons 
 > index 3847ec1afa4e..ac38217f4641 100644 
 > --- a/tools/flask/policy/modules/vm_role.cons 
 > +++ b/tools/flask/policy/modules/vm_role.cons 
 > @@ -3,7 +3,7 @@ 
 >  # 
 >  # constrain class_set perm_set expression ; 
 >  # 
 > -# expression : ( expression ) 
 > +# expression : ( expression ) 
 >  #         | not expression 
 >  #         | expression and expression 
 >  #         | expression or expression 
 > @@ -17,7 +17,7 @@ 
 >  #         | t1 op names 
 >  #         | t2 op names 
 >  # 
 > -# op : == | != 
 > +# op : == | != 
 >  # role_op : == | != | eq | dom | domby | incomp 
 >  # 
 >  # names : name | { name_list } 
 > diff --git a/tools/flask/policy/policy/mls b/tools/flask/policy/policy/mls 
 > index 9290a76ae9bc..c4b74c10cda7 100644 
 > --- a/tools/flask/policy/policy/mls 
 > +++ b/tools/flask/policy/policy/mls 
 > @@ -1,6 +1,6 @@ 
 >  ifdef(`enable_mls',` 
 >  # 
 > -# Define sensitivities 
 > +# Define sensitivities 
 >  # 
 >  # Domination of sensitivities is in increasin 
 >  # numerical order, with s0 being the lowest 
 > diff --git a/tools/flask/policy/policy/support/misc_macros.spt b/tools/flask/policy/policy/support/misc_macros.spt 
 > index 3116db92fbed..4c3be036c6e9 100644 
 > --- a/tools/flask/policy/policy/support/misc_macros.spt 
 > +++ b/tools/flask/policy/policy/support/misc_macros.spt 
 > @@ -21,7 +21,7 @@ define(`ifndef',`ifdef(`$1',`$3',`$2')') 
 >  # 
 >  # __endline__ 
 >  # 
 > -# dummy macro to insert a newline.  used for 
 > +# dummy macro to insert a newline.  used for 
 >  # errprint, so the close parentheses can be 
 >  # indented correctly. 
 >  # 
 > -- 
 > 2.39.5 
 >  
 > 

Acked-by: Daniel P. Smith <dpsmith@apertussolutions.com>