[sudo-commits] sudo changeset 7695:ec4d8b53db6b
Todd C. Miller
Todd.Miller at courtesan.com
Wed Jan 25 14:58:10 EST 2012
changeset: 7695:ec4d8b53db6b in /home/hg/sudo
details: http://www.sudo.ws/repos/sudo/rev/ec4d8b53db6b
user: Todd C. Miller <Todd.Miller at courtesan.com>
date: Wed Jan 25 14:58:02 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