Commit Graph

80 Commits

Author SHA1 Message Date
Todd C. Miller
e87d5f8450 sync 2008-03-06 17:29:18 +00:00
Todd C. Miller
40fb31c0a5 sync 2008-01-21 15:02:46 +00:00
Todd C. Miller
9909106656 sync 2008-01-05 23:59:50 +00:00
Todd C. Miller
915fc493cf add sudo_nss.h to HDRS 2008-01-02 15:09:20 +00:00
Todd C. Miller
f738ef46fa sync 2008-01-01 22:07:16 +00:00
Todd C. Miller
d7090332e5 sync 2007-12-19 21:40:47 +00:00
Todd C. Miller
3e7a467e81 sync 2007-12-08 00:17:21 +00:00
Todd C. Miller
4f5e88532f PAM wants the full tty path so add user_ttypath which holds the
full path to the tty or is NULL if no tty was present.
2007-09-13 23:05:34 +00:00
Todd C. Miller
6e05465b97 sync 2007-09-05 22:48:23 +00:00
Todd C. Miller
641f34e302 sync 2007-07-20 00:23:51 +00:00
Todd C. Miller
b7927b2b34 udpate to reality 2007-07-08 14:27:40 +00:00
Todd C. Miller
e05905dd16 checkpoint 2004-12-17 18:12:20 +00:00
Todd C. Miller
0e71bf81ac sync 2004-11-17 19:09:21 +00:00
Todd C. Miller
cfbf7768ff sync 2004-11-16 21:10:22 +00:00
Todd C. Miller
b1d7ccde4f sync 2004-10-26 22:29:08 +00:00
Todd C. Miller
9c15884b29 sync 2004-09-30 17:58:36 +00:00
Todd C. Miller
f30ab72c44 Add cmnd_base to struct sudo_user and set it in init_vars().
Add cmnd_stat to struct sudo_user and set it in sudo_goodpath().
No longer use gross statics in command_matches().
Also rename some variables for improved clarity.
2004-08-24 18:01:14 +00:00
Todd C. Miller
0c0dcf2e32 sync 2004-08-17 20:21:58 +00:00
Todd C. Miller
8013ece9b9 Add checksum idea from Steve Mancini 2004-08-06 23:33:05 +00:00
Todd C. Miller
e2bc02a1de Some more todo for the next release. 2004-08-06 01:14:00 +00:00
Todd C. Miller
bf8eb4bcaf sync 2004-06-08 20:20:22 +00:00
Todd C. Miller
034ae50b87 sync 2004-05-17 22:31:54 +00:00
Todd C. Miller
e938290a22 checkpoint 2004-02-13 21:37:13 +00:00
Todd C. Miller
926d3f5b5e sync 2004-01-30 00:42:58 +00:00
Todd C. Miller
45fe0a6cc6 checkpoint 2003-12-30 20:55:17 +00:00
Todd C. Miller
d529fea7bb checkpoint for the sudo 1.6.7 release 2003-03-31 00:02:10 +00:00
Todd C. Miller
8536699843 Sync with 1.6.6 2002-04-25 15:31:58 +00:00
Todd C. Miller
ea2bfc5fd6 checkpoint for sudo 1.6.5 2002-01-17 00:53:58 +00:00
Todd C. Miller
fdae7ed9da Another TODO item 2001-12-18 01:48:51 +00:00
Todd C. Miller
1e1e65807f Checkpoint for upcoming beta release 2001-12-15 02:19:28 +00:00
Todd C. Miller
e5bd3d9683 update for 1.6.3 2000-03-23 04:41:29 +00:00
Todd C. Miller
54fbe08545 Added -S flag (read passwd from stdin) and tgetpass_flags global
that holds flags to be passed in to tgetpass().  Change echo_off
param to tgetpass() into a flags field.  There are currently 2
possible flags for tgetpass(): TGP_ECHO and TGP_STDIN.  In tgetpass(),
abstract the echo set/clear via macros and if (flags & TGP_ECHO)
but echo is not set on the terminal, but sure to set it.
2000-02-27 03:49:07 +00:00
Todd C. Miller
020125336c Add 'editor' and 'enveditor' sudoers defaults and make visudo honor them.
This means that visudo will now parse the sudoers file *before* it is
edited so a bogus sudoers file will cause a warning to go to stderr.
Also, visudo checks the variables once--it does not check them after
each editor run since that could be confusing.
2000-02-16 00:03:44 +00:00
Todd C. Miller
d6a034cf76 Update for 1.6 release 1999-11-16 05:28:45 +00:00
Todd C. Miller
8a33fc598e Docuement "Defaults" lines in /etc/sudoers. Still needs some fleshing
out but this is a start.
1999-10-11 15:55:11 +00:00
Todd C. Miller
7769bf6a32 o Change defaults stuff to put the value right in the struct.
o Implement mailer_flags
o Store syslog stuff both in int and string form.  Setting the string
  form magically updates the int version.
