]>
Commit | Line | Data |
---|---|---|
0d6cc79d SF |
1 | /* wiohelper - a Who Is Online? Addon helper program |
2 | * | |
3 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
4 | * | |
5 | * This program is distributed under the terms of the GNU General Public | |
6 | * Licence. See the file COPYING for details. | |
7 | * | |
8 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
9 | * | |
10 | * IPFire.org - A linux based firewall | |
11 | * Copyright (C) 2017 Stephan Feddersen <addons@h-loit.de> | |
12 | * | |
13 | * All Rights Reserved. | |
14 | * | |
15 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
16 | * | |
17 | * Simple program intended to be installed setuid(0) that can be used from WIO | |
18 | * | |
19 | */ | |
20 | ||
21 | #include "setuid.h" | |
22 | ||
23 | int main(void) | |
24 | { | |
25 | if (!(initsetuid())) | |
26 | exit(1); | |
27 | ||
28 | safe_system("/var/ipfire/wio/wio.pl"); | |
29 | ||
30 | return 0; | |
31 | } |