From 5468d9af7740e7e748bfa1892fdbcb915c601bc1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 7 Mar 2019 15:06:37 +0100 Subject: [PATCH] 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. --- src/random-seed/random-seed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");