[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] xsm: Reduce compiler command line clutter
commit 98bef9974d9b39fbb7d052c50db950435f0b2513 Author: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx> AuthorDate: Mon Mar 24 10:54:27 2014 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Mon Mar 24 10:54:27 2014 +0100 xsm: Reduce compiler command line clutter Move the preprocessor definitions for all FLASK parameters other than the enable flag off the compiler command line and into config.h, which is the preferred location for such definitions. Signed-off-by: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Keir Fraser <keir@xxxxxxx> --- xen/Rules.mk | 3 +-- xen/include/xen/config.h | 10 ++++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/xen/Rules.mk b/xen/Rules.mk index 3a6cec5..42c713f 100644 --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -47,8 +47,7 @@ CFLAGS += -pipe -g -D__XEN__ -include $(BASEDIR)/include/xen/config.h CFLAGS += -nostdinc CFLAGS-$(XSM_ENABLE) += -DXSM_ENABLE -CFLAGS-$(FLASK_ENABLE) += -DFLASK_ENABLE -DXSM_MAGIC=0xf97cff8c -CFLAGS-$(FLASK_ENABLE) += -DFLASK_DEVELOP -DFLASK_BOOTPARAM -DFLASK_AVC_STATS +CFLAGS-$(FLASK_ENABLE) += -DFLASK_ENABLE CFLAGS-$(verbose) += -DVERBOSE CFLAGS-$(crash_debug) += -DCRASH_DEBUG CFLAGS-$(perfc) += -DPERF_COUNTERS diff --git a/xen/include/xen/config.h b/xen/include/xen/config.h index 8bae6e6..7bef8a6 100644 --- a/xen/include/xen/config.h +++ b/xen/include/xen/config.h @@ -98,4 +98,14 @@ #define __cpuinitdata #define __cpuinit +#ifdef FLASK_ENABLE +#define XSM_MAGIC 0xf97cff8c +/* Enable permissive mode (xl setenforce or flask_enforcing parameter) */ +#define FLASK_DEVELOP 1 +/* Allow runtime disabling of FLASK via the flask_enable parameter */ +#define FLASK_BOOTPARAM 1 +/* Maintain statistics on the access vector cache */ +#define FLASK_AVC_STATS 1 +#endif + #endif /* __XEN_CONFIG_H__ */ -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |