diff options
author | Koen Kooi <koen@openembedded.org> | 2005-06-30 08:19:37 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-06-30 08:19:37 +0000 |
commit | c8e5702127e507e82e6f68a4b8c546803accea9d (patch) | |
tree | 00583491f40ecc640f2b28452af995e3a63a09d7 /packages/gpe-shield/gpe-shield-0.6 | |
parent | 87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff) |
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/gpe-shield/gpe-shield-0.6')
-rw-r--r-- | packages/gpe-shield/gpe-shield-0.6/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/gpe-shield/gpe-shield-0.6/backend-iptables.patch | 71 | ||||
-rw-r--r-- | packages/gpe-shield/gpe-shield-0.6/desktop-name.patch | 15 |
3 files changed, 86 insertions, 0 deletions
diff --git a/packages/gpe-shield/gpe-shield-0.6/.mtn2git_empty b/packages/gpe-shield/gpe-shield-0.6/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/gpe-shield/gpe-shield-0.6/.mtn2git_empty diff --git a/packages/gpe-shield/gpe-shield-0.6/backend-iptables.patch b/packages/gpe-shield/gpe-shield-0.6/backend-iptables.patch index e69de29bb2..5c306be02f 100644 --- a/packages/gpe-shield/gpe-shield-0.6/backend-iptables.patch +++ b/packages/gpe-shield/gpe-shield-0.6/backend-iptables.patch @@ -0,0 +1,71 @@ +Index: backend.c +=================================================================== +RCS file: /cvs/gpe/base/gpe-shield/backend.c,v +retrieving revision 1.8 +diff -u -r1.8 backend.c +--- backend.c 21 Jun 2004 08:54:53 -0000 1.8 ++++ backend.c 16 Aug 2004 12:17:54 -0000 +@@ -41,6 +41,7 @@ + #define IPTABLES_CMD1 "/usr/sbin/iptables" + #define IPTABLES_CMD2 "/sbin/iptables" + #define IPTABLES_CMD3 "/usr/local/sbin/iptables" ++#define IPTABLES_CMD4 "/usr/bin/iptables" + + static const char* IPTABLES_CMD = NULL; + +@@ -144,13 +145,17 @@ + void + do_clear(void) + { +- char* cmd = g_strdup_printf("%s %s",IPTABLES_CMD,"--flush"); ++ char* cmd; ++ ++ cmd = g_strdup_printf("%s %s",IPTABLES_CMD,"--flush"); + system(cmd); ++ + g_free(cmd); + cmd = g_strdup_printf("%s %s",IPTABLES_CMD,"-P INPUT ACCEPT"); /* reset input policy */ + system(cmd); + g_free(cmd); + g_free(rule_info); ++ + rule_info = NULL; + rule_count = 0; + } +@@ -387,6 +392,7 @@ + + pfd[0].fd = sock; + pfd[0].events = (POLLIN | POLLRDNORM | POLLRDBAND | POLLPRI); ++ + while (poll (pfd, 1, -1) > 0) + { + if ((pfd[0].revents & POLLERR) || (pfd[0].revents & POLLHUP)) +@@ -497,7 +503,8 @@ + IPTABLES_CMD = IPTABLES_CMD2; + else if (!access(IPTABLES_CMD3,X_OK)) + IPTABLES_CMD = IPTABLES_CMD3; +- ++ else if (!access(IPTABLES_CMD4,X_OK)) ++ IPTABLES_CMD = IPTABLES_CMD4; + } + + /* app mainloop */ +@@ -505,8 +512,16 @@ + int + suidloop (int csock) + { +- find_iptables(); +- ++ find_iptables(); ++ ++ if (IPTABLES_CMD == NULL) ++ { ++ fprintf(stderr, "Iptables not found, exiting.\n"); ++ close (sock); ++ unlink (PK_SOCKET); ++ exit (2); ++ } ++ + sock = csock; + + while (wait_message ()) ; diff --git a/packages/gpe-shield/gpe-shield-0.6/desktop-name.patch b/packages/gpe-shield/gpe-shield-0.6/desktop-name.patch index e69de29bb2..c2afd3907e 100644 --- a/packages/gpe-shield/gpe-shield-0.6/desktop-name.patch +++ b/packages/gpe-shield/gpe-shield-0.6/desktop-name.patch @@ -0,0 +1,15 @@ +Index: gpe-shield.desktop.in +=================================================================== +RCS file: /cvs/gpe/base/gpe-shield/gpe-shield.desktop.in,v +retrieving revision 1.1 +retrieving revision 1.2 +diff -u -r1.1 -r1.2 +--- gpe-shield.desktop.in 4 Jun 2004 14:51:41 -0000 1.1 ++++ gpe-shield.desktop.in 2 Sep 2004 22:16:43 -0000 1.2 +@@ -1,5 +1,5 @@ + [Desktop Entry] +-_Name=Desktop Firewall ++_Name=Network Shield + _Comment=Change security settings and access control + Exec=gpe-shield + Terminal=0 |