]> git.ipfire.org Git - ipfire-2.x.git/blame - src/misc-progs/firewallctrl.c
IDS: Rename sourcefire VRT rulesets to Talos VRT rulesets
[ipfire-2.x.git] / src / misc-progs / firewallctrl.c
CommitLineData
b4f8d26c
MT
1/* This file is part of the IPFire Firewall.
2 *
3 * This program is distributed under the terms of the GNU General Public
4 * Licence. See the file COPYING for details.
5 *
6 */
7
0e430797
MT
8#include <unistd.h>
9
b4f8d26c
MT
10#include "setuid.h"
11
12int main(int argc, char *argv[]) {
b4f8d26c
MT
13 if (!(initsetuid()))
14 exit(1);
15
73372ed4 16 int retval = safe_system("/usr/lib/firewall/rules.pl");
0e430797
MT
17
18 /* If rules.pl has been successfully executed, the indicator
19 * file is removed. */
20 if (retval == 0) {
6d8eb5de 21 unlink("/var/ipfire/firewall/reread");
0e430797
MT
22 }
23
b4f8d26c
MT
24 return 0;
25}