diff options
author | jedgar <jedgar@FreeBSD.org> | 2001-12-20 06:45:28 +0800 |
---|---|---|
committer | jedgar <jedgar@FreeBSD.org> | 2001-12-20 06:45:28 +0800 |
commit | ac0e1c561cfba6a5701117f1623fe0b6b6120ec8 (patch) | |
tree | 1bd8bc82bf8966ee984a4f6bcdc503c8cc271bfb /net/wmnet2/files | |
parent | 50df18a2aaa342b35aa33e2c77dfe5331ebc9841 (diff) | |
download | freebsd-ports-gnome-ac0e1c561cfba6a5701117f1623fe0b6b6120ec8.tar.gz freebsd-ports-gnome-ac0e1c561cfba6a5701117f1623fe0b6b6120ec8.tar.zst freebsd-ports-gnome-ac0e1c561cfba6a5701117f1623fe0b6b6120ec8.zip |
Drop setgid kmem privs before executing external programs.
Reported by: Christer Oberg <christer.oberg@gmx.net>
Diffstat (limited to 'net/wmnet2/files')
-rw-r--r-- | net/wmnet2/files/patch-ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/net/wmnet2/files/patch-ac b/net/wmnet2/files/patch-ac new file mode 100644 index 000000000000..6f1bac1ac955 --- /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); |