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.
This commit is contained in:
Lennart Poettering 2019-03-07 15:06:37 +01:00
parent 0c0e87fcd5
commit 5468d9af77
1 changed files with 1 additions and 1 deletions

View File

@ -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");