aboutsummaryrefslogtreecommitdiffstats
path: root/net/wmnet2
diff options
context:
space:
mode:
authorjedgar <jedgar@FreeBSD.org>2001-12-20 06:45:28 +0800
committerjedgar <jedgar@FreeBSD.org>2001-12-20 06:45:28 +0800
commitac0e1c561cfba6a5701117f1623fe0b6b6120ec8 (patch)
tree1bd8bc82bf8966ee984a4f6bcdc503c8cc271bfb /net/wmnet2
parent50df18a2aaa342b35aa33e2c77dfe5331ebc9841 (diff)
downloadfreebsd-ports-graphics-ac0e1c561cfba6a5701117f1623fe0b6b6120ec8.tar.gz
freebsd-ports-graphics-ac0e1c561cfba6a5701117f1623fe0b6b6120ec8.tar.zst
freebsd-ports-graphics-ac0e1c561cfba6a5701117f1623fe0b6b6120ec8.zip
Drop setgid kmem privs before executing external programs.
Reported by: Christer Oberg <christer.oberg@gmx.net>
Diffstat (limited to 'net/wmnet2')
-rw-r--r--net/wmnet2/Makefile1
-rw-r--r--net/wmnet2/files/patch-ac10
2 files changed, 11 insertions, 0 deletions
diff --git a/net/wmnet2/Makefile b/net/wmnet2/Makefile
index 854717c273d..cfe28b7df71 100644
--- a/net/wmnet2/Makefile
+++ b/net/wmnet2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= wmnet2
PORTVERSION= 1.06
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.digitalkaos.net/linux/wmnet/download/
DISTNAME= wmnet-${PORTVERSION}
diff --git a/net/wmnet2/files/patch-ac b/net/wmnet2/files/patch-ac
new file mode 100644
index 00000000000..6f1bac1ac95
--- /dev/null
+++ b/net/wmnet2/files/patch-ac
@@ -0,0 +1,10 @@
+--- 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);