summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Cornelius <dercorny@gentoo.org>2006-06-01 13:15:11 +0000
committerStefan Cornelius <dercorny@gentoo.org>2006-06-01 13:15:11 +0000
commitf7168adca11d2247ccdea60536ff438f22a63f46 (patch)
tree368d130f5e623edefede7d596a0fb48f8a528df9 /sys-process/vixie-cron/files
parentAdd patch to build on HPPA Linux, thanks to Guy Martin (gmsoft). (diff)
downloadhistorical-f7168adca11d2247ccdea60536ff438f22a63f46.tar.gz
historical-f7168adca11d2247ccdea60536ff438f22a63f46.tar.bz2
historical-f7168adca11d2247ccdea60536ff438f22a63f46.zip
Bumping for security bug #134194, special thanks to Eugene Ilkov
Package-Manager: portage-2.1_rc3-r2
Diffstat (limited to 'sys-process/vixie-cron/files')
-rw-r--r--sys-process/vixie-cron/files/digest-vixie-cron-4.1-r96
-rw-r--r--sys-process/vixie-cron/files/vixie-cron-4.1-setuid_check.patch29
2 files changed, 35 insertions, 0 deletions
diff --git a/sys-process/vixie-cron/files/digest-vixie-cron-4.1-r9 b/sys-process/vixie-cron/files/digest-vixie-cron-4.1-r9
new file mode 100644
index 000000000000..4b0d91076cd4
--- /dev/null
+++ b/sys-process/vixie-cron/files/digest-vixie-cron-4.1-r9
@@ -0,0 +1,6 @@
+MD5 c674b03c6e76798b1c74f6070df167cc vixie-cron-4.1-gentoo-r4.patch.bz2 4204
+RMD160 1d439c0bb473e8307a5c33e2449efdd9ca6fc4f5 vixie-cron-4.1-gentoo-r4.patch.bz2 4204
+SHA256 8de14b11da567f7859df3dcf71802f32ac1b3650ae07c6cb6dbc259e1f6da7fc vixie-cron-4.1-gentoo-r4.patch.bz2 4204
+MD5 09dc04f9879684d27c64c910174a9536 vixie-cron-4.1.tar.bz2 54246
+RMD160 a7f6aaa6deb9924d56da8dca3e2e323e0786f97e vixie-cron-4.1.tar.bz2 54246
+SHA256 fd25119b301e0e8306ec27ee912298740c5c8ae879bac02381429cf355d1122d vixie-cron-4.1.tar.bz2 54246
diff --git a/sys-process/vixie-cron/files/vixie-cron-4.1-setuid_check.patch b/sys-process/vixie-cron/files/vixie-cron-4.1-setuid_check.patch
new file mode 100644
index 000000000000..42fd8e13edd9
--- /dev/null
+++ b/sys-process/vixie-cron/files/vixie-cron-4.1-setuid_check.patch
@@ -0,0 +1,29 @@
+--- vixie-cron-4.1/do_command.c 2006-05-25 16:44:26.000000000 +0400
++++ vixie-cron-4.1.lk/do_command.c 2006-05-25 16:42:25.000000000 +0400
+@@ -240,12 +240,23 @@
+ }
+ }
+ #else
+- setgid(e->pwd->pw_gid);
++
+ initgroups(usernm, e->pwd->pw_gid);
+ #if (defined(BSD)) && (BSD >= 199103)
+ setlogin(usernm);
+ #endif /* BSD */
+- setuid(e->pwd->pw_uid); /* we aren't root after this... */
++ // setuid(e->pwd->pw_uid); /* we aren't root after this... */
++
++ if ( setgid(e->pwd->pw_gid) == -1 ) {
++ fprintf(stderr,"can't set gid for %s\n", e->pwd->pw_name);
++ _exit(1);
++ }
++
++ if ( setuid(e->pwd->pw_uid) == -1 ) {
++ fprintf(stderr,"can't set uid for %s\n", e->pwd->pw_name);
++ _exit(1);
++ }
++
+
+ #endif /* LOGIN_CAP */
+ chdir(env_get("HOME", e->envp));
+