diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2013-07-05 17:59:23 +0200 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2013-07-05 17:59:23 +0200 |
commit | 6e5ca81e42a3e5139fe059782d25c74fd776a152 (patch) | |
tree | 7df6321a4242316b844520ee69e0026e4bbeac05 /libglouglou/examples/dnsreverse.c | |
parent | gg_map: glouglou_localsniff now tailing ggsniff log (diff) | |
download | glouglou-6e5ca81e42a3e5139fe059782d25c74fd776a152.tar.xz glouglou-6e5ca81e42a3e5139fe059782d25c74fd776a152.zip |
libglouglou: dnsreverse with droppriv() now
Diffstat (limited to '')
-rw-r--r-- | libglouglou/examples/dnsreverse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libglouglou/examples/dnsreverse.c b/libglouglou/examples/dnsreverse.c index 7a68d64..e51158e 100644 --- a/libglouglou/examples/dnsreverse.c +++ b/libglouglou/examples/dnsreverse.c @@ -4,6 +4,7 @@ #include <netinet/in.h> #include <arpa/inet.h> +#include <libglouglou.h> /* for droppriv() */ #include <libggnet_dns.h> static void _cb_dns(struct in_addr *, char *, void *); @@ -32,6 +33,7 @@ main(int argc, char *argv[]) _ev_base = event_base_new(); ggdns = ggnet_dns_new(_ev_base); + droppriv("nobody", 1, NULL); /* bad practise, use dedicated user */ ggnet_dns_reverse(ggdns, &ip, _cb_dns, NULL); event_base_loopexit(_ev_base, &tv); |