summaryrefslogtreecommitdiff
path: root/src/core/selinux-access.h
diff options
context:
space:
mode:
authorWaLyong Cho <walyong.cho@samsung.com>2014-10-24 21:15:25 +0900
committerLennart Poettering <lennart@poettering.net>2014-10-28 14:31:48 +0100
commit8a188de9e0ea41509beda12084126d7a75ebe86e (patch)
treeb1f87ef531c84ac6f4db82c421db4aa3b8b22d03 /src/core/selinux-access.h
parent07788ab9d89db17a11ebfced35d2fad663cd180d (diff)
mac: add mac_ prefix to distinguish origin security apis
Diffstat (limited to 'src/core/selinux-access.h')
-rw-r--r--src/core/selinux-access.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/selinux-access.h b/src/core/selinux-access.h
index 6a4362a73c..bccf0d2913 100644
--- a/src/core/selinux-access.h
+++ b/src/core/selinux-access.h
@@ -26,26 +26,26 @@
#include "bus-util.h"
#include "manager.h"
-void selinux_access_free(void);
+void mac_selinux_access_free(void);
-int selinux_generic_access_check(sd_bus_message *message, const char *path, const char *permission, sd_bus_error *error);
+int mac_selinux_generic_access_check(sd_bus_message *message, const char *path, const char *permission, sd_bus_error *error);
-int selinux_unit_access_check_strv(char **units, sd_bus_message *message, Manager *m, const char *permission, sd_bus_error *error);
+int mac_selinux_unit_access_check_strv(char **units, sd_bus_message *message, Manager *m, const char *permission, sd_bus_error *error);
#ifdef HAVE_SELINUX
-#define selinux_access_check(message, permission, error) \
- selinux_generic_access_check((message), NULL, (permission), (error))
+#define mac_selinux_access_check(message, permission, error) \
+ mac_selinux_generic_access_check((message), NULL, (permission), (error))
-#define selinux_unit_access_check(unit, message, permission, error) \
+#define mac_selinux_unit_access_check(unit, message, permission, error) \
({ \
Unit *_unit = (unit); \
- selinux_generic_access_check((message), _unit->fragment_path ?: _unit->fragment_path, (permission), (error)); \
+ mac_selinux_generic_access_check((message), _unit->fragment_path ?: _unit->fragment_path, (permission), (error)); \
})
#else
-#define selinux_access_check(message, permission, error) 0
-#define selinux_unit_access_check(unit, message, permission, error) 0
+#define mac_selinux_access_check(message, permission, error) 0
+#define mac_selinux_unit_access_check(unit, message, permission, error) 0
#endif