Commit Graph

323 Commits

Author SHA1 Message Date
Todd C. Miller
621d42205c now deal with situations where we getwd() fails 1995-11-19 00:17:31 +00:00
Todd C. Miller
6475d4378e added missing set_perms()
no more cryptic message if the sudoers file is zero length,
now just give a parse error
1995-11-16 07:54:33 +00:00
Todd C. Miller
8285802f24 check_sudoers() now catches sudoers files that are not readable
(but are stat'able).
1995-11-16 07:41:35 +00:00
Todd C. Miller
96be725f35 options.h is now <> instead of "" so shadow build trees can
have a custom copy of options.h
1995-11-13 05:16:38 +00:00
Todd C. Miller
3003b4109d unset the KRB_CONF envariable if using kerberos so we don't get
spoofed into using a bogus server
1995-10-30 20:51:18 +00:00
Todd C. Miller
5d691e1c47 removed unused variable
now passes -Wall
1995-09-23 20:48:48 +00:00
Todd C. Miller
211361a5f0 don't include malloc.h if we include stdlib.h 1995-09-13 21:17:06 +00:00
Todd C. Miller
dff189d000 if SHELL_IF_NO_ARGS is set, "sudo -- foo" now runs a shell
and passes along foo as the arguments
1995-09-10 01:00:24 +00:00
Todd C. Miller
cc1ab5b5b6 fixed a typo that caused commands with no tty on fd 0 but a tty
on fd 1 to erroneously have "none" as their tty
1995-09-09 00:51:49 +00:00
Todd C. Miller
33de10d52d now only strip '/dev/' off of a tty if it starts with '/dev/' 1995-09-03 18:12:24 +00:00
Todd C. Miller
589f1d6263 moved tty stuff into sudo.c 1995-09-02 02:25:17 +00:00
Todd C. Miller
eaf845fd2c fixed comments 1995-09-01 04:50:07 +00:00
Todd C. Miller
57e17e71d1 include netdb.h as we should
added a missing void cast
added SHELL_IF_NO_ARGS support
now use realloc() properly.  would fail if realloc actually moved
the string instead of shrinking it
1995-09-01 04:23:19 +00:00
Todd C. Miller
eb742282be fixed -k
load_interfaces() now gets called if FQDN is set
-p now works with -s
1995-09-01 02:54:48 +00:00
Todd C. Miller
b79d33a5b1 -s no longer indicates end of args
sped up loading on cmnd_args in load_cmnd()
1995-08-19 23:30:03 +00:00
Todd C. Miller
fee6ecbf07 fixed loading of cmnd_args (was including command name too) 1995-08-14 03:35:43 +00:00
Todd C. Miller
f82ab3e8c0 now sets cmnd_args used by log_error() and that will be used
by the parse to check against command args
1995-08-13 04:32:19 +00:00
Todd C. Miller
8219db9617 added -s (shell) option
made MODE_* masks so we can do bitwise & and | to see if multiple
flags are set.
1995-07-31 02:36:43 +00:00
Todd C. Miller
dd9a165145 rewrote clean_env() that has rm_env() builtin 1995-07-24 22:07:56 +00:00
Todd C. Miller
e70f526da5 now uses MAX_UID_T_LEN 1995-07-23 21:48:30 +00:00
Todd C. Miller
6555548e42 added a set of parens 1995-07-18 03:19:56 +00:00
Todd C. Miller
9b176c01ec SPW_AUTH -> SPW_SECUREWARE 1995-07-17 18:30:32 +00:00
Todd C. Miller
8e002084a2 now uses SHADOW_TYPE define 1995-07-17 04:20:57 +00:00
Todd C. Miller
4c67e31d95 now check to see that st_dev is non-zero before assuming that we
are being spoofed
1995-06-23 00:25:06 +00:00
Todd C. Miller
b122474e4b added anti-spoofing support 1995-06-15 04:47:59 +00:00
Todd C. Miller
42b3a170e3 fixed problem with "-p prompt" but no args 1995-06-15 03:27:40 +00:00
Todd C. Miller
d3e338f2fa validate() now takes a flag
added -l
1995-06-14 08:43:13 +00:00
Todd C. Miller
337897e2d8 added prompt support
reworked parse_args()
1995-06-08 01:27:08 +00:00
Todd C. Miller
c60704dcce added -b option 1995-06-03 23:34:06 +00:00
Todd C. Miller
a2ec4c76dd getcwd() -> getwd() 1995-05-08 03:13:42 +00:00
Todd C. Miller
aaa41e678c moved load_interfaces to interfaces.c 1995-05-02 03:33:38 +00:00
Todd C. Miller
e991fcfa70 now remove IFS instead of setting to "sane" value 1995-05-02 02:47:33 +00:00
Todd C. Miller
431c0a7e5e added Andy's new ISC changes 1995-04-30 00:15:10 +00:00
Todd C. Miller
d562e7ff71 fixed indentation 1995-04-13 17:54:17 +00:00
Todd C. Miller
52b6b6965b updated ISC mods 1995-04-13 17:19:59 +00:00
Todd C. Miller
0869c2a39a now sets SUDO_COMMAND and SUDO_GID envariables. 1995-04-09 21:04:57 +00:00
Todd C. Miller
050ca432ac now sets removes # bogus interfaces from num_interfaces 1995-04-09 02:27:05 +00:00
Todd C. Miller
aa03cdc831 took out debugging info 1995-04-07 19:08:17 +00:00
Todd C. Miller
ec1c2e69e2 fixed loading of interfaces struct
still has debugging info in though
1995-04-07 03:30:53 +00:00
Todd C. Miller
911605896d removed some unused vars and fixed up uid2str 1995-04-01 00:16:02 +00:00
Todd C. Miller
f4e9cea285 uid2str is now static like the prototype says 1995-03-31 21:12:17 +00:00
Todd C. Miller
086c511947 check_sudoers now returns an error code and sudo calls inform_user
and log_error based on the return value.
1995-03-30 04:46:16 +00:00
Todd C. Miller
838882502a now explicately checks that it is setuid root 1995-03-30 03:36:55 +00:00
Todd C. Miller
a0b01e062b If a user has no passwd entry sudo would segv (writing to a garbage pointer).
Now allocate space before writing :-)
1995-03-30 03:28:48 +00:00
Todd C. Miller
fe19bcc7c1 now do set_perms(PERM_ROOT) before the getpwuid() in load_global()
to work around a problem is trusted hpux shadow passwords. yuck.
1995-03-29 22:59:47 +00:00
Todd C. Miller
22c7d31a5f took out -l 1995-03-29 13:16:48 +00:00
Todd C. Miller
4e29c4d3f1 moved a set of parens 1995-03-28 05:48:30 +00:00
Todd C. Miller
40fbed9036 removed ocmnd 1995-03-26 06:33:05 +00:00
Todd C. Miller
175390b58b find_path() changed since no more realpath() 1995-03-26 06:19:20 +00:00
Todd C. Miller
ba61aad4a4 elinated compiler warning 1995-03-26 02:56:35 +00:00