mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-25 18:32:57 +02:00
32 lines
770 B
C
32 lines
770 B
C
/* wiohelper - a Who Is Online? Addon helper program
|
|
*
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* This program is distributed under the terms of the GNU General Public
|
|
* Licence. See the file COPYING for details.
|
|
*
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* IPFire.org - A linux based firewall
|
|
* Copyright (C) 2017-2018 Stephan Feddersen <sfeddersen@ipfire.org>
|
|
*
|
|
* All Rights Reserved.
|
|
*
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
*
|
|
* Simple program intended to be installed setuid(0) that can be used from WIO
|
|
*
|
|
*/
|
|
|
|
#include "setuid.h"
|
|
|
|
int main(void)
|
|
{
|
|
if (!(initsetuid()))
|
|
exit(1);
|
|
|
|
safe_system("/var/ipfire/wio/wio.pl");
|
|
|
|
return 0;
|
|
}
|