]> git.pld-linux.org Git - packages/dosemu.git/blame - dosemu-0.98.1-security.patch
- release 13.
[packages/dosemu.git] / dosemu-0.98.1-security.patch
CommitLineData
bc64ce1d
JR
1--- dosemu-0.98.1/src/base/init/config.c.security Thu Sep 10 17:22:11 1998
2+++ dosemu-0.98.1/src/base/init/config.c Tue Sep 15 18:54:14 1998
3@@ -627,6 +627,11 @@
4 case 'f':
5 {
6 FILE *f;
7+ if (!get_orig_euid()) {
8+ /* we are running suid root as user */
9+ fprintf(stderr, "Sorry, -F option not allowed here\n");
10+ exit(1);
11+ }
12 enter_priv_off();
13 f=fopen(optarg, "r");
14 leave_priv_setting();
15--- dosemu-0.98.1/src/base/init/parser.y.security Thu Sep 10 17:20:50 1998
16+++ dosemu-0.98.1/src/base/init/parser.y Tue Sep 15 19:00:55 1998
17@@ -2508,7 +2508,8 @@
18 pwd->pw_name);
19 if(log_syslog>=1) {
20 fprintf(stderr, "This event will be logged!\n");
21- sprintf(buf, "Illegal DOSEMU start attempt by %s (uid=%i)",
22+ snprintf(buf, sizeof(buf),
23+ "Illegal DOSEMU start attempt by %s (uid=%i)",
24 pwd->pw_name, uid);
25 write_to_syslog(buf);
26 }
27@@ -2516,7 +2517,8 @@
28 }
29 else {
30 if(log_syslog>=2) {
31- sprintf(buf, "DOSEMU started%s by %s (uid/euid=%i/%i)",
32+ snprintf(buf, sizeof(buf),
33+ "DOSEMU started%s by %s (uid/euid=%i/%i)",
34 (can_do_root_stuff && !under_root_login)? " suid root" : "",
35 pwd->pw_name, uid, get_orig_euid());
36 write_to_syslog(buf);
This page took 0.064907 seconds and 4 git commands to generate.