[sudo-commits] sudo changeset 13363:447e96378d01

Todd C. Miller Todd.Miller at sudo.ws
Mon Aug 9 16:09:59 MDT 2021


changeset:	13363:447e96378d01 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/447e96378d01
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Mon Aug 09 15:50:25 2021 -0600

Log Message:
	Move preload_dso() to its own file and rename to sudo_preload_dso().
	It now takes an intercept fd as an optional argument instead of a
	list of extra variables to add.  This lets us check whether it is
	already set to the expected value (and add it if not).
	sudo_intercept.so now uses sudo_preload_dso() to make sure that
	LD_PRELOAD and SUDO_INTERCEPT_FD are set properly before executing.

diffstat:

 MANIFEST                    |    1 +
 src/Makefile.in             |   97 +++++++++++++++------
 src/exec_common.c           |  126 +---------------------------
 src/exec_preload.c          |  199 ++++++++++++++++++++++++++++++++++++++++++++
 src/sudo_exec.h             |    3 +
 src/sudo_intercept.c        |   18 +++-
 src/sudo_intercept_common.c |   15 +--
 7 files changed, 290 insertions(+), 169 deletions(-)



More information about the sudo-commits mailing list