Skip to contentSkip to conversation

tools: adjust rules for FLASK policy generation

PATCH In review Doug Goldstein 1 participant 2 messages Jan 14, 2016 – Jan 16, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: adjust rules for FLASK policy generation

Change the default on the --{enable,disable}-xsmpolicy configure switch to disabled by default but always build the necessary utilities for FLASK. The result is that the tools will always be built (and can be omitted by the packager) but the policy won't always be generated and installed if the tools are built. Previously the policy was always built if the tools were built.

CC Ian Jackson <[email protected]>
CC Stefano Stabellini <[email protected]>
CC Ian Campbell <[email protected]>
CC Wei Liu <[email protected]>

---
So this patch is a replacement for:
http://lists.xenproject.org/archives/html/xen-devel/2015-12/msg02538.html

This was to address concerns that the FLASK policy was now always built and installed and would confuse users. Patches to handle this potential change have been submitted in osstest have already been submitted to the ML. I posted more rationale behind this on the other patch at:
http://lists.xenproject.org/archives/html/xen-devel/2016-01/msg01591.html

---
 tools/Makefile     | 2 +-
 tools/configure.ac | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tools/Makefile +1 -1
index 9f74ac7..3f9289b 100644
@@ -5,7 +5,7 @@ SUBDIRS-y :=
 SUBDIRS-y += include
 SUBDIRS-y += libs
 SUBDIRS-y += libxc
-SUBDIRS-$(FLASK_ENABLE) += flask
+SUBDIRS-y += flask
 SUBDIRS-y += xenstore
 SUBDIRS-y += misc
 SUBDIRS-y += examples
tools/configure.ac +1 -1
index 6c70040..e0fb862 100644
@@ -80,7 +80,7 @@ AX_ARG_DEFAULT_DISABLE([rpath], [Build tools with -Wl,-rpath,LIBDIR])
 AX_ARG_DEFAULT_DISABLE([githttp], [Download GIT repositories via HTTP])
 AX_ARG_DEFAULT_ENABLE([monitors], [Disable xenstat and xentop monitoring tools])
 AX_ARG_DEFAULT_ENABLE([ocamltools], [Disable Ocaml tools])
-AX_ARG_DEFAULT_ENABLE([xsmpolicy], [Disable XSM policy compilation])
+AX_ARG_DEFAULT_DISABLE([xsmpolicy], [Disable XSM policy compilation])
 AX_ARG_DEFAULT_DISABLE([ovmf], [Enable OVMF])
 AX_ARG_DEFAULT_ENABLE([seabios], [Disable SeaBIOS])
 
Signature · 1 line
2.4.10
#1 lore raw
Quoted 45 lines · Doug Goldstein

Change the default on the --{enable,disable}-xsmpolicy configure switch to disabled by default but always build the necessary utilities for FLASK. The result is that the tools will always be built (and can be omitted by the packager) but the policy won't always be generated and installed if the tools are built. Previously the policy was always built if the tools were built.

CC Ian Jackson <[email protected]>
CC Stefano Stabellini <[email protected]>
CC Ian Campbell <[email protected]>
CC Wei Liu <[email protected]>

---
So this patch is a replacement for:
http://lists.xenproject.org/archives/html/xen-devel/2015-12/msg02538.html

This was to address concerns that the FLASK policy was now always built and installed and would confuse users. Patches to handle this potential change have been submitted in osstest have already been submitted to the ML. I posted more rationale behind this on the other patch at:
http://lists.xenproject.org/archives/html/xen-devel/2016-01/msg01591.html

---
 tools/Makefile     | 2 +-
 tools/configure.ac | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tools/Makefile +1 -1
index 9f74ac7..3f9289b 100644
@@ -5,7 +5,7 @@ SUBDIRS-y :=
 SUBDIRS-y += include
 SUBDIRS-y += libs
 SUBDIRS-y += libxc
-SUBDIRS-$(FLASK_ENABLE) += flask
+SUBDIRS-y += flask
 SUBDIRS-y += xenstore
 SUBDIRS-y += misc
 SUBDIRS-y += examples
tools/configure.ac +0 -0
index 6c70040..e0fb862 100644

tools/configure.ac AX_ARG_DEFAULT_DISABLE([rpath], [Build tools with -Wl,-rpath,LIBDIR]) · line 86

Quoted 8 lines
tools/configure.ac +1 -1
@@ -80,7 +80,7 @@ AX_ARG_DEFAULT_DISABLE([rpath], [Build tools with -Wl,-rpath,LIBDIR])
 AX_ARG_DEFAULT_DISABLE([githttp], [Download GIT repositories via HTTP])
 AX_ARG_DEFAULT_ENABLE([monitors], [Disable xenstat and xentop monitoring tools])
 AX_ARG_DEFAULT_ENABLE([ocamltools], [Disable Ocaml tools])
-AX_ARG_DEFAULT_ENABLE([xsmpolicy], [Disable XSM policy compilation])
+AX_ARG_DEFAULT_DISABLE([xsmpolicy], [Disable XSM policy compilation])
 AX_ARG_DEFAULT_DISABLE([ovmf], [Enable OVMF])
 AX_ARG_DEFAULT_ENABLE([seabios], [Disable SeaBIOS])
 

Given the support of the maintainers and committers for the proposal [1], this patch should NOT be applied.

[1]
http://lists.xenproject.org/archives/html/xen-devel/2016-01/msg01796.html

Signature · 1 line
Doug Goldstein

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel