summaryrefslogtreecommitdiff
path: root/src/basic/replace-var.c
diff options
context:
space:
mode:
authorMantas Mikulėnas <grawity@gmail.com>2016-01-29 23:36:08 +0200
committerMantas Mikulėnas <grawity@gmail.com>2016-01-29 23:41:09 +0200
commit06eeacb6fe029804f296b065b3ce91e796e1cd0e (patch)
treea8e169f11350d4c34338c142f92e8d45bc95313d /src/basic/replace-var.c
parent7d82cd4d53f88402edc923f5020c9ad22f9dc154 (diff)
basic: fix touch() creating files with 07777 mode
mode_t is unsigned, so MODE_INVALID < 0 can never be true. This fixes a possible DoS where any user could fill /run by writing to a world-writable /run/systemd/show-status.
Diffstat (limited to 'src/basic/replace-var.c')
0 files changed, 0 insertions, 0 deletions