[sudo-commits] sudo changeset 13685:46db77e4afb8
Todd C. Miller
Todd.Miller at sudo.ws
Sat Dec 11 08:57:47 MST 2021
changeset: 13685:46db77e4afb8 in /raid/repos/sudo
details: https://www.sudo.ws/repos/sudo/rev/46db77e4afb8
user: Todd C. Miller <Todd.Miller at sudo.ws>
date: Sat Dec 11 08:35:18 2021 -0700
Log Message:
Avoid TOCTOU in sudo_mkdir_parents() using openat(2) and mkdirat(2).
This also allows us to make path const as it should be.
diffstat:
MANIFEST | 1 +
config.h.in | 3 +
configure | 26 +++++++++
configure.ac | 4 +
include/sudo_compat.h | 5 +
include/sudo_util.h | 2 +-
lib/util/Makefile.in | 6 ++
lib/util/mkdir_parents.c | 120 ++++++++++++++++++++++++++++++-------------
lib/util/mkdirat.c | 61 ++++++++++++++++++++++
logsrvd/logsrvd.c | 3 +-
plugins/sudoers/timestamp.c | 2 +-
scripts/mkdep.pl | 2 +-
12 files changed, 192 insertions(+), 43 deletions(-)
More information about the sudo-commits
mailing list