Todd C. Miller [Fri, 18 Mar 2011 14:05:25 +0000 (10:05 -0400)]
Save the controlling tty process group before suspending in pty
mode. Previously, we assumed that the child pgrp == child pid
(which is usually, but not always, the case).
Todd C. Miller [Fri, 18 Mar 2011 14:04:50 +0000 (10:04 -0400)]
Save the controlling tty process group before suspending in pty
mode. Previously, we assumed that the child pgrp == child pid
(which is usually, but not always, the case).
Todd C. Miller [Thu, 17 Mar 2011 20:39:10 +0000 (16:39 -0400)]
We normaly transition from GOTDEFS to STARTDEFS on whitespace, but
if that whitespace is followed by a comma, we want to treat it as
part of a list and not transition.
Todd C. Miller [Thu, 17 Mar 2011 20:36:13 +0000 (16:36 -0400)]
We normaly transition from GOTDEFS to STARTDEFS on whitespace, but
if that whitespace is followed by a comma, we want to treat it as
part of a list and not transition.
Todd C. Miller [Wed, 16 Mar 2011 17:45:26 +0000 (13:45 -0400)]
Save the controlling tty process group before suspending so we can
restore it when we resume. Fixes job control problems on Linux
caused by the previous attemp to fix resuming a shell when I/O
logging not enabled.
Todd C. Miller [Wed, 16 Mar 2011 17:43:11 +0000 (13:43 -0400)]
Redo utmp handling. If no getutent()/getutxent() is available,
assume a ttyslot-based utmp. If getttyent() is available, use
that directly instead of ttyslot() so we don't have to do the
stdin dup2 dance.
Todd C. Miller [Wed, 16 Mar 2011 16:02:04 +0000 (12:02 -0400)]
Save the controlling tty process group before suspending so we can
restore it when we resume. Fixes job control problems on Linux
caused by the previous attemp to fix resuming a shell when I/O
logging not enabled.
Todd C. Miller [Mon, 14 Mar 2011 14:20:47 +0000 (10:20 -0400)]
Redo utmp handling. If no getutent()/getutxent() is available,
assume a ttyslot-based utmp. If getttyent() is available, use
that directly instead of ttyslot() so we don't have to do the
stdin dup2 dance.
Todd C. Miller [Thu, 10 Mar 2011 21:14:24 +0000 (16:14 -0500)]
Move noexec path into sudo.conf now that sudo itself handles noexec.
Currently can be configured in sudoers too but is now undocumented
and will be removed in a future release.
Todd C. Miller [Thu, 10 Mar 2011 21:12:33 +0000 (16:12 -0500)]
Move noexec path into sudo.conf now that sudo itself handles noexec.
Currently can be configured in sudoers too but is now undocumented
and will be removed in a future release.
Todd C. Miller [Thu, 10 Mar 2011 16:00:11 +0000 (11:00 -0500)]
Install plugins manually instead of using libtool. This works
around a problem on AIX where libtool will install a .a file
containing the .so file instead of the .so file itself.
Todd C. Miller [Thu, 10 Mar 2011 15:59:27 +0000 (10:59 -0500)]
In handle_signals(), restart the read() on EINTR to make sure we keep up
with the signal pipe. Don't return -1 on EAGAIN, it just means we have
emptied the pipe.
Todd C. Miller [Thu, 10 Mar 2011 15:57:56 +0000 (10:57 -0500)]
Install plugins manually instead of using libtool. This works
around a problem on AIX where libtool will install a .a file
containing the .so file instead of the .so file itself.
Todd C. Miller [Wed, 9 Mar 2011 16:28:51 +0000 (11:28 -0500)]
In handle_signals(), restart the read() on EINTR to make sure we keep up
with the signal pipe. Don't return -1 on EAGAIN, it just means we have
emptied the pipe.
Todd C. Miller [Tue, 8 Mar 2011 20:58:20 +0000 (15:58 -0500)]
Add support for adding a utmp entry when allocating a new pty.
Requires the BSD login(3) or SYSV/POSIX getutent()/getutxent().
Currently only creates a new entry if the existing tty has
a utmp entry.
Todd C. Miller [Tue, 8 Mar 2011 20:37:40 +0000 (15:37 -0500)]
Add support for adding a utmp entry when allocating a new pty.
Requires the BSD login(3) or SYSV/POSIX getutent()/getutxent().
Currently only creates a new entry if the existing tty has
a utmp entry.
Todd C. Miller [Tue, 8 Mar 2011 14:39:12 +0000 (09:39 -0500)]
Fix return value of "sudo -l command" when command is not allowed, broken
in [c7097ea22111]. The default return value is now TRUE and a bad:
label is used when permission is denied. Also fixed missing permissions
restoration on certain errors. On error()/errorx(), the password and
group files are now closed before returning.
Todd C. Miller [Tue, 8 Mar 2011 14:38:21 +0000 (09:38 -0500)]
Fix return value of "sudo -l command" when command is not allowed, broken
in [c7097ea22111]. The default return value is now TRUE and a bad:
label is used when permission is denied. Also fixed missing permissions
restoration on certain errors. On error()/errorx(), the password and
group files are now closed before returning.