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
# Link requires 'l' permission on the link and that permissions on the
12
#links rwmx perms are a subset of the targets perms, and if x is present
13
#that the link and target have the same x qualifiers.
14
# This test verifies matching, non-matching and missing link
15
# permissions in a profile.
19
pwd=`cd $pwd ; /bin/pwd`
25
target=$tmpdir/target_
26
linkfile=$tmpdir/link_
28
tfiles=`$bin/link_subset --filenames $target`
29
lfiles=`$bin/link_subset --filenames $linkfile`
31
# unconfined test - no target file
32
#runchecktest "unconfined - no target" fail $target $linkfile
36
#runchecktest "unconfined" pass $target $linkfile
39
# Link no perms on link or target - no target file
41
#runchecktest "link no target (no perms) -> target (no perms)" fail $target $linkfile
45
for f in $tfiles ; do touch ${f%%:*} ; done
47
# Link no perms on link or target
48
#runchecktest "link (no perms) -> target (no perms)" fail $target $linkfile
51
genprofile $tfiles $lfiles hat:remove_link /**:rw
52
runchecktest "link_subset" pass $target $linkfile