2000-07-04 10:09:52 +00:00
|
|
|
--- ascpu_x.c.orig Mon Jul 3 21:39:16 2000
|
|
|
|
+++ ascpu_x.c Mon Jul 3 21:39:19 2000
|
|
|
|
@@ -18,6 +18,7 @@
|
|
|
|
#include <nlist.h>
|
2000-01-30 02:19:34 +00:00
|
|
|
#include <fcntl.h>
|
2000-07-04 10:09:52 +00:00
|
|
|
#include <kvm.h>
|
|
|
|
+#include <sys/types.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __hpux__
|
|
|
|
@@ -626,6 +627,12 @@
|
2000-01-30 02:19:34 +00:00
|
|
|
#ifdef DEBUG
|
2000-07-04 10:09:52 +00:00
|
|
|
printf("ascpu: system(%s)\n",Command);
|
2000-01-30 02:19:34 +00:00
|
|
|
#endif
|
2000-07-04 10:09:52 +00:00
|
|
|
+
|
|
|
|
+ if (setgid(getgid()) != 0)
|
|
|
|
+ err(1, "Can't drop setgid privileges");
|
|
|
|
+ if (setuid(getuid()) != 0)
|
|
|
|
+ err(1, "Can't drop setuid privileges");
|
|
|
|
+
|
|
|
|
if( ! Command ) {
|
|
|
|
return;
|
|
|
|
}
|