summaryrefslogtreecommitdiff
path: root/src/shared/fileio-label.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-30 22:08:41 +0100
committerLennart Poettering <lennart@poettering.net>2018-12-02 13:22:29 +0100
commit686d13b9f247f4d113e93f0997b9365a3e6b264b (patch)
tree35a45766e342e2b70d6bf5cf17d3c8c7dc397983 /src/shared/fileio-label.c
parent0a2152f005f65e949e81ac05e1b81f878103a15d (diff)
downloadsystemd-686d13b9f247f4d113e93f0997b9365a3e6b264b.tar.gz
systemd-686d13b9f247f4d113e93f0997b9365a3e6b264b.tar.bz2
systemd-686d13b9f247f4d113e93f0997b9365a3e6b264b.zip
util-lib: split out env file parsing code into env-file.c
It's quite complex, let's split this out. No code changes, just some file rearranging.
Diffstat (limited to 'src/shared/fileio-label.c')
-rw-r--r--src/shared/fileio-label.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/shared/fileio-label.c b/src/shared/fileio-label.c
index 22df9c9379..49ab29720b 100644
--- a/src/shared/fileio-label.c
+++ b/src/shared/fileio-label.c
@@ -20,20 +20,6 @@ int write_string_file_atomic_label_ts(const char *fn, const char *line, struct t
return r;
}
-int write_env_file_label(const char *fname, char **l) {
- int r;
-
- r = mac_selinux_create_file_prepare(fname, S_IFREG);
- if (r < 0)
- return r;
-
- r = write_env_file(fname, l);
-
- mac_selinux_create_file_clear();
-
- return r;
-}
-
int create_shutdown_run_nologin_or_warn(void) {
int r;