X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbasic%2Fsmack-util.c;h=9bcc4a3a200171f9a6f36367ebc99b52959977f3;hb=2ed028df72f5995acfbeca89db3f056d0e83cac1;hp=a8f29acfa34ce132f1f5edc4d36275b08abb1ca4;hpb=eaca07ccfdf5d7dabc50afc7e539c2413dd69d3e;p=elogind.git
diff --git a/src/basic/smack-util.c b/src/basic/smack-util.c
index a8f29acfa..9bcc4a3a2 100644
--- a/src/basic/smack-util.c
+++ b/src/basic/smack-util.c
@@ -1,5 +1,3 @@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
/***
This file is part of systemd.
@@ -21,15 +19,20 @@
along with systemd; If not, see .
***/
+#include
+#include
+#include
#include
+#include
#include "alloc-util.h"
#include "fileio.h"
+#include "log.h"
+#include "macro.h"
#include "path-util.h"
#include "process-util.h"
#include "smack-util.h"
#include "string-table.h"
-#include "util.h"
#include "xattr-util.h"
#ifdef HAVE_SMACK
@@ -42,8 +45,7 @@ bool mac_smack_use(void) {
return cached_use;
}
-/// UNNEEDED by elogind
-#if 0
+#if 0 /// UNNEEDED by elogind
static const char* const smack_attr_table[_SMACK_ATTR_MAX] = {
[SMACK_ATTR_ACCESS] = "security.SMACK64",
[SMACK_ATTR_EXEC] = "security.SMACK64EXEC",
@@ -188,8 +190,7 @@ int mac_smack_fix(const char *path, bool ignore_enoent, bool ignore_erofs) {
return r;
}
-/// UNNEEDED by elogind
-#if 0
+#if 0 /// UNNEEDED by elogind
int mac_smack_copy(const char *dest, const char *src) {
int r = 0;
_cleanup_free_ char *label = NULL;
@@ -214,8 +215,7 @@ bool mac_smack_use(void) {
return false;
}
-/// UNNEEDED by elogind
-#if 0
+#if 0 /// UNNEEDED by elogind
int mac_smack_read(const char *path, SmackAttr attr, char **label) {
return -EOPNOTSUPP;
}
@@ -241,8 +241,7 @@ int mac_smack_fix(const char *path, bool ignore_enoent, bool ignore_erofs) {
return 0;
}
-/// UNNEEDED by elogind
-#if 0
+#if 0 /// UNNEEDED by elogind
int mac_smack_copy(const char *dest, const char *src) {
return 0;
}