[sudo-commits] sudo changeset 7696:d266fdb5d00e

Todd C. Miller Todd.Miller at courtesan.com
Wed Jan 25 14:58:44 EST 2012


changeset:	7696:d266fdb5d00e in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/d266fdb5d00e
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Wed Jan 25 14:58:36 2012 -0500

Log Message:
	Refactor disable_execute() and my_execve() into exec_common.c for
	use by sesh.c.  This fixes NOEXEC when SELinux is used.  Instead
	of disabling exec in exec_setup(), disable it immediately before
	executing the command.  Adapted from a diff by Arno Schuring.

diffstat:

 MANIFEST          |    1 +
 src/Makefile.in   |   21 +++++--
 src/exec.c        |   40 +++----------
 src/exec_common.c |  149 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/exec_pty.c    |   12 ++-
 src/selinux.c     |   18 ++++-
 src/sesh.c        |   47 +++++++++++++---
 src/sudo.c        |   83 +-----------------------------
 src/sudo.h        |    5 +-
 src/sudo_exec.h   |    4 +-
 10 files changed, 240 insertions(+), 140 deletions(-)



More information about the sudo-commits mailing list