#!/bin/sh

# See also test-case-ps-taint.

. ./test-functions

echo -n "Tainted /proc/<pid>/cmdline test:	"
_cat=$(copy cat)
cat confidential - <&3 > /dev/null & # See test-functions for f.d. 3.
pid=$!
sleep 1 # Allow cat to read.
test_taint_logged $_cat /proc/$pid/cmdline
kill $pid
rm -f $_cat
