Commit Graph

115 Commits

Author SHA1 Message Date
Todd C. Miller
b961b88af4 checkpoint 2001-12-19 16:50:22 +00:00
Todd C. Miller
a4e9f7cffd minor prettyification 2001-12-15 02:53:20 +00:00
Todd C. Miller
4c587ba66d Updated change log 2001-12-15 02:43:28 +00:00
Todd C. Miller
998631b73a New Defaults options:
o stay_setuid - sudo will remain setuid if system has saved uids or setreuid(2)
 o env_reset - reset the environment to a sane default
 o env_keep - preserve environment variables that would otherwise be cleared

No longer use getenv/putenv/setenv functions--do environment munging by hand.
Potentially dangerous environment variables can be cleared only if they
contain '/' pr '%' characters to protect buggy programs.
Moved environment routines into env.c (new file)
2000-12-30 03:29:47 +00:00
Todd C. Miller
0c061c0376 Visudo now does its own fork/exec instead of calling system(3). 2000-04-01 22:25:41 +00:00
Todd C. Miller
6dd2d9592e Visudo now checks for the existence of an editor and gives a sensible
error if it does not exist.

The path to the editor for visudo is now a colon-separated list of
allowable editors.  If the user has $EDITOR set and it matches
one of the allowed editors that editor will be used.  If not,
the first editor in the list that actually exists is used.
2000-04-01 21:23:28 +00:00
Todd C. Miller
b2a1d4ee7f Whoops, forgot to add release marker 2000-03-27 02:43:45 +00:00
Todd C. Miller
b7fdfdab4d Final change for 1.6.3 (or so I hope) 2000-03-26 16:57:31 +00:00
Todd C. Miller
f32e054fe5 Make login class support work on BSD/OS 2000-03-24 20:13:12 +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
09b23e7b41 Add rootpw, runaspw, and targetpw options. 2000-02-18 17:56:28 +00:00
Todd C. Miller
44c5092fab enveditor -> env_editor 2000-02-18 17:11:43 +00:00
Todd C. Miller
364a4bef7d recent changes; prepare for 1.6.2p1 2000-01-27 20:01:35 +00:00
Todd C. Miller
af9bee9051 update for 1.6.2 2000-01-24 03:03:04 +00:00
Todd C. Miller
d9790399b3 Fix sudoers locking in visudo. We now lock the sudoers file itself, not
the temp file (since locking the temp file can foul up editors).  The
previous locking scheme didn't work because the fd was closed too early.
2000-01-19 19:07:24 +00:00
Todd C. Miller
20e44882b7 aix fix 2000-01-17 23:45:28 +00:00
Todd C. Miller
903bd6ecab recent changes 2000-01-17 17:32:51 +00:00
Todd C. Miller
7db5ff9f55 recent changes 1999-12-10 05:09:47 +00:00
Todd C. Miller
957fa7941d o Kill HAVE_FNMATCH_H
o Only define HAVE_FNMATCH if <fnmatch.h> exists.
1999-12-09 03:54:57 +00:00
Todd C. Miller
baf50ee07a Don't allow insults to be enabled if the insults[] array is empty.
Otherwise there would be division by zero.
1999-12-06 06:47:13 +00:00
Todd C. Miller
b937889e88 Don't ask the user for a password if the user is not allowed to run
the command and the authenticate flag (in sudoers) is false.
1999-12-06 00:14:54 +00:00
Todd C. Miller
2eb9882339 o Whenever we get a bare newline we change to the INITIAL state.
o Enter GOTRUNAS when we see Runas_Alias

This allows #uid to work in a RunasAlias.
1999-12-06 00:05:53 +00:00
Todd C. Miller
34d793254d fix parsing of runas lists:
o oprunasuser and runaslist now return a value
o in a runasspec, if a runaslist does not return TRUE, set runas_matches to
  FALSE.  Normally, a runaslist only returns FALSE for explicitly denied
  users.
o since runaslist does not modify the stack there is no need for a push/pop
  in runasalias.
1999-12-05 19:06:09 +00:00
Todd C. Miller
c6136f9764 crank version to 1.6 1999-12-05 02:18:47 +00:00
Todd C. Miller
da14eb97d6 kill characters that made wml unhappy 1999-11-28 23:49:58 +00:00
Todd C. Miller
3e6f6697c7 fix typos 1999-11-16 06:16:39 +00:00
Todd C. Miller
59666aca78 o Now use getrlimit to find the highest fd when closing all non-std fd's
o Turn off core dumps via setrlimit for the sake of paranoia
1999-11-04 19:01:11 +00:00
Todd C. Miller
1b467e8022 updates 1999-11-01 15:59:05 +00:00
Todd C. Miller
e0a83ab41c update to reality 1999-10-13 02:33:09 +00:00
Todd C. Miller
359b5be92d Kill _XOPEN_EXTENDED_SOURCE -- causes problems on some OSes 1999-08-26 21:24:50 +00:00
Todd C. Miller
0d38bef9a7 include strcasecmp() for those without it 1999-08-24 17:37:38 +00:00
Todd C. Miller
3781e9d410 recent changes 1999-08-24 16:41:46 +00:00
Todd C. Miller
2e8eaae774 recent changes 1999-08-14 15:40:58 +00:00
Todd C. Miller
c2d088ebe1 recent changes 1999-08-12 16:26:25 +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
ff7b468661 updates 1999-07-31 16:32:56 +00:00
Todd C. Miller
46e856500b updates 1999-07-28 09:24:45 +00:00
Todd C. Miller
2ffac7eb41 new changes 1999-07-22 13:06:48 +00:00
Todd C. Miller
8b8db7ea0e document recent changes 1999-06-03 15:52:40 +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
59b0cff8cf Stash the "safe" path (ie: the one listed in sudoers) to the command instead
of stashing the struct stat.  Should be safer.
1999-04-10 04:10:01 +00:00
Todd C. Miller
f1891c8796 updated 1999-04-08 00:20:03 +00:00
Todd C. Miller
0d67007d1b In estrdup(), do the malloc ourselves so we don't need to rely on the
system strdup(3) which may or may not exist.  There is now no need to
provide strdup() for those w/o it.  Also, the prototype for estrdup()
was wrong, it returns char * and its param is const.
1999-04-06 17:55:01 +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
321906bfb5 update for 1.5.9 1999-04-02 21:03:17 +00:00
Todd C. Miller
b3f330600e new change 1999-03-30 06:08:42 +00:00
Todd C. Miller
2c7a8ba7b4 updates from CU 1999-03-29 20:03:02 +00:00
Todd C. Miller
79c46d1c81 ++version 1999-03-29 04:05:15 +00:00
Todd C. Miller
217710df36 Fix a parser bug that was exposed when mixing different runas specs
and ! commands.  For example:
    millert        ALL=(daemon) /usr/bin/whoami,!/bin/ls
would allow millert to run whoami as root as well as daemon when it should
just allow daemon.  The problem was that comma-separated commands in
a list shared the same entry on the matching stack.  Now they get
their own entry iff there is a full match.  It may be better to just make
the runas spec persistent across all commands in a list like the user
and host entries of the matching stack.  However, since that is a
fairly major change it should gets its own minor rev increase.
1999-03-29 00:05:15 +00:00