summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-10-07 11:37:21 +0200
committerDaniel Mack <github@zonque.org>2015-10-07 11:37:21 +0200
commit42911a567dc22c3115fb3ee3c56a7dcfb034f102 (patch)
tree2639f32dbe2a77df2e137540035c15897a77922d /src/basic
parent064d3eb5a5f109dfcaa5d4bf31dae30030dad41b (diff)
parentc02e7b1ecc7d88f6529ca3d1d231536300991a02 (diff)
Merge pull request #1481 from again4you/devel/smack_sysuser_#4
smack: label /etc/passwd and friends as '_' smack label when --with-smack-run-label' is enabled (v3)
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/smack-util.c3
-rw-r--r--src/basic/smack-util.h3
2 files changed, 3 insertions, 3 deletions
diff --git a/src/basic/smack-util.c b/src/basic/smack-util.c
index 9e221d6eab..5f570ff02a 100644
--- a/src/basic/smack-util.c
+++ b/src/basic/smack-util.c
@@ -29,9 +29,6 @@
#include "fileio.h"
#include "smack-util.h"
-#define SMACK_FLOOR_LABEL "_"
-#define SMACK_STAR_LABEL "*"
-
#ifdef HAVE_SMACK
bool mac_smack_use(void) {
static int cached_use = -1;
diff --git a/src/basic/smack-util.h b/src/basic/smack-util.h
index b3aa55eb8a..e756dc8c28 100644
--- a/src/basic/smack-util.h
+++ b/src/basic/smack-util.h
@@ -27,6 +27,9 @@
#include "macro.h"
+#define SMACK_FLOOR_LABEL "_"
+#define SMACK_STAR_LABEL "*"
+
typedef enum SmackAttr {
SMACK_ATTR_ACCESS = 0,
SMACK_ATTR_EXEC = 1,