Todd C. Miller
cf2bfbcd3f
Split out digest matching into its own file.
2019-02-17 08:21:13 -07:00
Todd C. Miller
a04409747c
Split out digest matching into its own file.
2019-02-17 06:47:37 -07:00
Todd C. Miller
1e6e048180
Rename FOLLOW and NOFOLLOW tokens FOLLOWLNK and NOFOLLOWLNK.
...
Fixes a namespace collision on Solaris when bison is used.
2019-02-12 12:02:02 -07:00
Todd C. Miller
bc25915050
Add stub definition of digest_matches() for SUDOERS_NAME_MATCH
2019-02-06 13:12:33 -07:00
Todd C. Miller
694999487b
No longer need to include sudo_lbuf.h
2019-02-06 10:25:52 -07:00
Todd C. Miller
ffc4db6aee
On RedHat/CentOS get the OS major version from /etc/redhat-release.
...
We cannot determine this from the output of "pp --probe" since it
doesn't contain a period to separate the major and minor numbers.
2019-02-06 06:30:00 -07:00
Todd C. Miller
6dceca47cc
Use SET macro instead of bitwise OR.
2019-02-05 16:47:08 -07:00
Todd C. Miller
c92f80b79e
In sudo_make_grlist_item() the calculation of total did not include
...
space for pointers to the group names.
2019-02-05 16:46:30 -07:00
Todd C. Miller
4f74fe3a8e
Use correct debug_decl() names.
2019-02-05 14:29:39 -07:00
Todd C. Miller
928faf27f2
Add fallback values for sudoers uid, gid and mode if not set in Makefile.
2019-02-05 10:02:17 -07:00
Todd C. Miller
13c3244220
include stddef.h to make sure we get NULL
2019-02-04 14:07:20 -07:00
Todd C. Miller
3788c65483
Fix memory leak when there are no network interfaces or an error occurs.
2019-02-02 13:55:30 -07:00
Todd C. Miller
c1d934894d
Use $ac_cv_search_FUNCTION instead of $ac_lib and $ac_res.
...
Fixes a problem where libcrypt is not used with autoconf caching.
Adapted from a diff from Adam Labbe.
2019-01-25 10:39:57 -07:00
Todd C. Miller
df8b855b2a
Updated translations from translationproject.org
2019-01-24 14:59:13 -07:00
Todd C. Miller
ecc9c366e4
Fix listpw=never and verifypw=never. Bug #869
2019-01-22 06:41:16 -07:00
Todd C. Miller
985600e7f0
Minor snprintf() usage tweaks:
...
1) don't assume snprintf() returns -1 on error, check for <0
2) when comparing return value of sizeof(foo), cast the sizeof, not the len
3) cast return value to void in cases where snprintf cannot fail
2019-01-20 07:49:48 -07:00
Todd C. Miller
3d63eee344
The AIX nofiles hard limit fix and bug #867 will make 1.8.27.
2019-01-07 11:01:21 -07:00
Todd C. Miller
e2675d8f1e
Use PAM_SILENT to prevent pam_lastlog from printing last login
...
information on RedHat except when explicitly running a shell.
Adapted from a patch from Nir Soffer. Bug #867
2019-01-07 09:50:40 -07:00
Todd C. Miller
f7d7a9a619
Fix the default nofiles and stack hard limits.
...
The table of default hard limits in /etc/security/limits was out
of date with respect to the current documentation. The default
hard limit for nofiles should be unlimited, not 8196. The default
hard limit for stack should be 4194304 blocks (which fits in an
unsigned long on 32-bit platforms).
2019-01-07 09:38:03 -07:00
Todd C. Miller
32dc90c28e
regen
2019-01-03 13:26:57 -07:00
Todd C. Miller
7ae29420d5
Final updates for sudo 1.8.27.
2019-01-03 13:16:57 -07:00
Todd C. Miller
64d08d8bf2
Update copyright year
2019-01-03 11:09:00 -07:00
Todd C. Miller
de94a04ba4
Update for 2019
2019-01-03 11:05:46 -07:00
Todd C. Miller
b2f7983c84
Fix setting of utmp entry when running command in a pty.
...
Regression introduced in sudo 1.8.22.
2019-01-02 07:39:33 -07:00
Todd C. Miller
efe35e5b1e
Use debug_return_int not debug_return_bool in resolve_host
2018-12-24 20:31:26 -07:00
Todd C. Miller
24b0da367b
sudo 1.8.27
2018-12-24 10:09:35 -07:00
Todd C. Miller
dc9338ffe7
Allow the sudoers file to be specified without the -f option.
...
Bug #864
2018-12-24 08:26:18 -07:00
Todd C. Miller
7d5b0064af
The iolog_dir section is below the maxseq section, not above.
2018-12-20 06:57:05 -07:00
Todd C. Miller
3d84150736
Updated translations from translationproject.org
2018-12-12 10:47:01 -07:00
Todd C. Miller
72050203bc
Add -n and -R options to help; reported by Radovan Sroka
2018-12-11 09:17:15 -07:00
Todd C. Miller
258c7d4dd0
Add missing description of padding option and missing argument to -c.
2018-12-11 09:12:06 -07:00
Todd C. Miller
142b370c1f
The -c option was missing from the help info; from Radovan Sroka
2018-12-11 09:05:04 -07:00
Todd C. Miller
04a4b3c1fc
Fix some typos; reported by Radovan Sroka
2018-12-11 09:02:30 -07:00
Todd C. Miller
5242773489
In sudo_pam_approval(), for the exempt case, only overwrite pam
...
status when the passwd is expired or needs to be updated.
2018-12-08 08:10:04 -07:00
Todd C. Miller
4125808a85
The fix for bug #843 was incomplete and caused pam_end() to be called early.
...
sudo_pam_approval() must not set the global pam status to an error
value if it returns AUTH_SUCCESS. Otherwise, sudo_pam_cleanup()
will call pam_end() before sudo_pam_begin_session(). This resulted
in a NULL PAM handle being used in sudo_pam_begin_session().
2018-12-07 09:51:34 -07:00
Todd C. Miller
e91e5ee820
Don't run the command in a pty if no I/O plugins are logging anything.
...
That way an I/O plugin that doesn't actually log anything won't cause
the command to be run in a pty.
2018-12-05 10:43:14 -07:00
Todd C. Miller
83fd48a75c
Update ignore patterns to match doc changes.
2018-11-29 08:49:58 -07:00
Todd C. Miller
85dd1747cf
fix mode fixmdoc.sed
2018-11-29 08:47:42 -07:00
Todd C. Miller
b8ba372227
Fix section in the .TH line of *.man.in file.
...
The substitution for @mansectsu@ and @mansectform@ was broken.
No longer need to strip out OpenBSD from the header line.
2018-11-27 13:15:08 -07:00
Todd C. Miller
e0d2dc61eb
Add sudoers.man.in.sed, missed from previous commit.
2018-11-27 08:33:51 -07:00
Todd C. Miller
168a7ca110
Add Guillem Jover
2018-11-27 08:27:23 -07:00
Todd C. Miller
8964dd5d20
recent changes
2018-11-27 08:26:08 -07:00
Todd C. Miller
e010706ede
Use roff conditionals in the manuals instead of post-processing.
...
We still need to process the resulting .man.in files to add back
the conditionals but this should be easier to debug as the changes
are visible in the .in file.
Some minor postprocessing is still used to make the manuals HP-UX
friendly and to change "0 seconds" -> unlimited after substitution.
2018-11-27 08:14:15 -07:00
Todd C. Miller
23006c72c7
Sudo plugin manual updates and clarification from Guillem Jover:
...
- Add missing return information for show_version().
- Fix prototypes for several function pointers.
- Update SUDO_API_VERSION_MINOR.
- Add missing references to log_suspend() and change_winsize().
- Add missing "array.".
- Clarify that argc can be zero on sudo -V.
- Clarify size requirements for conversation array arguments.
- Clarify timeout zero value for struct sudo_conv_message.
- Clarify initial and final state of reply in struct sudo_conv_reply.
2018-11-24 08:39:09 -07:00
Todd C. Miller
7c0019d2a5
Revert changes to give arguments to the .Bx macro.
...
This is intended for things like .Bx 4.3 to generate "4.3BSD" so
the argument ends up before the BSD, not after. Just go back to
using "BSD authentication" and "BSD login classes" so fixmdoc.sh
can operate correctly. Bug #861
2018-11-24 08:34:03 -07:00
Todd C. Miller
0679f4529c
Update fixmdoc.sh to match the BSD -> .Bx changes in the manuals.
...
Bug #861
2018-11-23 06:42:23 -07:00
Todd C. Miller
ecd9688818
Add support for utmps as found in HP-UX.
2018-11-18 07:45:43 -07:00
Todd C. Miller
716aa6e4ab
Support st_nmtime in struct stat as found in HP-UX.
2018-11-14 13:37:46 -07:00
Todd C. Miller
7c5469264d
If fcntl fails, fall back to the /proc implementation.
2018-11-14 13:37:45 -07:00
Todd C. Miller
4f5acff6eb
Mention schema.olcSudo
2018-11-12 08:31:02 -07:00