Commit Graph

2335 Commits

Author SHA1 Message Date
Todd C. Miller
4aa1fb7fea sudo should lock its logfile 1999-08-04 17:32:24 +00:00
Todd C. Miller
16ab377018 o Add '!' correctly when expanding Aliases.
o Add shortcut macros for append() to make things more readable.
o The separator in append() is now a string instead of a char.
o In append(), only prepend the separator if the last char is not a '!'.
  This is a hack but it greatly simplifies '!' handling.
o In -l mode, Runas lists and NOPASSWD/PASSWD tags are now inherited
  across entries in a list (matches current behavior).
o Fix formatting in -l mode such that items in a list are separated by
  a space.  Greatlt improves readability.
o Space for name field in struct aliasinfo is now allocated dyanically
  instead of using a (big) buffer.
o In add_alias(), only search the list once (lsearch instead of lfind + lsearch)
1999-08-04 17:28:47 +00:00
Todd C. Miller
0d5a675f5b regen 1999-08-04 15:31:47 +00:00
Todd C. Miller
1a4ebcf2f5 Solais pam doesn't require anye xtra setup 1999-08-04 14:54:34 +00:00
Todd C. Miller
716e0b5433 o Simpler '!' support now that the lexer deals with multiple !'s for us.
o In the case of opFOO, have FOO give a boolean return value and set
  foo_matches in opFOO, not FOO.
o Treat 'ALL' as a string since it gets fill()'d in parse.lex--fixes a
  small memory leak.  In the long run it may be better to just fix parse.lex
  and make ALL back into a token.  However, having it be a string is useful
  since it can be easily passed back to the parent rule if we so desire.
1999-08-04 09:35:56 +00:00
Todd C. Miller
d1a6fa810e o Remove some unnecessary backslashes
o collapse multiple !'s by using !+ and checking if yyleng is even or odd.
  this allows us to simplify ! handling in parse.yacc
