summaryrefslogtreecommitdiff
path: root/src/random-seed
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-03-07 15:06:37 +0100
committerLennart Poettering <lennart@poettering.net>2019-03-07 15:10:06 +0100
commit5468d9af7740e7e748bfa1892fdbcb915c601bc1 (patch)
tree2d04c143bbf67b01698981828f8d9385eacbae43 /src/random-seed
parent0c0e87fcd5cb02173290a1554073d51879374ff9 (diff)
downloadsystemd-5468d9af7740e7e748bfa1892fdbcb915c601bc1.tar.gz
random-seed: don't use "label" version of mkdir_parents()
We don't load the selinux label database anyway, hence this is not going to do anything at all. Let's simplify this hence and drop the explicit request. Also note that today SELinux can take the filename into account when automatically deducing the label for a new file, hence even if this code actually would have done something it is redundant today.
Diffstat (limited to 'src/random-seed')
-rw-r--r--src/random-seed/random-seed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/random-seed/random-seed.c b/src/random-seed/random-seed.c
index 0c5f329756..71c2dba431 100644
--- a/src/random-seed/random-seed.c
+++ b/src/random-seed/random-seed.c
@@ -51,7 +51,7 @@ static int run(int argc, char *argv[]) {
if (buf_size < POOL_SIZE_MIN)
buf_size = POOL_SIZE_MIN;
- r = mkdir_parents_label(RANDOM_SEED, 0755);
+ r = mkdir_parents(RANDOM_SEED, 0755);
if (r < 0)
return log_error_errno(r, "Failed to create directory " RANDOM_SEED_DIR ": %m");