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:
parent
0c0e87fcd5
commit
5468d9af77
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue