Commit Graph

468 Commits

Author SHA1 Message Date
Todd C. Miller
b124635b04 Instead of keeping separate groups and gids arrays, create struct
group_info and use it to store both, along with a count for each.
Cache group info on a per-user basis using getgrouplist() to get
the groups.  We no longer need special to special case the user or
list user for user_in_group() and thus no longer need to reset the
groups list when listing another user.
2011-07-20 11:58:45 -04:00
Todd C. Miller
ae34052542 Disable noexec for AIX < 5. LDR_PRELOAD is only available in AIX
5.3 and above.
2011-07-05 11:42:39 -04:00
Todd C. Miller
210e091d81 No longer need to specify LINGUAS in configure, "make install-nls"
now just installs all the .mo files it finds.
2011-06-18 13:11:27 -04:00
Todd C. Miller
b4a48510cd Only enable Solaris project support when setproject() is present in
libproject.
2011-06-10 15:28:58 -04:00
Todd C. Miller
0562e492aa FreeBSD no longer needs the main sudo binary to link with -lpam
now that plug-ins are loaded with RTLD_GLOBAL.
2011-06-06 11:02:52 -04:00
Todd C. Miller
707bad44d4 Add Finish translation from translationproject.org 2011-06-04 09:58:44 -04:00
Todd C. Miller
88cfbd51a5 Add support for --enable-nls[=location] 2011-05-29 14:33:18 -04:00
Todd C. Miller
97214c4485 Don't install .mo files if gettext was not found. 2011-05-28 09:18:46 -04:00
Todd C. Miller
47adbf8d33 Add simplified chinese translation 2011-05-27 07:54:52 -04:00
Todd C. Miller
c202c4e6d8 Add ukranian translation 2011-05-26 15:23:55 -04:00
Todd C. Miller
724b64e2ca Add missing "checking" message for gettext when using the cache. 2011-05-20 15:27:45 -04:00
Todd C. Miller
a05e963690 Add checks for nroff -c and -Tascii flags 2011-05-19 18:00:31 -04:00
Todd C. Miller
e2aef4f526 Add check for HP bundled C Compiler (which cannot create shared libs) 2011-05-19 17:34:38 -04:00
Todd C. Miller
3164f58143 Add scaffolding to update .po files and install .mo files. 2011-05-19 15:25:29 -04:00
Todd C. Miller
159d7e393a FreeBSD needs the main sudo executable to link with -lpam when
loading dynaic pam modules for some reason.
2011-05-18 11:18:44 -04:00
Todd C. Miller
c3a259f5ee Add calls to bindtextdomain() and textdomain()
Currently there are two domains, one for the sudo front-end and
one for the sudoers plugin and its associated utilities.
2011-05-17 16:38:40 -04:00
Todd C. Miller
19a81af6b0 Fix caching of libc gettext check. 2011-05-17 15:55:23 -04:00
Todd C. Miller
4ff045b266 Cache the status of the initial gettext() check. 2011-05-09 11:04:19 -04:00
Todd C. Miller
1994db70da Add --disable-nls flag and improve checks for gettext. 2011-05-09 10:58:52 -04:00
Todd C. Miller
411737cf25 When building with gcc on HP-UX, use -march=1.1 to produce portable
binaries on a pa-risc2 host.  Previously, the +Dportable option was
used for the HP-UX C compiler but gcc always produced native binaries.
2011-05-09 10:02:16 -04:00
Todd C. Miller
96b7c1f0f4 Add initial scaffolding to support localization via gettext() 2011-05-04 15:26:31 -04:00
Todd C. Miller
f1bea0a215 Need to do checks for krb5_verify_user, krb5_init_secure_context
and krb5_get_init_creds_opt_alloc regardless of whether or not
krb5-config is present.
2011-04-18 09:22:26 -04:00
Todd C. Miller
f52a6ccae4 Fix and document --with-plugindir; partially from Diego Elio Petteno 2011-04-06 12:02:49 -04:00
Todd C. Miller
233d90f2c3 Add check for NetBSD-style 4-argument skeychallenge() as Gentoo also
has this.  Adapted from a patch from Diego Elio Petteno
2011-04-06 10:08:57 -04:00
Todd C. Miller
dcc4ec8436 Fix warnings when -without-skey, --without-opie, --without-kerb4,
--without-kerb5 or --without-SecurID were specified.
2011-04-06 09:33:07 -04:00
Todd C. Miller
89cd8c2ff1 Back out the --with-libpath addition to SUDOERS_LDFLAGS since that
now include LDFLAGS in the sudoers Makefile.in.
Add missing settng of @LDFLAGS@ in plugin Makefile.in files.
2011-04-06 07:01:17 -04:00
Todd C. Miller
021e2a94b9 The --with-libpath option now adds to SUDOERS_LDFLAGS as well as LDFLAGS.
Remove old -static hack for HP-UX < 9.
Add LTLDFLAGS and set it to -Wc,-static-libgcc if not using GNU ld so we
    don't have a dependency on the shared libgcc in sudoers.so.
2011-04-05 09:42:59 -04:00
Todd C. Miller
2534672f62 We need to include OSDEFS in CFLAGS when doing the utmp/utmpx
structure checks for glibc which only has __e_termination visible
when _GNU_SOURCE is *not* defined.
2011-03-30 10:14:25 -04:00
Todd C. Miller
53d183c380 Add explicit check for struct utmpx.ut_exit.e_termination
and struct utmpx.ut_exit.__e_termination.  HP-UX uses the latter.
Only update ut_exit if we detect one or the other.
2011-03-29 09:10:40 -04:00
Todd C. Miller
13b9c7b17b Remove the hack to disable -g in CFLAGS unless --with-devel 2011-03-17 18:43:46 -04:00
Todd C. Miller
27dbaa8ded Change trunk version to 1.8.x to distinguish from real 1.8.0. 2011-03-16 16:07:33 -04:00
Todd C. Miller
2041d39db7 Add support for ut_exit 2011-03-15 16:18:33 -04:00
Todd C. Miller
5e6bc4017b Add check for _PATH_UTMP 2011-03-15 11:56:49 -04:00
Todd C. Miller
8653ccc809 Redo utmp handling. If no getutent()/getutxent() is available,
assume a ttyslot-based utmp.  If getttyent() is available, use
that directly instead of ttyslot() so we don't have to do the
stdin dup2 dance.
2011-03-14 10:20:47 -04:00
Todd C. Miller
c7a7d31905 Add support for disabling exec via solaris privileges.
Includes preparation for moving noexec support out of sudoers
and into front end as documented.
2011-03-10 14:24:10 -05:00
Todd C. Miller
498248d1f0 Install plugins manually instead of using libtool. This works
around a problem on AIX where libtool will install a .a file
containing the .so file instead of the .so file itself.
2011-03-10 10:57:56 -05:00
Todd C. Miller
62edd57ab7 Update to libtool 2.2.10 2011-03-10 10:31:27 -05:00
Todd C. Miller
1496bfed6c Add support for adding a utmp entry when allocating a new pty.
Requires the BSD login(3) or SYSV/POSIX getutent()/getutxent().
Currently only creates a new entry if the existing tty has
a utmp entry.
2011-03-08 15:37:40 -05:00
Todd C. Miller
2241947b38 Add some more libs to SUDOERS_LIBS instead of relying on them to be
pulled in by SUDO_LIBS.
2011-03-08 09:46:35 -05:00
Todd C. Miller
3cc46dd70a Move libs used for authentication from SUDO_LIBS to SUDOERS_LIBS
where they belong.
2011-03-04 08:26:48 -05:00
Todd C. Miller
4333b06914 version 1.8.0 2011-02-25 14:57:18 -05:00
Todd C. Miller
74c4252c1b 1.8.0rc1 2011-02-21 13:36:24 -05:00
Todd C. Miller
39d9feb438 The howmany macro lives in sys/sysmacros.h on SVR5 systems
Closes Bug 470
2011-02-19 08:23:46 -05:00
Todd C. Miller
554833c587 1.8.0b5 2011-02-16 12:22:56 -05:00
Todd C. Miller
d661058389 Prefer getutxid over getutid 2011-02-09 15:11:52 -05:00
Todd C. Miller
cd6abe1d3f fix --with-iologdir=no 2011-02-04 14:44:47 -05:00
Todd C. Miller
e78e91282f fix typo that broke --with-iologdir 2011-02-04 14:33:54 -05:00
Todd C. Miller
7f277d1558 Bump version to 1.8.0b4 2011-02-03 14:26:58 -05:00
Todd C. Miller
ed8e30cf6e Add --disable-env-reset configure option. 2011-01-28 16:52:25 -05:00
Todd C. Miller
807a9ca94b Do logging and email sending in the locale specified by the
"sudoers_locale" setting ("C" by default).  Email send by sudo
includes MIME headers when the sudoers locale is not "C".
2011-01-28 16:11:47 -05:00