summaryrefslogtreecommitdiffstats
path: root/src/update-done
diff options
context:
space:
mode:
authorgerblesh <101901964+gerblesh@users.noreply.github.com>2024-11-14 20:12:40 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2024-11-26 18:47:32 +0100
commitbbec1c87d3bf8d14eeb1ee3b4df973a53cca2e58 (patch)
tree4fcefea41104f03c3364449d98b63e6d1c1462f6 /src/update-done
parentman: several more assorted fixes (diff)
downloadsystemd-bbec1c87d3bf8d14eeb1ee3b4df973a53cca2e58.tar.xz
systemd-bbec1c87d3bf8d14eeb1ee3b4df973a53cca2e58.zip
sysext: set SELinux context for hierarchies and workdir
Diffstat (limited to 'src/update-done')
-rw-r--r--src/update-done/update-done.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/update-done/update-done.c b/src/update-done/update-done.c
index 277d2860b9..fdfbb7b52e 100644
--- a/src/update-done/update-done.c
+++ b/src/update-done/update-done.c
@@ -29,7 +29,7 @@ static int apply_timestamp(const char *path, struct timespec *ts) {
timespec_load_nsec(ts)) < 0)
return log_oom();
- r = write_string_file_full(AT_FDCWD, path, message, WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_ATOMIC|WRITE_STRING_FILE_LABEL, ts);
+ r = write_string_file_full(AT_FDCWD, path, message, WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_ATOMIC|WRITE_STRING_FILE_LABEL, ts, NULL);
if (r == -EROFS)
log_debug_errno(r, "Cannot create \"%s\", file system is read-only.", path);
else if (r < 0)