mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 14:03:00 +02:00
misc-progs: Remove getiptstate.
This commit is contained in:
@@ -7,7 +7,6 @@ usr/local/bin/extrahdctrl
|
||||
usr/local/bin/fireinfoctrl
|
||||
usr/local/bin/getconntracktable
|
||||
usr/local/bin/getipstat
|
||||
usr/local/bin/getiptstate
|
||||
#usr/local/bin/iowrap
|
||||
usr/local/bin/ipfirereboot
|
||||
usr/local/bin/ipsecctrl
|
||||
|
||||
@@ -29,7 +29,7 @@ SUID_PROGS = setdmzholes setportfw setxtaccess \
|
||||
ipsecctrl timectrl dhcpctrl snortctrl \
|
||||
applejuicectrl rebuildhosts backupctrl \
|
||||
logwatch openvpnctrl outgoingfwctrl \
|
||||
wirelessctrl getipstat getiptstate qosctrl launch-ether-wake \
|
||||
wirelessctrl getipstat qosctrl launch-ether-wake \
|
||||
redctrl syslogdctrl extrahdctrl sambactrl upnpctrl tripwirectrl \
|
||||
smartctrl clamavctrl addonctrl pakfire mpfirectrl wlanapctrl \
|
||||
setaliases urlfilterctrl updxlratorctrl fireinfoctrl rebuildroutes \
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
/* IPFire helper program - IPStat
|
||||
*
|
||||
* Get the list from IPTABLES -L
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
#include "setuid.h"
|
||||
|
||||
|
||||
int main(void)
|
||||
{
|
||||
if (!(initsetuid()))
|
||||
exit(1);
|
||||
|
||||
safe_system("/usr/sbin/iptstate -1rbt");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user