--- Linux-PAM-1.0.1/ChangeLog 2008-04-16 11:27:13.000000000 +0200 +++ Linux-PAM-1.0.2/ChangeLog 2008-08-29 10:27:43.000000000 +0200 @@ -1,3 +1,18 @@ +2008-08-29 Thorsten Kukuk + + * release version 1.0.2 + +2008-08-29 Tomas Mraz + + * modules/pam_loginuid/pam_loginuid.c(set_loginuid): Uids + are unsigned. + +2008-04-22 Tomas Mraz + + * modules/pam_selinux/pam_selinux.c(pam_sm_close_sesion): Fix + regression from the change from 2008-03-20. setexeccon() must be + called also with NULL prev_context. + 2008-04-16 Thorsten Kukuk * release version 1.0.1 --- Linux-PAM-1.0.1/configure 2008-04-16 10:59:22.000000000 +0200 +++ Linux-PAM-1.0.2/configure 2008-08-29 10:14:27.000000000 +0200 @@ -2377,7 +2377,7 @@ # Define the identity of the package. PACKAGE="Linux-PAM" - VERSION=1.0.1 + VERSION=1.0.2 cat >>confdefs.h <<_ACEOF --- Linux-PAM-1.0.1/configure.in 2008-04-16 10:57:20.000000000 +0200 +++ Linux-PAM-1.0.2/configure.in 2008-08-29 10:13:38.000000000 +0200 @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(conf/pam_conv1/pam_conv_y.y) -AM_INIT_AUTOMAKE("Linux-PAM", 1.0.1) +AM_INIT_AUTOMAKE("Linux-PAM", 1.0.2) AC_PREREQ([2.60]) AM_CONFIG_HEADER(config.h) AC_CANONICAL_HOST --- Linux-PAM-1.0.1/modules/pam_loginuid/pam_loginuid.c 2007-06-23 01:30:36.000000000 +0200 +++ Linux-PAM-1.0.2/modules/pam_loginuid/pam_loginuid.c 2008-08-29 10:11:39.000000000 +0200 @@ -53,7 +53,7 @@ int fd, count, rc = 0; char loginuid[24]; - count = snprintf(loginuid, sizeof(loginuid), "%d", uid); + count = snprintf(loginuid, sizeof(loginuid), "%lu", (unsigned long)uid); fd = open("/proc/self/loginuid", O_NOFOLLOW|O_WRONLY|O_TRUNC); if (fd < 0) { if (errno != ENOENT) { --- Linux-PAM-1.0.1/modules/pam_namespace/Makefile.in 2008-04-16 10:59:08.000000000 +0200 +++ Linux-PAM-1.0.2/modules/pam_namespace/Makefile.in 2008-08-29 10:14:06.000000000 +0200 @@ -41,7 +41,7 @@ host_triplet = @host@ @HAVE_VERSIONING_TRUE@am__append_1 = -Wl,--version-script=$(srcdir)/../modules.map subdir = modules/pam_namespace -DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ +DIST_COMMON = README $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ --- Linux-PAM-1.0.1/modules/pam_selinux/pam_selinux.c 2008-03-20 18:06:32.000000000 +0100 +++ Linux-PAM-1.0.2/modules/pam_selinux/pam_selinux.c 2008-08-29 10:11:39.000000000 +0200 @@ -702,21 +702,21 @@ free(ttyn); ttyn=NULL; } - if (prev_user_context) { - if (setexeccon(prev_user_context)) { + + if (setexeccon(prev_user_context)) { pam_syslog(pamh, LOG_ERR, "Unable to restore executable context %s.", - prev_user_context); + prev_user_context ? prev_user_context : ""); if (security_getenforce() == 1) status = PAM_AUTH_ERR; else status = PAM_SUCCESS; - } + } else if (debug) + pam_syslog(pamh, LOG_NOTICE, "Executable context back to original"); + + if (prev_user_context) { freecon(prev_user_context); prev_user_context = NULL; } - if (debug) - pam_syslog(pamh, LOG_NOTICE, "setcontext back to orginal"); - return status; } --- Linux-PAM-1.0.1/NEWS 2008-04-16 10:58:48.000000000 +0200 +++ Linux-PAM-1.0.2/NEWS 2008-08-29 10:28:23.000000000 +0200 @@ -1,5 +1,12 @@ Linux-PAM NEWS -- history of user-visible changes. + +Release 1.0.2 + +* Regression fixed in pam_selinux +* Problem with big UIDs fixed in pam_loginuid + + Release 1.0.1 * Regression fixed in pam_set_item().