#!/bin/sh

. ./test-functions

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