Commit Graph

3095 Commits

Author SHA1 Message Date
Todd C. Miller
7471253e6c Add a missing @runas_default@ substitution. 2004-01-18 22:22:01 +00:00
Todd C. Miller
c823817275 Change euid to runas user before calling find_path(). Unfortunately,
though runas_user can be modified in sudoers we haven't parsed sudoers yet.
2004-01-17 21:34:05 +00:00
Todd C. Miller
6def750d08 Add missing defintion of Parameter_List and use single pipes in the
Defaults EBNF definition.
2004-01-17 21:25:40 +00:00
Todd C. Miller
03f5f4087c Fix a bug when set_runaspw() is used as a callback. We don't want to
reset the contents of runas_pw if the user specified a user via the -u flag.

Avoid unnecessary passwd lookups in set_authpw().  In most cases we already
have the info in runas_pw.
2004-01-17 18:49:59 +00:00
Todd C. Miller
e404f54c23 Add Stan Lee / Uncle Ben quote to the lecture from RedHat 2004-01-16 23:16:24 +00:00
Todd C. Miller
18027fa589 Update sudo_getepw() proto and add one for set_runaspw() 2004-01-16 23:12:03 +00:00
Todd C. Miller
69d47fe756 If we can't stat the command as root, try as the runas user instead. 2004-01-16 23:10:13 +00:00
Todd C. Miller
327729a7e6 Add stub set_runaspw() function 2004-01-16 23:09:34 +00:00
Todd C. Miller
febc09e147 Add set_runaspw() function to fill in runas_pw. This will be used
as a callback to update runas_pw when the runas user changes.
2004-01-16 23:09:20 +00:00
Todd C. Miller
ecfc813757 PERM_RUNAS -> PERM_FULL_RUNAS 2004-01-16 23:07:03 +00:00
Todd C. Miller
ceb3653d71 Rename PERM_RUNAS -> PERM_FULL_RUNAS and add a PERM_RUNAS that just
changes the euid.
2004-01-16 23:05:47 +00:00
Todd C. Miller
de6ff287e8 Make sudo_pwdup() act like OpenBSD pw_dup() and allocate memory in
one chunk for easy free()ing.  Also change it from static to extern.
2004-01-16 23:04:07 +00:00
Todd C. Miller
fb65156a72 Add callback support 2004-01-16 23:03:02 +00:00
Todd C. Miller
175e9e4720 Add a callback field and use it for runas_default 2004-01-16 23:02:18 +00:00
Todd C. Miller
487cd96e08 Add a callback field and use it for runas_default 2004-01-16 23:02:18 +00:00
Todd C. Miller
ae1a984afc Add support for chalnecho and display server responses used by fwtk >= 2.0 2004-01-15 20:13:47 +00:00
Todd C. Miller
db1196a91d ld.so is ld.so.1 on solaris 2004-01-12 23:39:00 +00:00
Todd C. Miller
d55c3f63c7 Use closefrom() instead of doing the equivalent inline. 2004-01-12 19:03:54 +00:00
Todd C. Miller
a34078ac33 closefrom(3) for systems w/o it 2004-01-12 18:55:30 +00:00
Todd C. Miller
c493bb6b63 Update from .pod file. 2004-01-09 21:29:05 +00:00
Todd C. Miller
5c16da4f20 Substitute noexec_file for the sudoers man page 2004-01-09 21:26:46 +00:00
Todd C. Miller
051943b687 Mention noexec 2004-01-09 21:24:50 +00:00
Todd C. Miller
67ba09fccf Document noexec 2004-01-09 21:16:52 +00:00
Todd C. Miller
149862cd9d Move PAM_CONST macro definition from config.h to pam.c where it belongs.
We can't have this in config.h since that gets included too early.
2004-01-09 19:39:00 +00:00
Todd C. Miller
aa4eb97ed5 Some PAM implementations put their headers in /usr/include/pam instead
of /usr/include/security.
2004-01-09 19:35:54 +00:00
Todd C. Miller
5459af61d4 I missed changing the EXEC macro -> EXECV here when I changed this in
config.h.in and sudo.c a while ago.
2004-01-09 19:32:43 +00:00
Todd C. Miller
fce2b7491a OpenBSD vax/m88k/hppa don't do shared libs 2004-01-09 18:15:54 +00:00
Todd C. Miller
cd2bd25a88 o merge the hpux case entries into a single entry w/ its own sub-case statement.
o HP-UX >= 11 support getspnam(), use it in preference to getprpwuid()
2004-01-09 08:29:33 +00:00
Todd C. Miller
0aaea98261 eval $shrext so that it expands nicely on MacOS X 2004-01-09 07:58:04 +00:00
Todd C. Miller
c18a2a32eb Don't lie about making a module, it does the wrong thing on mach 2004-01-09 07:50:12 +00:00
Todd C. Miller
5206defd66 Remove requirement that libs must begin with "lib". They don't when
we point directly at the lib using LD_PRELOAD or its equivalent.
2004-01-09 07:49:50 +00:00
Todd C. Miller
7e6fe46e94 Disable support for c++, f77 and java. We don't need it, it takes a lot
of time, and it hosed our check for shared lib support.
2004-01-09 07:01:15 +00:00
Todd C. Miller
a71e4f1695 regen 2004-01-09 07:00:18 +00:00
Todd C. Miller
f649563335 Call AC_ENABLE_SHARED and check the status of enable_shared to know when
shared libs are available.
2004-01-09 07:00:01 +00:00
Todd C. Miller
bede9b7b5c Duh, OpenBSD suports shared libs too 2004-01-09 06:37:08 +00:00
Todd C. Miller
b106eabb4b Only OpenPAM and Linux PAM use const qualifiers. 2004-01-09 06:18:10 +00:00
Todd C. Miller
9f8f030c5b o No need to check for sed, libtool config does that for us
o move check for --with-noexec until after libtool magic is run so we
  can use $can_build_shared and $shrext
