]> granicus.if.org Git - procps-ng/commit
ps: address a potential 'newline' quirk the libselinux
authorJim Warner <james.warner@comcast.net>
Wed, 7 Aug 2013 17:58:57 +0000 (12:58 -0500)
committerJaromir Capik <jcapik@redhat.com>
Fri, 9 Aug 2013 15:58:52 +0000 (17:58 +0200)
commit7c4894dd222ff951e9b8a7efce00a9d9ab9ee586
tree8de580266d95d21c0ecbf2b8c33ccaf65c066736
parent46a1356219cfab67240704af9cd73b58a20d4232
ps: address a potential 'newline' quirk the libselinux

Sometimes with libselinux present but SELinux inactive
the context reported is "unconfined" which contains an
embedded newline. This then causes misalignment of any
subsequent data. So, ps will now protect against that.

Reference(s):
http://www.freelists.org/post/procps/enablelibselinux-switch,14

Signed-off-by: Jim Warner <james.warner@comcast.net>
ps/output.c