diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-09-27 00:21:40 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-09-27 01:28:02 +0200 |
commit | 11cc43feec0e2bb7e9636acd8169676d231715e0 (patch) | |
tree | 2b77d44f5916835fab5516cb2d60ce67ebc7f61b | |
parent | e4b94da0af90e7ab707fd32d9e09e7bd767996df (diff) | |
download | passt-11cc43feec0e2bb7e9636acd8169676d231715e0.tar passt-11cc43feec0e2bb7e9636acd8169676d231715e0.tar.gz passt-11cc43feec0e2bb7e9636acd8169676d231715e0.tar.bz2 passt-11cc43feec0e2bb7e9636acd8169676d231715e0.tar.lz passt-11cc43feec0e2bb7e9636acd8169676d231715e0.tar.xz passt-11cc43feec0e2bb7e9636acd8169676d231715e0.tar.zst passt-11cc43feec0e2bb7e9636acd8169676d231715e0.zip |
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 <sbrivio@redhat.com>
-rw-r--r-- | pcap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |