2 # Ensure that chcon fails when it should.
3 # These tests don't use any actual SE Linux syscalls.
5 if test "$VERBOSE" = yes; then
13 # neither context nor file
14 chcon 2> /dev/null && fail=1
17 chcon CON 2> /dev/null && fail=1
21 chcon --reference=f 2> /dev/null && fail=1
24 chcon -u anyone 2> /dev/null && fail=1