Todd C. Miller
420db23714
Quiet gcc warnings on glibc systems that use warn_unused_result for
...
write(2) and others.
2010-08-03 11:17:56 -04:00
Todd C. Miller
e11e4efb8f
Do I/O logging in the C locale so the floating point numbers in the
...
timing file are not locale-dependent.
2010-07-27 09:45:20 -04:00
Todd C. Miller
23c96fbc2e
Handle ENXIO from read/write which can occur when reading/writing
...
a pty that has gone away.
2010-07-26 13:04:11 -04:00
Todd C. Miller
06a918b88f
Pass install-sh -b~ here too.
2010-07-23 11:26:18 -04:00
Todd C. Miller
092a6935e1
Install binary files with -b~ to make a backup.
...
Fixes "text file busy" error on HP-UX during install.
2010-07-23 11:23:53 -04:00
Todd C. Miller
c9e86ab3b9
The return value of strsignal() may be const and should be treated
...
as const regardless.
2010-07-21 15:57:37 -04:00
Todd C. Miller
006427345c
Restore RLIMIT_NPROC after the uid switch if it appears that runas_setup()
...
did not do it for us. Fixes a bash script problem on SuSE with RLIMIT_NPROC
set to RLIM_INFINITY.
2010-07-16 14:05:03 -04:00
Todd C. Miller
a33996e740
install-man -> install-doc
2010-07-13 08:36:19 -04:00
Todd C. Miller
7bcbce2078
Use http://rc.quest.com/topics/polypkg/ for packaging
2010-07-13 08:33:46 -04:00
Todd C. Miller
151db86e3b
Do not strip binaries.
2010-07-12 18:06:46 -04:00
Todd C. Miller
ea4298bb54
Use mkstemps() instead of mkstemp() in sudoedit. This allows sudoedit
...
to preserve the file extension (if any) which may be used by the editor
(like emacs) to choose the editing mode.
2010-07-09 10:08:05 -04:00
Todd C. Miller
3f33f75b7a
Add uninstall target
2010-07-07 11:42:36 -04:00
Todd C. Miller
17dbb33e57
Use RTLD_LAZY instead of RTLD_NOW; was using RTLD_NOW as a debugging aid.
2010-07-02 16:03:21 -04:00
Todd C. Miller
e6b48d415c
Replace built-in non-unix group support with a sudoers group plugin.
...
Include a sample plugin that can read Unix-format group files.
2010-07-02 11:11:25 -04:00
Todd C. Miller
66eafd0994
Add a trailing slash to _PATH_SUDO_PLUGIN_DIR to simplify usage.
2010-07-02 10:53:47 -04:00
Todd C. Miller
30fe4a067c
Set usrinfo for AIX
...
Set adminstrative domain for the process when looking up user's
password or group info and when preparing for execve().
Include strings.h even if string.h exists since they may define
different things. Fixes warnings on AIX and others.
2010-06-29 13:08:05 -04:00
Todd C. Miller
867ba48dbf
Add check for setkeycreatecon() when --with-selinux is specified.
2010-06-24 15:31:05 -04:00
Todd C. Miller
d018936b4e
Move functions and symbols shared between exec.c and exec_pty.c
...
into sudo_exec.h.
2010-06-16 16:46:56 -04:00
Todd C. Miller
46355186bb
Quote any non-alphanumeric characters other than '_' or '-' when passing
...
a command to be run via the shell for the -s and -i options.
2010-06-16 15:27:40 -04:00
Todd C. Miller
2cd108304d
Add Linux audit support.
2010-06-16 11:17:02 -04:00
Todd C. Miller
4fb8a83e6f
Fix -A flag when askpass is specified in sudo.conf or if sudo doesn't need
...
to read a password.
2010-06-15 15:11:10 -04:00
Todd C. Miller
f64bb67c6c
Clean up some XXXs
2010-06-15 15:01:11 -04:00
Todd C. Miller
54ffb19ccb
remove setsid check, we require a POSIX system
2010-06-15 09:24:56 -04:00
Todd C. Miller
c2f8d24f20
Check for dup2() failure.
2010-06-15 09:02:23 -04:00
Todd C. Miller
d27223b4c7
Call selinux_restore_tty() as part of cleanup() so it gets called
...
from error()/errorx()
2010-06-14 15:09:15 -04:00
Todd C. Miller
b72a530fd0
Update copyright year
2010-06-14 12:19:49 -04:00
Todd C. Miller
a28a4764e6
Print configure args with verbose version information.
2010-06-11 10:53:44 -04:00
Todd C. Miller
047fc3876d
Remove sigaction emulation
...
Use SA_INTERRUPT in sa_flags
2010-06-10 15:18:23 -04:00
Todd C. Miller
e146aaaa29
Fix visiblepw sudoers option; the plugin API portion still needs documenting
2010-06-10 15:02:32 -04:00
Todd C. Miller
879d01796c
Print sudo version as well.
2010-06-10 14:25:25 -04:00
Todd C. Miller
b91b65722b
Store askpass path in a global instead of uses setenv() which many
...
systems lack.
2010-06-10 12:03:40 -04:00
Todd C. Miller
eec336115a
Move askpass path specification from sudoers to sudo.conf.
2010-06-09 17:40:44 -04:00
Todd C. Miller
34613c8465
Use a flag bit in struct command_details for selinux instead of a separate
...
field.
2010-06-09 16:25:44 -04:00
Todd C. Miller
4c1ef12648
Implement background mode. If I/O logging we use pipes instead of a pty.
2010-06-09 16:19:45 -04:00
Todd C. Miller
c5a6ca998a
Move compat definition of NSIG to compat.h
2010-06-09 13:57:07 -04:00
Todd C. Miller
474392821e
Set _PATH_SUDO_CONF based on $(sysconfdir)
2010-06-09 12:24:37 -04:00
Todd C. Miller
e5283b2f96
Require POSIX termios to build sudo
2010-06-09 11:09:55 -04:00
Todd C. Miller
82a56e421f
Ignore SIGPIPE for "sudo -S"
2010-06-09 10:59:51 -04:00
Todd C. Miller
afb3f9dbf5
Fix uninitialized variable in TGP_ECHO case and print a newline if
...
the user interrupted password input.
2010-06-09 10:52:02 -04:00
Todd C. Miller
3e9ecaf1ec
Make TGP_ECHO override TGP_MASK and don't try to restore the terminal
...
if we didn't modify it.
2010-06-09 10:45:07 -04:00
Todd C. Miller
a4a6620b24
Add SUDO_CONV_PROMPT_MASK define which corresponds to the "pwfeedback"
...
sudoers option. Do not disable echo if TGP_ECHO is set.
2010-06-09 10:31:05 -04:00
Todd C. Miller
51f70f2040
Use POSIX tcgetpgrp() instead of BSD TIOCGPGRP ioctl
2010-06-09 09:54:58 -04:00
Todd C. Miller
edd34a2d7e
Add selinux_enabled flag into struct command_details and
...
set it in command_info_to_details().
Return an error from selinux_setup() instead of exiting.
Call selinux_setup() from exec_setup().
2010-06-08 17:59:18 -04:00
Todd C. Miller
ecfb70b056
Remove commented out copy of old sudo_execve() function.
2010-06-09 09:22:44 -04:00
Todd C. Miller
79f178923e
Replace timerfoo macros with timevalfoo since the timer macros are known
...
to be busted on some systems.
2010-06-08 18:38:23 -04:00
Todd C. Miller
0be6bab05c
Remove duplicate call to selinux_setup().
2010-06-08 16:16:08 -04:00
Todd C. Miller
6717c59d77
Split exec.c into exec.c and exec_pty.c
2010-06-07 18:06:22 -04:00
Todd C. Miller
d6e7face2b
Rename pty.c -> get_pty.c
2010-06-07 11:13:03 -04:00
Todd C. Miller
5aa2c7dcc6
uid -> ttyuid
2010-06-04 14:20:03 -04:00
Todd C. Miller
e3ac18f510
Remove unneeded endpwent()/endgrent()
2010-06-04 12:11:02 -04:00