diff options
author | WaLyong Cho <walyong.cho@samsung.com> | 2014-10-24 14:15:25 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-10-28 14:31:48 +0100 |
commit | 8a188de9e0ea41509beda12084126d7a75ebe86e (patch) | |
tree | b1f87ef531c84ac6f4db82c421db4aa3b8b22d03 /src/core/selinux-access.h | |
parent | update TODO (diff) | |
download | systemd-8a188de9e0ea41509beda12084126d7a75ebe86e.tar.xz systemd-8a188de9e0ea41509beda12084126d7a75ebe86e.zip |
mac: add mac_ prefix to distinguish origin security apis
Diffstat (limited to 'src/core/selinux-access.h')
-rw-r--r-- | src/core/selinux-access.h | 18 |
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 |