diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-04-09 14:14:36 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-04-09 14:48:01 +0200 |
commit | 59047c572d1f8d9153a6c06fac8a866ddcf30260 (patch) | |
tree | ba687cdb78348b6682b4daa1187ed6b77da522a7 /src/basic/smack-util.c | |
parent | 262c9fba9aab686c210c69bc9a9dc63c2374ad67 (diff) |
Prep v227: Clean up various *-util.[hc] files
- src/basic/cgroup-util.[hc]
- src/basic/memfd-util.[hc]
- src/basic/path-util.[hc]
- src/basic/process-util.[hc]
- src/basic/smack-util.[hc]
Diffstat (limited to 'src/basic/smack-util.c')
-rw-r--r-- | src/basic/smack-util.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/basic/smack-util.c b/src/basic/smack-util.c index 5f570ff02..a5fd687b8 100644 --- a/src/basic/smack-util.c +++ b/src/basic/smack-util.c @@ -39,6 +39,8 @@ bool mac_smack_use(void) { return cached_use; } +/// UNNEEDED by elogind +#if 0 static const char* const smack_attr_table[_SMACK_ATTR_MAX] = { [SMACK_ATTR_ACCESS] = "security.SMACK64", [SMACK_ATTR_EXEC] = "security.SMACK64EXEC", @@ -126,6 +128,7 @@ int mac_smack_apply_pid(pid_t pid, const char *label) { return r; } +#endif // 0 int mac_smack_fix(const char *path, bool ignore_enoent, bool ignore_erofs) { struct stat st; @@ -182,6 +185,8 @@ int mac_smack_fix(const char *path, bool ignore_enoent, bool ignore_erofs) { return r; } +/// UNNEEDED by elogind +#if 0 int mac_smack_copy(const char *dest, const char *src) { int r = 0; _cleanup_free_ char *label = NULL; @@ -199,12 +204,15 @@ int mac_smack_copy(const char *dest, const char *src) { return r; } +#endif // 0 #else bool mac_smack_use(void) { return false; } +/// UNNEEDED by elogind +#if 0 int mac_smack_read(const char *path, SmackAttr attr, char **label) { return -EOPNOTSUPP; } @@ -224,12 +232,16 @@ int mac_smack_apply_fd(int fd, SmackAttr attr, const char *label) { int mac_smack_apply_pid(pid_t pid, const char *label) { return 0; } +#endif // 0 int mac_smack_fix(const char *path, bool ignore_enoent, bool ignore_erofs) { return 0; } +/// UNNEEDED by elogind +#if 0 int mac_smack_copy(const char *dest, const char *src) { return 0; } +#endif // 0 #endif |