summaryrefslogtreecommitdiff
path: root/src/basic/fileio.h
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2020-05-22 20:30:24 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2020-05-27 18:54:25 +0200
commit494735f3d067bdeb97a5a98d09f9e2c4af705272 (patch)
tree22d4b0cf02f2227589243d259f67457fbbec7d43 /src/basic/fileio.h
parent1fbc95d3881390e0e86af07e9c9fece32377535d (diff)
downloadsystemd-494735f3d067bdeb97a5a98d09f9e2c4af705272.tar.gz
sysusers: Move sync_rights and rename_and_apply_smack to basic
Diffstat (limited to 'src/basic/fileio.h')
-rw-r--r--src/basic/fileio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/basic/fileio.h b/src/basic/fileio.h
index e6062121a3..9dc3f18796 100644
--- a/src/basic/fileio.h
+++ b/src/basic/fileio.h
@@ -106,3 +106,7 @@ static inline int read_nul_string(FILE *f, size_t limit, char **ret) {
int safe_fgetc(FILE *f, char *ret);
int warn_file_is_world_accessible(const char *filename, struct stat *st, const char *unit, unsigned line);
+
+int sync_rights(FILE *from, const char *to);
+
+int rename_and_apply_smack(const char *temp_path, const char *dest_path);