aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Mraz <tm@t8m.info>2009-05-11 14:52:31 +0000
committerTomas Mraz <tm@t8m.info>2009-05-11 14:52:31 +0000
commit538c9efe38bfc96a2cc5355b26a70a4e2957158a (patch)
tree0a1031d41b54a29aba7749e0d741917893a5c8ac
parent313c187b8a8b0b2c8676e67d69c53574f6abe65c (diff)
downloadpam-538c9efe38bfc96a2cc5355b26a70a4e2957158a.tar.gz
pam-538c9efe38bfc96a2cc5355b26a70a4e2957158a.tar.bz2
pam-538c9efe38bfc96a2cc5355b26a70a4e2957158a.zip
Relevant BUGIDs:
Purpose of commit: bugfix Commit summary: --------------- 2009-05-11 Tomáš Mráz <t8m@centrum.cz> * modules/pam_unix/pam_unix_passwd.c (_unix_run_update_binary): Remove unnecessary setuid() call.
-rw-r--r--ChangeLog5
-rw-r--r--modules/pam_unix/pam_unix_passwd.c6
2 files changed, 5 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 017cc422..7a14c6a0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-05-11 Tomáš Mráz <t8m@centrum.cz>
+
+ * modules/pam_unix/pam_unix_passwd.c (_unix_run_update_binary): Remove
+ unnecessary setuid() call.
+
2009-05-05 Thorsten Kukuk <kukuk@thkukuk.de>
* release version 1.0.92
diff --git a/modules/pam_unix/pam_unix_passwd.c b/modules/pam_unix/pam_unix_passwd.c
index d3ee6815..30ea6687 100644
--- a/modules/pam_unix/pam_unix_passwd.c
+++ b/modules/pam_unix/pam_unix_passwd.c
@@ -185,12 +185,6 @@ static int _unix_run_update_binary(pam_handle_t *pamh, unsigned int ctrl, const
}
}
- if (SELINUX_ENABLED && geteuid() == 0) {
- /* must set the real uid to 0 so the helper will not error
- out if pam is called from setuid binary (su, sudo...) */
- setuid(0);
- }
-
/* exec binary helper */
args[0] = x_strdup(UPDATE_HELPER);
args[1] = x_strdup(user);