diff options
author | WaLyong Cho <walyong.cho@samsung.com> | 2014-10-23 10:23:46 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-10-23 17:13:15 +0200 |
commit | cc56fafeebf814ef035e549115cf1850e6473fa5 (patch) | |
tree | 7bc8ec26fb250eb21180cdcd30bdc9072a0ac132 /src/shared/fileio-label.c | |
parent | label: rearrange mandatory access control(MAC) apis (diff) | |
download | systemd-cc56fafeebf814ef035e549115cf1850e6473fa5.tar.xz systemd-cc56fafeebf814ef035e549115cf1850e6473fa5.zip |
mac: rename apis with mac_{selinux/smack}_ prefix
Diffstat (limited to 'src/shared/fileio-label.c')
-rw-r--r-- | src/shared/fileio-label.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/shared/fileio-label.c b/src/shared/fileio-label.c index d5ce24c0d9..b117c32cf2 100644 --- a/src/shared/fileio-label.c +++ b/src/shared/fileio-label.c @@ -30,13 +30,13 @@ int write_string_file_atomic_label(const char *fn, const char *line) { int r; - r = label_context_set(fn, S_IFREG); + r = mac_selinux_context_set(fn, S_IFREG); if (r < 0) return r; r = write_string_file_atomic(fn, line); - label_context_clear(); + mac_selinux_context_clear(); return r; } @@ -44,13 +44,13 @@ int write_string_file_atomic_label(const char *fn, const char *line) { int write_env_file_label(const char *fname, char **l) { int r; - r = label_context_set(fname, S_IFREG); + r = mac_selinux_context_set(fname, S_IFREG); if (r < 0) return r; r = write_env_file(fname, l); - label_context_clear(); + mac_selinux_context_clear(); return r; } @@ -59,13 +59,13 @@ int fopen_temporary_label(const char *target, const char *path, FILE **f, char **temp_path) { int r; - r = label_context_set(target, S_IFREG); + r = mac_selinux_context_set(target, S_IFREG); if (r < 0) return r; r = fopen_temporary(path, f, temp_path); - label_context_clear(); + mac_selinux_context_clear(); return r; } |