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`
26
linkfile=$tmpdir/linkfile
32
PERMS="r w m ix px ux Px Ux l rw rm rix rpx rux rPx rUx rl wm wix wpx wux \
33
wPx wUx wl mix mpx mux mPx mUx ml ixl pxl uxl Pxl Uxl rwm rwix rwpx \
34
rwux rwPx rwUx rwl rmix rmpx rmux rmPx rmUx rml wmix wmpx wmux wmPx \
35
wmUx wml mixl mpxl muxl mPxl mUxl rwmix rwmpx rwmux rwmPx rwmUx \
36
rwml wmixl wmpxl wmuxl wmPxl wmUxl rwmixl rwmpxl rwmuxl rwmPxl \
40
# unconfined test - no target file
41
runchecktest "unconfined - no target" fail $target $linkfile
45
runchecktest "unconfined" pass $target $linkfile
48
# Link no perms on link or target - no target file
50
runchecktest "link no target (no perms) -> target (no perms)" fail $target $linkfile
54
# Link no perms on link or target
55
runchecktest "link (no perms) -> target (no perms)" fail $target $linkfile