From owner-freebsd-bugs@freebsd.org Sat Jun 4 18:43:44 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 89DEDB6A16C for ; Sat, 4 Jun 2016 18:43:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 62308125A for ; Sat, 4 Jun 2016 18:43:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u54Ihi2h094968 for ; Sat, 4 Jun 2016 18:43:44 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 210031] tcpdump -G flag unable to roll over pcap files Date: Sat, 04 Jun 2016 18:43:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: mshirk@daemon-security.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2016 18:43:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210031 Bug ID: 210031 Summary: tcpdump -G flag unable to roll over pcap files Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: mshirk@daemon-security.com Tested on the FreeBSD 11 Current: FreeBSD 11.0-ALPHA2 FreeBSD 11.0-ALPHA2 #0 r301230: Fri Jun 3 03:01:37 UTC 2016 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 Ideally, tcpdump can be used to log network traffic to disk and roll the pc= ap files based on a time setting, such as 60 seconds with -G 60. On 11-Current, it appears that there is an issue with capabilities in using this feature. After 60 seconds with -G 60, tcpdump will write the file, but= it will be unable to open up and write to a new file. Here is the output from the cli (11-ALPHA Live CD under bhyve ) root@:~ # tcpdump -i vtnet0 -nns 0 -G 3 -w /tmp/test.pcap tcpdump: listening on vtnet0, link-type EN10MB (Ethernet), capture size 262= 144 bytes tcpdump: /tmp/test.pcap: Not permitted in capability mode root@:~ # ls -ltra /tmp total 36 drwxr-xr-x 17 root wheel 4096 Jun 3 03:16 .. drwxrwxr-x 2 root operator 512 Jun 4 14:35 .snap drwxrwxrwt 2 root wheel 512 Jun 4 14:35 .X11-unix drwxrwxrwt 2 root wheel 512 Jun 4 14:35 .XIM-unix drwxrwxrwt 2 root wheel 512 Jun 4 14:35 .ICE-unix drwxrwxrwt 2 root wheel 512 Jun 4 14:35 .font-unix drwxrwxrwt 8 root wheel 512 Jun 4 14:38 . drwxr-xr-x 2 root wheel 512 Jun 4 14:38 bsdinstall_etc -rw-r--r-- 1 root wheel 24 Jun 4 14:41 test.pcap root@:~ # --=20 You are receiving this mail because: You are the assignee for the bug.=