2
# $Id: pipe.sh 61 2006-05-19 18:32:14Z steve-beattie $
4
# Copyright (C) 2002-2005 Novell/SUSE
6
# This program is free software; you can redistribute it and/or
7
# modify it under the terms of the GNU General Public License as
8
# published by the Free Software Foundation, version 2 of the
13
# This test is structured similarly to named_pipe except it uses the pipe(2)
14
# syscall to create a communication channel between parent and child rather
15
# than a node in the filesystem. AppArmor does not mediate pipe io for either
16
# confined or non confined processes. This test verifies that io functions as
17
# expected for both an unconfined process and a confined process with an empty
22
pwd=`cd $pwd ; /bin/pwd`
30
# PIPE - no confinement
32
runchecktest "PIPE (no confinement)" pass nochange
38
runchecktest "PIPE (confinement)" pass nochange
40
# PIPE - in a subprofile.
42
genprofile hat:$subtest
44
runchecktest "PIPE (subprofile)" pass ${subtest}