From 11cc43feec0e2bb7e9636acd8169676d231715e0 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Mon, 27 Sep 2021 00:21:40 +0200 Subject: pcap: Don't make pcap files world-readable Even if it's just a debugging feature, it's not nice to leak packets to everybody around. Signed-off-by: Stefano Brivio --- pcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pcap.c') diff --git a/pcap.c b/pcap.c index 1d7dd49..e9012cd 100644 --- a/pcap.c +++ b/pcap.c @@ -186,7 +186,7 @@ void pcap_init(struct ctx *c, int index) } pcap_fd = open(c->pcap, O_WRONLY | O_CREAT | O_TRUNC | O_DSYNC, - S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); + S_IRUSR | S_IWUSR); if (pcap_fd == -1) { perror("open"); return; -- cgit v1.2.3