1999-08-04 07:54:34 +00:00
Todd C. Miller
014bd22934 -u flag was being ignored 1999-08-04 07:53:04 +00:00
Todd C. Miller
3fc0ab7680 correct fix 1999-08-01 17:04:05 +00:00
Todd C. Miller
896c2748e1 work around pod2man stupididy 1999-08-01 16:37:07 +00:00
Todd C. Miller
3e8a6d4962 correct dependencies for .cat 1999-08-01 16:35:06 +00:00
Todd C. Miller
762fb6a664 regen 1999-08-01 16:26:16 +00:00
Todd C. Miller
29974bceb3 Add copyright
Update to reality
1999-08-01 16:25:25 +00:00
Todd C. Miller
6b3909c780 rename validate() to the more descriptive sudoers_lookup() 1999-08-01 15:42:12 +00:00
Todd C. Miller
ef4302501f use tgetpass 1999-08-01 10:49:41 +00:00
Todd C. Miller
ff7b468661 updates 1999-07-31 16:32:56 +00:00
Todd C. Miller
5a51e05e63 Sudo, not CU Sudo 1999-07-31 16:31:27 +00:00
Todd C. Miller
fa26399ae1 add 4th term to license similar to term 5 in the apache license 1999-07-31 16:20:10 +00:00
Todd C. Miller
1a89248e42 add 4th term to license similar to term 5 in the apache license 1999-07-31 16:19:51 +00:00
Todd C. Miller
0d732401f4 add 4th term to license similar to term 5 in the apache license 1999-07-31 16:19:50 +00:00
Todd C. Miller
40c228aa7b add 4th term to license similar to term 5 in the apache license 1999-07-31 16:19:45 +00:00
Todd C. Miller
ca8eb6f2aa add 4th term to license similar to term 5 in the apache license 1999-07-31 16:19:45 +00:00
Todd C. Miller
794f537eef there was a 1995 release too 1999-07-31 16:02:13 +00:00
Todd C. Miller
46e856500b updates 1999-07-28 09:24:45 +00:00
Todd C. Miller
0804f1786b Use dirs instead of files for timestamp. This allows tty and non-tty
schemes to coexist reasonably.  Note, however, that when you update
a tty ticket, the mtime on the user dir gets updated as well.
1999-07-28 09:21:00 +00:00
Todd C. Miller
0368b9e612 Fix getprpwnam() checking on SCO. Need to link with "-lprot -lx" when
linking test program, not just -lprot.  Also add check for getspnam().
The SCO docs indicate that /etc/shadow can be used but this may be a lie.
1999-07-28 09:17:14 +00:00
Todd C. Miller
234f718e49 first cut at auth API description 1999-07-24 07:35:42 +00:00
Todd C. Miller
a1e0a8180a auth API change. There is now an init method that gets run before
the main loop.  This allows auth routines to differentiate between
initialization that happens once vs. setup that needs to run each time
through the loop.
1999-07-22 19:48:27 +00:00
Todd C. Miller
8d72a57eb9 use easprintf() and evasprintf() 1999-07-22 16:23:13 +00:00
Todd C. Miller
fd410d4bcb add easprintf() and evasprintf(), error checking versions of asprintf() and vasprintf() 1999-07-22 16:22:47 +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
7126759483 regen 1999-07-22 13:12:27 +00:00
Todd C. Miller
4c7239fd97 regen 1999-07-22 13:11:16 +00:00
Todd C. Miller
2ffac7eb41 new changes 1999-07-22 13:06:48 +00:00
Todd C. Miller
0e2cc2b7a8 o Document -K flag and update meaning of -k flag.
o BSD-style copyright
o Document clearing of BIND resolver environment variables
o Clarify bit about shared libs
o suggest rc files create /tmp/.odus if your OS gives away files
1999-07-22 13:01:20 +00:00
Todd C. Miller
3cbcd52f9a BSD license 1999-07-22 12:59:37 +00:00
Todd C. Miller
6ccee0f5b2 BSD-style copyright 1999-07-22 12:58:52 +00:00
Todd C. Miller
dd312cee2f o BSD copyright
o no need to block signals, we now do that in main()
o cosmetic changes
1999-07-22 12:58:39 +00:00
Todd C. Miller
4dc01cc916 o BSD-style copyright
o Use "struct sudo_user" instead of old globals.
o some cometic cleanup
1999-07-22 12:57:47 +00:00
Todd C. Miller
5fbc12d529 BSD-style copyright 1999-07-22 12:56:50 +00:00
Todd C. Miller
95179ddffe o BSD copyright
o logging and parser bits moved to their own .h files
o new "struct sudo_user" to encapsulate many of the old globals.
1999-07-22 12:56:28 +00:00
Todd C. Miller
7fe99a8caa o no longer contains sudo 1.1/1.2 code
o BSD copyright
o use new logging routines
o simplified flow of control
o BIND resolver additions to badenv_table
1999-07-22 12:55:17 +00:00
Todd C. Miller
c4079a538c BSD-style copyright 1999-07-22 12:53:30 +00:00
Todd C. Miller
bcc133c11e Now compiles on more K&R compilers 1999-07-22 12:53:20 +00:00
Todd C. Miller
ebc1acfff9 BSD-style copyright, cosmetic changes 1999-07-22 12:52:23 +00:00
Todd C. Miller
be40509eb7 BSD-style copyright 1999-07-22 12:52:06 +00:00
Todd C. Miller
c7fd99aa54 BSD-style copyright. Move parser-specific defines and structs into parse.h + other cosmetic changes 1999-07-22 12:51:18 +00:00
Todd C. Miller
c665b67244 defines for logging routines 1999-07-22 12:51:13 +00:00
Todd C. Miller
692fe8cdb3 BSD-style copyright, cosmetic changes 1999-07-22 12:49:28 +00:00
Todd C. Miller
cdd6ceff6e BSD-style copyright 1999-07-22 12:49:15 +00:00
Todd C. Miller
379f683661 o tgetpass.c is no longer optional
o kill DCE_OBJS, add AUTH_OBJS
o kill --disable-tgetpass
o add --without-passwd
o changes to fill in AUTH_OBJS for new auth api
o check for strerror(), v?snprintf() and v?asprintf()
o replace --with-AuthSRV with --with-fwtk
1999-07-22 12:46:29 +00:00