summaryrefslogtreecommitdiff
path: root/src/test/test-selinux.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-05-16 21:50:35 -0400
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commitbbc6a6a0caba41c00c1dfd9a01c7129efaa5fe56 (patch)
tree477456083f6758dc90bf7ef8daaf43c959392e82 /src/test/test-selinux.c
parentae22dea58699350462ac7100283bec6919a60765 (diff)
process-util: also filter non-printable characters in get_process_com()
We already do that in get_process_cmdline(), which is very similar in behaviour otherwise. Hence, let's be safe and also filter them in get_process_comm(). Let's try to retain as much information as we can though and escape rather than suppress unprintable characters. Let's not increase comm names beyond the kernel limit on such names however. Also see discussion about this here: https://marc.info/?l=linux-api&m=152649570404881&w=2
Diffstat (limited to 'src/test/test-selinux.c')
0 files changed, 0 insertions, 0 deletions