]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/fileio-label.c
util-lib: split out all temporary file related calls into tmpfiles-util.c
[thirdparty/systemd.git] / src / shared / fileio-label.c
index b5362b5cbc7c53621a0515da23883842b982924f..22df9c937905fa4e8315e238108a3e50bc5e3cf6 100644 (file)
@@ -34,21 +34,6 @@ int write_env_file_label(const char *fname, char **l) {
         return r;
 }
 
-int fopen_temporary_label(const char *target,
-                          const char *path, FILE **f, char **temp_path) {
-        int r;
-
-        r = mac_selinux_create_file_prepare(target, S_IFREG);
-        if (r < 0)
-                return r;
-
-        r = fopen_temporary(path, f, temp_path);
-
-        mac_selinux_create_file_clear();
-
-        return r;
-}
-
 int create_shutdown_run_nologin_or_warn(void) {
         int r;