freebsd-ports/net/wmnet2/files/patch-ac
Chris D. Faulhaber 4695eaef2e Drop setgid kmem privs before executing external programs.
Reported by:	Christer Oberg <christer.oberg@gmx.net>
2001-12-19 22:45:28 +00:00

10 lines
347 B
Text

--- wmnet.c.orig Thu May 4 21:01:14 2000
+++ wmnet.c Wed Dec 19 17:43:40 2001
@@ -732,6 +732,7 @@
case ButtonPress:
if(event.xbutton.button == Button1 && click_command != NULL) {
if (fork() == 0) {
+ setgid(getgid());
execl("/bin/sh", "sh", "-c", click_command, NULL);
perror("wmnet: execl()");
exit(15);