Skip to contentSkip to conversation

flask/policy: use naming convention xenpolicy-$(XEN_FULLVERSION)

PATCH Applied Wei Liu 3 participants 4 messages Sep 15, 2014 – Sep 24, 2014

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 flask/policy: use naming convention xenpolicy-$(XEN_FULLVERSION)

Daniel suggested we use xenpolicy-$(XEN_FULLVERSION) as flask policy naming convention.

Cc Daniel De Graaf <[email protected]>
Cc Ian Campbell <[email protected]>
---
 .gitignore                  |    2 +-
 tools/flask/policy/Makefile |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
.gitignore +1 -1
index 6d725aa..e5ad43d 100644
@@ -272,7 +272,7 @@ xen/xsm/flask/include/class_to_string.h
 xen/xsm/flask/include/flask.h
 xen/xsm/flask/include/initial_sid_to_string.h
 tools/flask/policy/policy.conf
-tools/flask/policy/xenpolicy.24
+tools/flask/policy/xenpolicy-*
 xen/xen
 xen/xen-syms
 xen/xen.*
tools/flask/policy/Makefile +1 -1
index a1c0f11..5d8cfbf 100644
@@ -32,7 +32,7 @@ M4 ?= m4
 # include the Xen policy type (needed for static device policy).
 OUTPUT_POLICY = 24
 
-POLICY_FILENAME = xenpolicy.$(OUTPUT_POLICY)
+POLICY_FILENAME = xenpolicy-$(shell $(MAKE) -C $(XEN_ROOT)/xen xenversion --no-print-directory)
 POLICY_LOADPATH = /boot
 
 # policy source layout
Signature · 1 line
1.7.10.4
author
#1 lore raw

Ian, I forgot to label this for 4.5. Sorry.

Daniel, can you ack / nack this patch if you have time? We are approaching freeze. However small this patch is we'd better get it in sooner rather than later.

Wei.

Acked-by on v1 1/1
#2 lore raw
In reply to Wei Liu
Quoted 6 lines · Wei Liu

Daniel suggested we use xenpolicy-$(XEN_FULLVERSION) as flask policy naming convention.

Cc Daniel De Graaf <[email protected]>
Cc Ian Campbell <[email protected]>
Quoted 32 lines
---
  .gitignore                  |    2 +-
  tools/flask/policy/Makefile |    2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)
.gitignore +1 -1
index 6d725aa..e5ad43d 100644
@@ -272,7 +272,7 @@ xen/xsm/flask/include/class_to_string.h
  xen/xsm/flask/include/flask.h
  xen/xsm/flask/include/initial_sid_to_string.h
  tools/flask/policy/policy.conf
-tools/flask/policy/xenpolicy.24
+tools/flask/policy/xenpolicy-*
  xen/xen
  xen/xen-syms
  xen/xen.*
tools/flask/policy/Makefile +1 -1
index a1c0f11..5d8cfbf 100644
@@ -32,7 +32,7 @@ M4 ?= m4
  # include the Xen policy type (needed for static device policy).
  OUTPUT_POLICY = 24
 
-POLICY_FILENAME = xenpolicy.$(OUTPUT_POLICY)
+POLICY_FILENAME = xenpolicy-$(shell $(MAKE) -C $(XEN_ROOT)/xen xenversion --no-print-directory)
  POLICY_LOADPATH = /boot
 
  # policy source layout
Signature · 2 lines
Daniel De Graaf
National Security Agency