diff options
author | Tomas Mraz <tm@t8m.info> | 2009-05-11 14:52:31 +0000 |
---|---|---|
committer | Tomas Mraz <tm@t8m.info> | 2009-05-11 14:52:31 +0000 |
commit | 538c9efe38bfc96a2cc5355b26a70a4e2957158a (patch) | |
tree | 0a1031d41b54a29aba7749e0d741917893a5c8ac | |
parent | 313c187b8a8b0b2c8676e67d69c53574f6abe65c (diff) | |
download | pam-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-- | ChangeLog | 5 | ||||
-rw-r--r-- | modules/pam_unix/pam_unix_passwd.c | 6 |
2 files changed, 5 insertions, 6 deletions
@@ -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); |