o Add boolean attribute to strings where it makes sense to say !foo
1999-10-07 21:21:08 +00:00
Todd C. Miller
f7e23611be Use strftime() instead of ctime() if it is available. 1999-09-15 09:15:33 +00:00
Todd C. Miller
13bf42675d Add support for "Defaults" line in sudoers to make configuration variables
changable at runtime (and on a global, per-host and per-user basis).
Both the names and the internal representation are still subject to change.
It was necessary to make sudo_user.runas but a char ** instead of a
char * since this value can be changed by a Defaults line.  There is a
similar (but more complicated) issue with sudo_user.prompt but it
is handled differently at the moment.

Add a "-L" flag to list the name of options with their descriptions.  This
may only be temporary.

Move some prototypes to parse.h

Be much less restrictive on what is allowed for a username.
1999-09-08 08:06:28 +00:00
Todd C. Miller
21e6a9d16d more things todo! 1999-08-26 09:19:00 +00:00
Todd C. Miller
be4e87f666 Update to reality. 1999-08-07 11:46:39 +00:00
Todd C. Miller
76148d5316 o Move lock_file() and touch() into fileops.c so visudo can use them
o Visudo now locks the sudoers temp file instead of bailing when
the temp file already exists.  This fixes the problem of stale
temp files but it does *require* that you not try to put the
temp file in a world-writable directory.  This shoud not be
an issue as the temp file should live in the same dir as sudoers.
o Visudo now only installs the temp file as sudoers if it changed.
1999-08-07 09:59:43 +00:00
Todd C. Miller
4aa1fb7fea sudo should lock its logfile 1999-08-04 17:32:24 +00:00
Todd C. Miller
c8962786f4 remove 2 items. One done, one won't do. 1999-07-22 13:14:31 +00:00
Todd C. Miller
3bce72741d Take out things I've done... 1999-07-22 12:34:53 +00:00
Todd C. Miller
850a52aa6f o Replace _PASSWD_LEN braindeath with our own SUDO_MAX_PASS.
It turns out the old DES crypt does the right thing with passwords
   longert than 8 characters.
 o Fix common typo (necesary -> necessary)
 o Update TODO list
1999-05-14 16:30:14 +00:00
Todd C. Miller
f50a342b4e It is now possible to use the '!' operator in a runas list as
well as in a Cmnd_Alias, Host_Alias and User_Alias.
1999-04-06 05:40:51 +00:00
Todd C. Miller
1bb1646106 old changes that didn't make it into RCS before the RCS->CVS switch 1999-01-18 01:49:34 +00:00
Todd C. Miller
e467587894 updtaed for 1.5.6 1998-09-15 02:02:20 +00:00
Todd C. Miller
b93a31eda4 updated 1998-01-13 05:00:39 +00:00
Todd C. Miller
a36ba7b5cc sudo 1.5.3. 1996-11-16 19:42:46 +00:00