Thread View: linux.debian.bugs.dist
1 messages
1 total messages
Started by debugdeb26
Mon, 09 Nov 2026 18:30
Bug#1153537: tcpdump: AppArmor profile blocks -z compression (.gz/.bz2) when rotating files
Author: debugdeb26
Date: Mon, 09 Nov 2026 18:30
Date: Mon, 09 Nov 2026 18:30
50 lines
5298 bytes
5298 bytes
This is a multi-part message in MIME format.
--------------Ecs6qA073lUADrFZn1eTJeLc
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Package: tcpdump
Version: 4.99.5-2
Severity: normal
Tags: patch
When using 'tcpdump -z gzip' (or bzip2) to compress rotated capture
files, the compression fails due to an AppArmor permission error.
While the AppArmor profile already contains the execution rights for the
compressors via '/{usr/,}bin/gzip ixr,', it lacks the file permissions
to write the resulting '.gz' or '.bz2' files. AppArmor blocks the write
operation as soon as the suffix is appended to the original file name.
Extending the allowed file patterns with the choice syntax '{,.gz,.bz2}'
fixes the issue for both standard and numbered suffixes (with -W).
I have attached a patch that resolves the issue by allowing read/write
access to the compressed variants.
According to the package sources, the bug is still present in newer
versions and the patch should apply unmodified.
Thank you
--------------Ecs6qA073lUADrFZn1eTJeLc
Content-Type: text/plain; charset=UTF-8;
name="debian-tcpdump-apparmor-patch.txt"
Content-Disposition: attachment; filename="debian-tcpdump-apparmor-patch.txt"
Content-Transfer-Encoding: base64
LS0tIC9ldGMvYXBwYXJtb3IuZC91c3IuYmluLnRjcGR1bXAKKysrIC9ldGMvYXBwYXJtb3Iu
ZC91c3IuYmluLnRjcGR1bXAKQEAgLTUzLDEzICs1MywxMyBAQAogICBvd25lciBAe0hPTUV9
LyoqIHJ3LAogCiAgICMgZm9yIC1yLCAtRiBhbmQgLXcKLSAgLyoqLltwUF1bY0NdW2FBXVtw
UF0gcncsCi0gIC8qKi5bcFBdW2NDXVthQV1bcFBdW25OXVtnR10gcncsCi0gIC8qKi5bY0Nd
W2FBXVtwUF0gcncsCisgIC8qKi5bcFBdW2NDXVthQV1bcFBdeywuZ3osLmJ6Mn0gcncsCisg
IC8qKi5bcFBdW2NDXVthQV1bcFBdW25OXVtnR117LC5neiwuYnoyfSBydywKKyAgLyoqLltj
Q11bYUFdW3BQXXssLmd6LC5iejJ9IHJ3LAogICAjIC1XIGFkZHMgYSBudW1lcmljYWwgc3Vm
Zml4Ci0gIC8qKi5bcFBdW2NDXVthQV1bcFBdWzAtOV0qIHJ3LAotICAvKiouW3BQXVtjQ11b
YUFdW3BQXVtuTl1bZ0ddWzAtOV0qIHJ3LAotICAvKiouW2NDXVthQV1bcFBdWzAtOV0qIHJ3
LAorICAvKiouW3BQXVtjQ11bYUFdW3BQXVswLTldKnssLmd6LC5iejJ9IHJ3LAorICAvKiou
W3BQXVtjQ11bYUFdW3BQXVtuTl1bZ0ddWzAtOV0qeywuZ3osLmJ6Mn0gcncsCisgIC8qKi5b
Y0NdW2FBXVtwUF1bMC05XSp7LC5neiwuYnoyfSBydywKIAogICAjIGZvciBjb252ZW5pZW5j
ZSB3aXRoIC1yIChpZSwgcmVhZCBwY2FwIGZpbGVzIGZyb20gb3RoZXIgc291cmNlcykKICAg
L3Zhci9sb2cvc25vcnQvKmxvZyogciwK
--------------Ecs6qA073lUADrFZn1eTJeLc--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads