From 0cb5b70fa4ef093b08e59db813e73f3be6ecef4b Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 18 May 2015 19:14:53 -0500 Subject: Switch id over to new infrastructure, switch id to use FORCE_FLAGS, and make lib/lsm.h auto-include from toys.h. --- lib/lsm.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/lsm.h') diff --git a/lib/lsm.h b/lib/lsm.h index b16138a4..660917aa 100644 --- a/lib/lsm.h +++ b/lib/lsm.h @@ -38,6 +38,14 @@ static inline int lsm_enabled(void) else return is_selinux_enabled() == 1; } +static inline char *lsm_name(void) +{ + if (CFG_TOYBOX_SMACK) return "Smack"; + if (CFG_TOYBOX_SELINUX) return "SELinux"; + + return "LSM"; +} + // Fetch this process's lsm context static inline char *lsm_context(void) { -- cgit v1.2.3