Commit Graph

90 Commits

Author SHA1 Message Date
Todd C. Miller
0cf2e09e0c Apply spelling fixes.
Fixes from PR #30 (ka7) and Bug #925 (fossies.org codespell)
2020-05-06 09:27:43 -06:00
Todd C. Miller
3516d7f0e3 Remove tfd from struct sudoersfile; it is not used.
Add prev pointer to struct sudoersfile.
Declare list of sudoersfile using TQ_DECLARE.
Use tq_append to append sudoers entries to the tail queue.
2010-06-11 09:53:44 -04:00
Todd C. Miller
7795284879 sync with reality 2010-06-10 15:12:07 -04:00
Todd C. Miller
9edc09609f Document the -2 return in the check_policy section too 2010-03-21 08:58:13 -04:00
Todd C. Miller
bfce2852fc sync 2009-04-18 13:25:08 +00:00
Todd C. Miller
36ba7133c6 sync 2008-12-14 22:40:11 +00:00
Todd C. Miller
498e00374a checkpoint 2008-11-26 01:06:15 +00:00
Todd C. Miller
ffb9f65b2c checkpoint 2008-11-02 19:08:42 +00:00
Todd C. Miller
c3470aa583 change version to 1.7.0 2008-05-02 20:38:08 +00:00
Todd C. Miller
27fa3e97d5 sync 2008-03-27 23:04:22 +00:00
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