]> git.ipfire.org Git - ipfire-2.x.git/blob - src/misc-progs/wiohelper.c
Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into next-suricata
[ipfire-2.x.git] / src / misc-progs / wiohelper.c
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-2018 Stephan Feddersen <sfeddersen@ipfire.org>
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 }