diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-06-28 23:20:35 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-06-28 23:20:35 +0000 |
commit | b2c50ce17eab93086aa4e1e1faae572082b6c8cc (patch) | |
tree | 7fcf3fe61db454a3610e8d93506ccccd809bac3f /libs | |
parent | d6a68a48238a2d5cc1af95c93a4822d9a73fb9fd (diff) |
fix running boa as root
Diffstat (limited to 'libs')
-rw-r--r-- | libs/sgi-webuci/boa-patches/120-setuid_fix.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/sgi-webuci/boa-patches/120-setuid_fix.patch b/libs/sgi-webuci/boa-patches/120-setuid_fix.patch new file mode 100644 index 000000000..1ea62b4c3 --- /dev/null +++ b/libs/sgi-webuci/boa-patches/120-setuid_fix.patch @@ -0,0 +1,13 @@ +Index: boa-0.94.13/src/boa.c +=================================================================== +--- boa-0.94.13.orig/src/boa.c 2002-07-23 17:50:29.000000000 +0200 ++++ boa-0.94.13/src/boa.c 2008-06-29 01:12:31.000000000 +0200 +@@ -222,7 +222,7 @@ + /* test for failed-but-return-was-successful setuid + * http://www.securityportal.com/list-archive/bugtraq/2000/Jun/0101.html + */ +- if (setuid(0) != -1) { ++ if ((server_uid != 0) && (setuid(0) != -1)) { + DIE("icky Linux kernel bug!"); + } + } else { |