mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
tmpfiles: ignore files marked with the sticky bit
This commit is contained in:
parent
f90cf44c02
commit
9c73736da8
2
TODO
2
TODO
@ -78,8 +78,6 @@
|
|||||||
|
|
||||||
* in the PAM module rely on loginuid to figure out XDG_RUNTIME_DIR
|
* in the PAM module rely on loginuid to figure out XDG_RUNTIME_DIR
|
||||||
|
|
||||||
* tmpfiles: skip sticky files and after wallclock time change
|
|
||||||
|
|
||||||
Pre v12:
|
Pre v12:
|
||||||
|
|
||||||
* fsck-root.service/start gets queued twice
|
* fsck-root.service/start gets queued twice
|
||||||
|
@ -182,6 +182,13 @@ static int dir_cleanup(
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
/* Skip files for which the sticky bit is
|
||||||
|
* set. These are semantics we define, and are
|
||||||
|
* unknown elsewhere. See XDG_RUNTIME_DIR
|
||||||
|
* specification for details. */
|
||||||
|
if (s.st_mode & S_ISVTX)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (mountpoint) {
|
if (mountpoint) {
|
||||||
if (streq(dent->d_name, ".journal") &&
|
if (streq(dent->d_name, ".journal") &&
|
||||||
s.st_uid == 0)
|
s.st_uid == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user