2
# Copyright (C) 2002-2005 Novell/SUSE
4
# This program is free software; you can redistribute it and/or
5
# modify it under the terms of the GNU General Public License as
6
# published by the Free Software Foundation, version 2 of the
11
# Verifies that profiles are duplicated correctly for fork (the subtask
12
# receives a copy of it's parents profile). The test attempts to access the
13
# files passed as arguments for both a parent and a child. The test is
14
# repeated for permissive and restrictive profiles.
18
pwd=`cd $pwd ; /bin/pwd`
31
touch $file1 $file2 $file3
35
genprofile cap:$cap $file1:$okperm $file2:$okperm $file3:$okperm
37
runchecktest "FORK with rw" pass $file1 $file2 $file3
39
# TEST2. All will fail, but parent and child will equally fail
41
genprofile cap:$cap $file1:$badperm $file2:$badperm $file3:$badperm
43
runchecktest "FORK w/o w" pass $file1 $file2 $file3
45
# TEST3. Some pass, some fail, but parent and child will equally fail
47
genprofile cap:$cap $file1:$badperm $file2:$okperm $file3:$badperm
49
runchecktest "FORK mixed" pass $file1 $file2 $file3