1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

tmpfiles: create with correct MAC label on option C

Closes: #10855
This commit is contained in:
Christian Göttsche 2019-11-28 12:18:04 +01:00
parent aeec5efab5
commit 80e7c84081

View File

@ -1460,7 +1460,7 @@ static int copy_files(Item *i) {
dfd, bn,
i->uid_set ? i->uid : UID_INVALID,
i->gid_set ? i->gid : GID_INVALID,
COPY_REFLINK | COPY_MERGE_EMPTY);
COPY_REFLINK | COPY_MERGE_EMPTY | COPY_MAC_CREATE);
if (r < 0) {
struct stat a, b;