diff options
author | Chris D. Faulhaber <jedgar@FreeBSD.org> | 2001-12-19 22:45:28 +0000 |
---|---|---|
committer | Chris D. Faulhaber <jedgar@FreeBSD.org> | 2001-12-19 22:45:28 +0000 |
commit | 4695eaef2e4de9b318f9a035f8fd460637b02976 (patch) | |
tree | 5f707ea0b6676ddbaef831f2035816bfe37dc909 /net/wmnet2/files/patch-ac | |
parent | Update to 6.2.1. Fix RESTRICTED line. Shorten list of broken features. (diff) |
Drop setgid kmem privs before executing external programs.
Reported by: Christer Oberg <christer.oberg@gmx.net>
Notes
Notes:
svn path=/head/; revision=51870
Diffstat (limited to '')
-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); |