mirror of
https://github.com/bol-van/zapret.git
synced 2025-05-24 22:32:58 +03:00
nfqws,tpws: sec_harden after daemonize
This commit is contained in:
@@ -297,7 +297,6 @@ static int nfq_main(void)
|
||||
return 1;
|
||||
}
|
||||
|
||||
sec_harden();
|
||||
if (params.droproot && !droproot(params.uid, params.gid, params.gid_count) || !dropcaps())
|
||||
goto err;
|
||||
print_id();
|
||||
@@ -309,6 +308,8 @@ static int nfq_main(void)
|
||||
|
||||
if (params.daemon) daemonize();
|
||||
|
||||
sec_harden();
|
||||
|
||||
if (Fpid)
|
||||
{
|
||||
if (fprintf(Fpid, "%d", getpid())<=0)
|
||||
|
Reference in New Issue
Block a user