]> git.pld-linux.org Git - packages/sudo.git/commitdiff
- obsolete
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 4 Aug 2007 22:24:31 +0000 (22:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    sudo-pam-sess.patch -> 1.2

sudo-pam-sess.patch [deleted file]

diff --git a/sudo-pam-sess.patch b/sudo-pam-sess.patch
deleted file mode 100644 (file)
index e8ce9c1..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
---- sudo-1.6.8p8/auth/pam.c.sess       2005-05-24 16:38:35.976866872 +0200
-+++ sudo-1.6.8p8/auth/pam.c    2005-05-24 16:39:50.061604280 +0200
-@@ -175,6 +175,8 @@
- pam_prep_user(pw)
-     struct passwd *pw;
- {
-+    int error;
-+
-     if (pamh == NULL)
-       pam_init(pw, NULL, NULL);
-@@ -195,6 +197,20 @@
-      */
-     (void) pam_setcred(pamh, PAM_ESTABLISH_CRED);
-+    /*
-+     * That's enough initialize PAM session in this function, because
-+     * sudo calls it before exec()
-+     */
-+    if ((error = pam_open_session(pamh, 0))!=PAM_SUCCESS) {
-+          pam_end(pamh, error);
-+          return(AUTH_FAILURE);
-+    }
-+    /*
-+     * For example settings from pam_limits are persistent after pam_session_close() and
-+     * it's probably more clean call pam_close_session() than omit it.
-+     */
-+    pam_close_session(pamh, 0);
-+   
-     if (pam_end(pamh, PAM_SUCCESS | PAM_DATA_SILENT) == PAM_SUCCESS)
-       return(AUTH_SUCCESS);
-     else
This page took 0.117687 seconds and 4 git commands to generate.