ALT Linux Bugzilla
– Attachment 18507 Details for
Bug 53687
tcpdump -Z root immediately exits 1
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Do not chroot if not changing UID
file_53687.txt (text/plain), 699 bytes, created by
Arseny Maslennikov
on 2025-05-19 17:58:04 MSK
(
hide
)
Description:
Do not chroot if not changing UID
Filename:
MIME Type:
Creator:
Arseny Maslennikov
Created:
2025-05-19 17:58:04 MSK
Size:
699 bytes
patch
obsolete
>diff --git a/tcpdump.c b/tcpdump.c >index 7a8f4613..c2f681b8 100644 >--- a/tcpdump.c >+++ b/tcpdump.c >@@ -2036,8 +2036,13 @@ main(int argc, char **argv) > /* Run with '-Z root' to restore old behaviour */ > if (!username) > username = WITH_USER; >- else if (strcmp(username, "root") == 0) >+ else if (strcmp(username, "root") == 0) { > username = NULL; >+ if (chroot_dir) { >+ warning("chroot to %s disabled", chroot_dir); >+ chroot_dir = NULL; >+ } >+ } > } > #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 53687
: 18507