Debian Codegraph @

NEWS

raw
1 User-Visible pam-afs-session Changes
2
3 pam-afs-session 2.6 (2015-09-19)
4
5 When pam_setcred is called with PAM_REINITIALIZE_CRED or
6 PAM_REFRESH_CRED, don't set the PAM data item that says to skip a
7 subsequent pam_open_session and delete tokens on pam_close_session.
8 This fixes a problem with sudo when pam_setcred is enabled, since sudo
9 first calls pam_setcred with PAM_REINITIALIZE_CRED and then opens a
10 new session. The previous code would not create a new PAG for the new
11 session and then would delete the caller's tokens after sudo
12 completed. The new behavior is more conceptually correct, since
13 reinitializing creds doesn't take ownership of the session, and
14 therefore shouldn't mean deleting them on session close.
15
16 Fix compilation failure on Solaris 11 and later with the built-in kafs
17 implementation.
18
19 Use the PATH_KRB5_CONFIG environment variable or command-line setting
20 to configure instead of KRB5_CONFIG to get the path to krb5-config.
21 The latter is used to point to an alternative krb5.conf file.
22
23 Update to rra-c-util 5.8:
24
25 * Improve robustness of PAM entry and exit handling.
26 * Do not append a PAM error message if the status is PAM_SUCCESS.
27 * Fix a memory leak in PAM logging.
28 * Pass --deps to krb5-config except with --enable-reduced-depends.
29 * Avoid calling krb5_get_error_message with a NULL context.
30 * Use krb5/krb5.h if krb5.h is not present, for NetBSD portability.
31 * Fix stripping of -I/usr/include from krb5-config output.
32 * Use manual Kerberos library probing if lib or include paths given.
33 * Do not assume string is nul-terminated in replacement strdup.
34 * Avoid using local in the shell TAP library for Solaris portability.
35 * Silence __attribute__ warnings on more compilers.
36 * Add more __format__ annotations on various utility functions.
37 * Adjust POD tests to handle multiple .. paths in build directory.
38
39 Update to C TAP Harness 3.4:
40
41 * Suppress plan and summary if bail is called before any tests run.
42 * Only use feature-test macros when requested or built with gcc -ansi.
43 * Drop is_double from the C TAP library to avoid requiring -lm.
44 * Avoid using local in the shell libtap.sh library.
45 * Silence __attribute__ warnings on more compilers.
46 * runtests now frees all allocated resources on exit.
47 * Fix runtests to honor -s even if BUILD and -b aren't given.
48 * Fix segfault with an empty test list.
49
50 pam-afs-session 2.5 (2011-07-25)
51
52 Reset the SIGCHLD handler while spawning an external aklog program so
53 that the application SIGCHLD handler isn't invoked when aklog exits.
54 This unfortunately still means that there's a race condition that can
55 cause children to be incorrectly handled if they exit while aklog is
56 running, if the application's SIGCHLD handler is required. There is
57 unfortunately no good general solution to this other than building
58 against Heimdal and using the libkafs interface to obtain tokens
59 instead of an external program.
60
61 Default to nopag on Mac OS X, since the operating system doesn't have
62 PAG support.
63
64 Fix error handling when krb5_appdefault_string returns without setting
65 the result string. Fixes a possible segfault during configuration
66 parsing on Mac OS X 10.7.
67
68 Update to rra-c-util 3.7:
69
70 * Fail during configure if AFS headers are required and not found.
71 * Add notices to all files copied over from rra-c-util.
72 * Include strings.h for additional POSIX functions where found.
73 * Fix detection of whether PAM uses const on FreeBSD.
74
75 pam-afs-session 2.4 (2011-06-08)
76
77 Fix a memory allocation and initialization bug in the previous release
78 that could result in a free of unallocated memory.
79
80 pam-afs-session 2.3 (2011-06-07)
81
82 If there is no KRB5CCNAME environment variable set in the PAM
83 environment but there is one set in the regular environment, still run
84 aklog and use the KRB5CCNAME from the general environment. This
85 provides correct behavior in cases such as password-less sudo with the
86 KRB5CCNAME environment variable preserved.
87
88 Update to rra-c-util 3.6:
89
90 * Fix compilation error with --without-krb5.
91 * Update flags for make warnings to GCC 4.6.1.
92
93 Update to C TAP Harness 1.7:
94
95 * Add a more complete usage message and a -h command-line flag.
96
97 pam-afs-session 2.2 (2011-03-03)
98
99 Stop returning PAM_IGNORE from pam_setcred if AFS is not available or
100 if we're deleting credentials but the PAM module is configured not to
101 delete tokens. Instead, return PAM_SUCCESS. This fixes problems with
102 the Linux PAM library where returning PAM_IGNORE would cause
103 pam_setcred to fail even if other modules succeeded.
104
105 When using libkafs, close the ticket cache after obtaining tokens.
106 Fixes a memory leak.
107
108 Fix the error return statuses for pam_setcred. Previously, on error,
109 it was returning PAM_SESSION_ERR, which is a return status that's only
110 supposed to be used for pam_open_session and pam_close_session.
111 Instead, return PAM_USER_UNKNOWN or PAM_CRED_ERR as appropriate.
112
113 Update to rra-c-util 3.2:
114
115 * Check if the string being duplicated is NULL in strndup replacement.
116
117 pam-afs-session 2.1 (2011-01-23)
118
119 The program setting can now include arguments to pass to the program
120 to run to obtain tokens, separated by commas (or spaces or tabs if
121 your PAM configuration syntax supports it). If program is set in
122 krb5.conf, additional options can be specified separated by spaces.
123 As a side effect, program paths containing spaces or commas will no
124 longer work correctly since the text after the space or comma will be
125 interpreted as an argument. Please let me know if this was a feature
126 that you were using.
127
128 Fix compilation of the pam_syslog and pam_vsyslog replacement
129 functions for platforms whose PAM libraries lack those functions.
130
131 Fix compilation of the embedded kafs layer for Mac OS X 10.6 and
132 hopefully fix detection of whether AFS is present. Thanks, Andy
133 Cobaugh.
134
135 Fix broken GCC attribute markers that may have caused compilation
136 problems with any non-GCC compiler.
137
138 Add a replacement for strndup if the system C library doesn't provide
139 the function (such as on Mac OS X).
140
141 Document that "nopag" should be added to the configuration on Mac OS X
142 where PAGs are not supported.
143
144 Update to rra-c-util 3.1:
145
146 * Include supplemental libraries in manual Kerberos library probes.
147 * Avoid warnings when probing for ibm_svc/krb5_svc.h.
148
149 pam-afs-session 2.0 (2010-12-29)
150
151 If there is no PAG, create a new one and obtain tokens in pam_setcred
152 and pam_open_session even if the module has already run. This works
153 around destruction of the PAG on Linux by keyring initialization
154 modules, which can otherwise be hard to avoid due to the ordering
155 between the auth and session stacks. This support uses the
156 VIOC_GETPAG AFS system call if it is available and falls back on
157 analyzing the supplemental group list if it is not.
158
159 Add untested support for the ioctl AFS system call methods on Mac OS X
160 and Solaris 11 to the included kafs library, which is used if neither
161 libkafs nor libkopenafs is available.
162
163 Avoid returning an uninitialized value from pam_open_session when
164 notokens is set. Thanks, Ian Ward Comfort.
165
166 pam_close_session now removes the module data indicating that tokens
167 were already obtained so that opening another session using the same
168 PAM handle will work correctly.
169
170 pam-afs-session is now built using Automake and Libtool to bring it
171 more in line with other software packages. This means that it now
172 relies on Libtool to know how to generate a loadable module rather
173 than hand-configured linker rules. This may improve portability on
174 some platforms and may hurt it on other platforms.
175
176 The symbols exported by the PAM module are now limited to only the
177 public API on all platforms where Libtool supports limiting symbol
178 exports.
179
180 On Linux, if configured with a prefix of /usr (rather than /usr/local,
181 the default), the module will be installed into /lib/security (or
182 /lib32/security or /lib64/security if they exist) rather than
183 /usr/lib/security to match the default PAM configuration.
184
185 The module is now installed under $libdir/security, rather than a
186 lib32 or lib64 directory, except for the special case of /usr. To
187 install into another lib32 or lib64 directory, use the --libdir option
188 to configure.
189
190 Fix a configure error when built --without-krb5.
191
192 When debugging is enabled, log an exit status of PAM_IGNORE as ignore
193 rather than failure.
194
195 Update the embedded kafs code to rra-c-util 3.0, adding
196 --with-libkafs-include, --with-libkafs-lib, --with-afs-include, and
197 --with-afs-lib configure options for finer control. Remove obsolete
198 --with-afs-headers configure option (use --with-afs-include instead).
199
200 Add an initial test suite that tests basic functionality and some
201 options.
202
203 Update to rra-c-util 3.0:
204
205 * Add --with-krb5-include and --with-krb5-lib configure options.
206 * Don't break if the user clobbers CPPFLAGS at build time.
207 * Fall back on manual probing if krb5-config results don't work.
208 * Suppress error output from krb5-config probes.
209 * Search for krb5-config in /usr/kerberos/bin for Red Hat systems.
210 * Add support for the old Heimdal krb5_get_error_string interface.
211 * Handle the bundled Heimdal on OpenBSD without a separate libroken.
212 * Add portability to systems with a broken snprintf or vsnprintf.
213 * Update make warnings flags for gcc 4.4.
214
215 Update to C TAP Harness 1.6:
216
217 * Flush standard error before results in the C TAP library.
218 * Improve test failure output formatting in some edge cases.
219
220 pam-afs-session 1.7 (2008-07-10)
221
222 Return PAM_IGNORE instead of PAM_SUCCESS from all functions when AFS
223 isn't available, and when functions are skipped due to the
224 configuration. We would like to do this in pam_authenticate as well
225 (it would be much safer), but there is a bug in (at least) Linux PAM
226 0.99.7.1 (and probably earlier) that treats this as authentication
227 failure if the module is configured with [default=done].
228
229 Fix Autoconf syntax error when probing for libkrb5support. Thanks,
230 Mike Garrison.
231
232 If KRB5_CONFIG was explicitly set in the environment, don't use a
233 different krb5-config based on --with-krb5. If krb5-config isn't
234 executable, don't use it. This allows one to force library probing by
235 setting KRB5_CONFIG to point to a nonexistent file.
236
237 Sanity-check the results of krb5-config before proceeding and error
238 out in configure if they don't work.
239
240 Set an explicit visibility of hidden for all internal functions at
241 compile time if gcc is used to permit better optimization. Hide all
242 functions except the official interfaces using a version script on
243 Linux. This protects against leaking symbols into the application
244 namespace and provides some mild optimization benefit.
245
246 Fix the probing of PAM headers for const on Mac OS X. This will
247 suppress some harmless compiler warnings there. Thanks, Markus
248 Moeller.
249
250 pam-afs-session 1.6 (2008-03-08)
251
252 Correctly check the exit status of aklog and don't think acquiring
253 tokens was successful when aklog failed. Thanks, Douglas Engert
254 and Chaskiel Grundman.
255
256 Build with _REENTRANT set for correct errno handling in threaded
257 applications on Solaris.
258
259 Build with Kerberos support by default if Kerberos libraries are
260 found. To disable Kerberos support, pass --without-krb5 to
261 configure. The option to specify the Kerberos library location is now
262 --with-krb5, not --with-kerberos.
263
264 Add support for AIX's bundled Kerberos. Thanks to Markus Moeller for
265 the porting information.
266
267 Define _ALL_SOURCE on AIX to get a prototype for vsnprintf.
268
269 Add compiler and linker flags for AIX. Thanks, Thomas Williams.
270
271 Try to determine whether the PAM headers use const in the prototypes
272 of such things as pam_get_item and adjust accordingly. This should
273 address compiler warnings on Solaris. Thanks, Markus Moeller.
274
275 Add additional documentation of interactions with the native pam_krb5
276 on Solaris to README. pam_afs_session needs to be run from the auth
277 group, not the session group, with at least some services when used
278 with the Solaris pam_krb5.
279
280 Document bad interactions with pam_keyinit on Linux in README.
281
282 Add example PAM configurations for Debian, Red Hat, and Solaris based
283 on Stanford's Linux configurations and a Solaris configuration from
284 Maciej Malek. Hopefully I didn't break anything while merging
285 examples.
286
287 pam-afs-session 1.5 (2007-09-30)
288
289 Free the results of pam_getenvlist and the command-line argument for
290 aklog properly.
291
292 Don't de-reference a NULL pointer if memory allocation fails while
293 parsing PAM options. Thanks, Jason D. McCormick.
294
295 Change lib to lib64 on x86_64 Linux to allow for the magical $ISA
296 parameter in Red Hat's PAM configuration. Hopefully this won't cause
297 problems elsewhere.
298
299 Fix linker determination when using gcc on HP-UX.
300
301 Add additional debugging output when acquiring or destroying tokens.
302
303 pam-afs-session 1.4 (2007-05-10)
304
305 Added the afs_cells configuration option which specifies the list of
306 cells in which to get tokens.
307
308 Ported to HP-UX. HP-UX's PAM libraries do not support a separate
309 environment used for the new session, so manipulate the regular
310 environment instead. Thanks to Joe Buehler for the port.
311
312 Document using the module with Mac OS X, now that it's been confirmed
313 to work with sshd on that platform.
314
315 Support DESTDIR for make install.
316
317 pam-afs-session 1.3 (2007-04-11)
318
319 Add a notokens configuration option which, when set, tells the module
320 to only create a PAG and not to try to obtain tokens. Based on a
321 patch from Jason McCormick.
322
323 When forking an external aklog, also close standard input and reopen
324 it to /dev/null. Normal aklog programs won't try to read from
325 standard input, but don't connect their standard input to any stray
326 file descriptor inherited by the process just in case.
327
328 Make --with-kerberos and --without-libkafs work properly together.
329
330 Improve diagnostics around token acquisition. Thanks, Jeff Blaine.
331
332 pam-afs-session 1.2 (2007-03-24)
333
334 Add support for calling the Heimdal libkafs functions for obtaining
335 AFS tokens rather than running an external aklog program. This
336 support is the default if libkafs and the Kerberos v5 functions were
337 found at build time and --with-kerberos was passed to configure.
338
339 When retain_after_close is set, don't destroy tokens on DELETE_CRED
340 either. OpenSSH calls this when the session dies. Thanks to Thomas
341 Kula for the patch.
342
343 Don't fail during configure if Kerberos libraries couldn't be found
344 unless --with-kerberos was explicitly requested.
345
346 Produce better error messages when Kerberos operations fail.
347
348 Added --without-libkafs to force using the internal AFS syscall
349 implementation and not link with libkafs or libkopenafs, even if the
350 libraries are available.
351
352 Fix installation of the man page when building outside of the source
353 directory.
354
355 pam-afs-session 1.1 (2006-12-18)
356
357 Add optional support for linking with the Kerberos libraries and
358 obtaining configuration from the system krb5.conf file.
359
360 Add the kdestroy option which, if built with Kerberos support, removes
361 the ticket cache after successfully running aklog.
362
363 Actually link with libkafs if we detect it at configure time.
364
365 Fix a bug in reporting unknown options.
366
367 pam-afs-session 1.0 (2006-12-06)
368
369 Add --with-afs-headers to configure so that the user doesn't have to
370 know the right syntax for setting CPPFLAGS.
371
372 When using gcc, link with -fPIC as well as compiling with it per the
373 gcc documentation.
374
375 Add additional configuration information for Solaris.
376
377 Link explicitly against the Kerberos libraries by default when linking
378 with libkafs, only relying on transitive shared library dependencies
379 when --enable-reduced-depends is passed to configure. This should not
380 be necessary on any of the currently supported platforms but may make
381 porting easier to systems with deficient shared library support.
382
383 Support building on Mac OS X. The resulting module isn't tested and
384 may not work. Thanks, Sebastian Hagedorn.
385
386 pam-afs-session 0.3 (2006-11-28)
387
388 Compile in a default path to aklog if configure can find it on the
389 path or if told the path with the --with-aklog option. In this case,
390 program is now optional in the PAM configuration.
391
392 Use __func__ instead of __FUNCTION__ and provide a fallback for older
393 versions of gcc and for systems that support neither. Should fix
394 compilation issues with Sun's C compiler.
395
396 On platforms where we know the appropriate compiler flags, try to
397 build the module so that symbols are resolved within the module in
398 preference to any externally available symbols. Also add the
399 hopefully correct compiler flags for Sun's C compiler.
400
401 pam-afs-session 0.2 (2006-11-17)
402
403 Add a man page.
404
405 Add a fallback implementation of the AFS system call for platforms
406 that use syscall, and add the signal handler protection for the
407 k_hasafs probe for those platforms. The PAM module should now build
408 on Solaris without requiring libkafs or libkopenafs.
409
410 Add an always_aklog option saying to always run aklog even if the user
411 doesn't appear to have a ticket cache.
412
413 Add an aklog_homedir option saying to pass -p <homedir> to aklog.
414 This will obtain tokens in whatever AFS cells are required to access
415 the user's home directory and can be used when something more complex
416 than obtaining tokens in the local default cell is needed.
417
418 Reopen stdout and stderr to /dev/null before running aklog so that any
419 error messages from aklog don't confuse the calling program.
420
421 Log a message if aklog fails, but return PAM_SUCCESS from the module
422 whether aklog succeeded or not. If we fail, the user may be kicked
423 out of their session even though AFS tokens may not be necessary and
424 only obtained as a convenience. Obtaining a PAG is still required.
425
426 pam-afs-session 0.1 (2006-11-10)
427
428 Initial beta release.
429
430 Supports libkafs and libkopenafs in theory, but only the internal
431 syscall layer has been tested. No man page yet, and the program to
432 run to obtain tokens must be specified in the PAM options.