Todd C. Miller
cf7ec7a3cc
Fix typo; tupple vs. tuple
2011-03-15 15:52:18 -04:00
Todd C. Miller
07968755aa
For legacy utmp, strip the /dev/ prefix before trying to determine
...
slot since the ttys file does not include the /dev/ prefix.
2011-03-15 15:51:44 -04:00
Todd C. Miller
5e6bc4017b
Add check for _PATH_UTMP
2011-03-15 11:56:49 -04:00
Todd C. Miller
bf5f17bd63
Adapt check_iolog_path to sessid changes
2011-03-14 11:30:32 -04:00
Todd C. Miller
8653ccc809
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.
2011-03-14 10:20:47 -04:00
Todd C. Miller
1e9def1efa
Move utmp handling into utmp.c
2011-03-11 15:54:12 -05:00
Todd C. Miller
53da5e8cdf
Update copyright years.
2011-03-11 15:34:35 -05:00
Todd C. Miller
cde2cb00f0
Add "user_shell" boolean as a way to indicate to the plugin that
...
the -s flag was given.
2011-03-11 15:02:13 -05:00
Todd C. Miller
6e2778eb22
Move sessid out of sudo_user.
2011-03-11 14:07:26 -05:00
Todd C. Miller
383aef00b1
Log the TSID even if it is not a simple session ID.
2011-03-11 12:11:05 -05:00
Todd C. Miller
9660f08e32
Document noexec in sample.sudo.conf and add back noexec_file section
...
in sudoers with a note that it is deprecated.
2011-03-11 11:34:11 -05:00
Todd C. Miller
6bea3f524e
Fix running commands as non-root on systems where setreuid() changes
...
the saved uid based on the effective uid we are changing to.
2011-03-11 10:48:12 -05:00
Todd C. Miller
7debf44742
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.
2011-03-10 16:12:33 -05:00
Todd C. Miller
dc8012265f
Document "Path noexec ..." in sudo.conf.
...
No longer document noexec_file in sudoers, it will be removed in a future
release.
2011-03-10 16:06:16 -05:00
Todd C. Miller
a092d2fdcf
Move noexec handling to sudo front-end where it is documented as being.
2011-03-10 15:11:49 -05:00
Todd C. Miller
c7a7d31905
Add support for disabling exec via solaris privileges.
...
Includes preparation for moving noexec support out of sudoers
and into front end as documented.
2011-03-10 14:24:10 -05:00
Todd C. Miller
7599034e69
Only export the symbols corresponding to the plugin structs.
2011-03-10 12:12:14 -05:00
Todd C. Miller
498248d1f0
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.
2011-03-10 10:57:56 -05:00
Todd C. Miller
c6f0c59bc6
Move check into its own rule since some versions of make will run
...
both targets as the default rule.
2011-03-10 10:32:23 -05:00
Todd C. Miller
62edd57ab7
Update to libtool 2.2.10
2011-03-10 10:31:27 -05:00
Todd C. Miller
caefd1abdc
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.
2011-03-09 11:28:51 -05:00
Todd C. Miller
da24fe8c3b
Reorder functions to quiet a compiler warning.
2011-03-09 11:22:34 -05:00
Todd C. Miller
1c633bb2bb
Use the Sun Studio C compiler on Solaris if possible
2011-03-09 11:22:09 -05:00
Todd C. Miller
206f5ff313
Fix default setting of osversion variable.
2011-03-08 16:09:48 -05:00
Todd C. Miller
32cfe08a12
Make two login_class entris consistent.
2011-03-08 15:38:06 -05:00
Todd C. Miller
1496bfed6c
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.
2011-03-08 15:37:40 -05:00
Todd C. Miller
9c9c0223e6
Avoid pulling in headers we don't need on Linux
...
For getutx?id(), call setutx?ent() first and always call endutx?ent().
2011-03-08 15:34:34 -05:00
Todd C. Miller
2241947b38
Add some more libs to SUDOERS_LIBS instead of relying on them to be
...
pulled in by SUDO_LIBS.
2011-03-08 09:46:35 -05:00
Todd C. Miller
d6252de205
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.
2011-03-08 09:38:21 -05:00
Todd C. Miller
47968912a2
Fix passing of login class back to sudo front end.
2011-03-07 16:55:08 -05:00
Todd C. Miller
7e10987348
Add --osversion flag to specify OS instead of running "pp --probeonly"
2011-03-07 10:34:47 -05:00
Todd C. Miller
b54425e041
Fix expr usage w/ GNU expr
2011-03-07 10:08:21 -05:00
Todd C. Miller
e65bc35c6d
Fix exit value for validate and list mode.
2011-03-06 15:52:40 -05:00
Todd C. Miller
a0ba308694
Fix non-interactive mode with sudoers plugin.
2011-03-06 15:38:02 -05:00
Todd C. Miller
6968367cb1
sudoreplay can now find IDs other than %{seq} and display the session.
2011-03-05 15:34:30 -05:00
Todd C. Miller
85e8e584ae
Add support for replaying sessions when iolog_file is set to something
...
other than %{seq}.
2011-03-04 20:10:44 -05:00
Todd C. Miller
f5e356ed40
If we are killed by a signal, display the name of the signal that got us.
2011-03-04 16:12:40 -05:00
Todd C. Miller
3cc46dd70a
Move libs used for authentication from SUDO_LIBS to SUDOERS_LIBS
...
where they belong.
2011-03-04 08:26:48 -05:00
Todd C. Miller
06a39eefb9
Fix bug in skey/opie check that could cause a shell warning.
2011-03-04 08:22:35 -05:00
Todd C. Miller
95512ae05e
No longer need sudo_getepw() stubs.
2011-03-04 08:08:22 -05:00
Todd C. Miller
8ee8a0d87a
Fix exit value of "sudo -l command" in sudoers module.
2011-03-03 09:38:15 -05:00
Todd C. Miller
ca86faac93
Use fgets() not fgetln() for portability.
2011-03-02 12:39:11 -05:00
Todd C. Miller
9d7a12e752
Don't use the beta or release candidate version as the rpm release.
2011-03-02 12:28:05 -05:00
Todd C. Miller
4333b06914
version 1.8.0
2011-02-25 14:57:18 -05:00
Todd C. Miller
c30fecb830
update sudo 1.8 section
2011-02-25 13:39:28 -05:00
Todd C. Miller
4688f1ce60
fix test description
2011-02-23 15:39:24 -05:00
Todd C. Miller
a64bd36b33
convert test2 to use testsudoers
2011-02-23 15:26:13 -05:00
Todd C. Miller
e558b79e85
Move struct generic_plugin to sudo_plugin_int.h
2011-02-23 15:12:04 -05:00
Todd C. Miller
3c0672e2e3
Allow sudoers file name, mode, uid and gid to be specified in the
...
settings list. The sudo front end does not currently set these
but may in the future.
2011-02-23 13:38:52 -05:00
Todd C. Miller
74c4252c1b
1.8.0rc1
2011-02-21 13:36:24 -05:00