2004-01-09 06:15:34 +00:00
Todd C. Miller
ad13250c2b Don't print a bunch of crap about library installs since we are not
really installing a library.
2004-01-09 06:14:31 +00:00
Todd C. Miller
230a54ebb9 Make format_env() varargs
Add noexec support for Darwin, MacOS X, Irix, and Tru64
2004-01-09 05:38:58 +00:00
Todd C. Miller
f192682f65 Update to libtool 1.5 with local changes:
o no ldconfig in the finish step
 o assume no libprefix or version is needed
2004-01-09 05:32:55 +00:00
Todd C. Miller
dd4acb880d Fix compilation under K&R 2004-01-09 05:15:38 +00:00
Todd C. Miller
63e8d52f57 checkpoint 2004-01-06 14:31:35 +00:00
Todd C. Miller
e17ee88ebf stub execve() that just returns EACCES; used for noexec functionality 2004-01-06 14:28:49 +00:00
Todd C. Miller
bac45090ae Regen w/ updated byacc from OpenBSD; fixes a gcc 3.2 issue with generated code. 2004-01-06 06:42:14 +00:00
Todd C. Miller
a39a63f4fb Regen w/ updated byacc from OpenBSD; fixes a gcc 3.2 issue with generated code. 2004-01-06 06:42:14 +00:00
Todd C. Miller
0f6749fa25 Move the environment defaults to the end and shorten a few of the descriptions. 2004-01-05 21:10:19 +00:00
Todd C. Miller
8e796b909a no shared libs on ultris or convexos 2004-01-05 20:05:29 +00:00
Todd C. Miller
d9b9d94c36 Build sudo_noexec shared object using libtool; could use some cleanup. 2004-01-05 20:03:09 +00:00
Todd C. Miller
9019ee7b45 libtool scaffolding 2004-01-05 19:59:56 +00:00
Todd C. Miller
db230cc520 Merge the NOPASSWD/PASSWD and NOEXEC/EXEC rules so that order is not
important.
2004-01-05 19:56:43 +00:00