diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-10-23 19:41:27 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-10-23 21:36:56 +0200 |
commit | ecabcf8b6edcc856ec2fd5bd43fc675a8fe04731 (patch) | |
tree | a4c8b9165495bbec27bdec4bf8ad6c3976948f1a /src/shared/fileio-label.c | |
parent | 66cedb3078ebe78174efd51673632eb3bfb9be61 (diff) |
selinux: clean up selinux label function naming
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 b117c32cf2..294c9e6bad 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 = mac_selinux_context_set(fn, S_IFREG); + r = mac_selinux_create_file_prepare(fn, S_IFREG); if (r < 0) return r; r = write_string_file_atomic(fn, line); - mac_selinux_context_clear(); + mac_selinux_create_file_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 = mac_selinux_context_set(fname, S_IFREG); + r = mac_selinux_create_file_prepare(fname, S_IFREG); if (r < 0) return r; r = write_env_file(fname, l); - mac_selinux_context_clear(); + mac_selinux_create_file_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 = mac_selinux_context_set(target, S_IFREG); + r = mac_selinux_create_file_prepare(target, S_IFREG); if (r < 0) return r; r = fopen_temporary(path, f, temp_path); - mac_selinux_context_clear(); + mac_selinux_create_file_clear(); return r; } |