19822771 sudo(1m) calls pam_open_session() which doesn't interact well w/pam_unix_session
--- a/components/sudo/Makefile Tue Jan 27 05:05:55 2015 -0800
+++ b/components/sudo/Makefile Wed Jan 28 15:40:23 2015 +0100
@@ -19,7 +19,7 @@
# CDDL HEADER END
#
-# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
#
include ../../make-rules/shared-macros.mk
@@ -53,7 +53,9 @@
CONFIGURE_OPTIONS += --with-ldap
CONFIGURE_OPTIONS += --with-project
CONFIGURE_OPTIONS += --with-timedir=/system/volatile/sudo
-CONFIGURE_OPTIONS += --with-pam --with-pam-login
+CONFIGURE_OPTIONS += --with-pam
+CONFIGURE_OPTIONS += --with-pam-login
+CONFIGURE_OPTIONS += --disable-pam-session
CONFIGURE_OPTIONS += --with-tty-tickets
CONFIGURE_OPTIONS += --without-insults
CONFIGURE_OPTIONS += --without-lecture