]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ss: escape characters in command name main
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 25 Mar 2026 23:03:02 +0000 (00:03 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Sun, 5 Apr 2026 15:50:17 +0000 (08:50 -0700)
commitbb647e93db6307c6bef8eaec85a453a3ba0dbeac
tree08d8443e99c0d29913975653e99941fd3a76cf0c
parent4942e67f71f2df8e45eff723af114644b0eb9894
ss: escape characters in command name

Since the process name is under user control with prctl(PR_SET_NAME)
it may contain escape characters to try and mess with screen output.

Reuse the existing string logic from procps (used by ps command).

Reported-by: Josiah Stearns <B00TK1D@proton.me>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Michal Kubecek <mkubecek@suse.cz>
Tested-by: Michal Kubecek <mkubecek@suse.cz>
include/utils.h
lib/Makefile
lib/escape.c [new file with mode: 0644]
misc/ss.c