mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-04 00:05:14 +00:00
Fix sourcing prologue.inc if parent directory contains spaces
Most `tests/regression/apparmor/*.sh` scripts contain
. $bin/prologue.inc
This will explode if one of the parent directories contains a space.
Minimized reproducer:
```
pwd=`dirname $0`
pwd=`cd $pwd ; /bin/pwd`
bin=$pwd
echo "pwd: $bin"
. $bin/prologue.inc
pwd: /tmp/foo bar
./test.sh: line 9: /tmp/foo: No such file or directory
```
Notice that test.sh tries to source `/tmp/foo` instead of `/tmp/foo bar/prologue.inc`.
The fix - as done in this commit - is to quote the prologue.inc path:
. "$bin/prologue.inc"
(cherry picked from commit e1972eb22f
)
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
committed by
John Johansen
parent
9b1d0ea3d8
commit
989bf0b3ed
@@ -19,7 +19,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
ns=aa_exec_ns
|
ns=aa_exec_ns
|
||||||
|
|
||||||
|
@@ -16,7 +16,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
# cacheloc is the top level directory of cache directories
|
# cacheloc is the top level directory of cache directories
|
||||||
cacheloc="$tmpdir/cache"
|
cacheloc="$tmpdir/cache"
|
||||||
|
@@ -16,7 +16,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
file=$tmpdir/file
|
file=$tmpdir/file
|
||||||
|
|
||||||
|
@@ -16,7 +16,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
settest transition
|
settest transition
|
||||||
at_secure=$pwd/at_secure
|
at_secure=$pwd/at_secure
|
||||||
|
@@ -17,7 +17,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
settest unix_fd_server
|
settest unix_fd_server
|
||||||
disk_img=$tmpdir/disk_img
|
disk_img=$tmpdir/disk_img
|
||||||
|
@@ -27,7 +27,7 @@ pwd=`dirname $0`
|
|||||||
pwd=`cd $pwd ; /bin/pwd`
|
pwd=`cd $pwd ; /bin/pwd`
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
TESTS="syscall_ptrace syscall_sethostname \
|
TESTS="syscall_ptrace syscall_sethostname \
|
||||||
syscall_setdomainname syscall_setpriority syscall_setscheduler \
|
syscall_setdomainname syscall_setpriority syscall_setscheduler \
|
||||||
|
@@ -17,7 +17,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
file=$tmpdir/file
|
file=$tmpdir/file
|
||||||
subfile=$tmpdir/file2
|
subfile=$tmpdir/file2
|
||||||
|
@@ -16,7 +16,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
file=$tmpdir/file
|
file=$tmpdir/file
|
||||||
subfile=$tmpdir/file2
|
subfile=$tmpdir/file2
|
||||||
|
@@ -18,7 +18,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
file=$tmpdir/file
|
file=$tmpdir/file
|
||||||
subfile=$tmpdir/file2
|
subfile=$tmpdir/file2
|
||||||
|
@@ -17,7 +17,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
file=$tmpdir/file
|
file=$tmpdir/file
|
||||||
subfile=$tmpdir/file2
|
subfile=$tmpdir/file2
|
||||||
|
@@ -18,7 +18,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
dir=$tmpdir/tmpdir
|
dir=$tmpdir/tmpdir
|
||||||
|
|
||||||
|
@@ -17,7 +17,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
# TEST1 unconfined
|
# TEST1 unconfined
|
||||||
|
|
||||||
|
@@ -63,7 +63,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
coreperm=r
|
coreperm=r
|
||||||
nocoreperm=ix
|
nocoreperm=ix
|
||||||
|
@@ -17,7 +17,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
requires_kernel_features dbus
|
requires_kernel_features dbus
|
||||||
requires_parser_support "dbus,"
|
requires_parser_support "dbus,"
|
||||||
. $bin/dbus.inc
|
. $bin/dbus.inc
|
||||||
|
@@ -17,7 +17,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
requires_kernel_features dbus
|
requires_kernel_features dbus
|
||||||
requires_parser_support "dbus,"
|
requires_parser_support "dbus,"
|
||||||
. $bin/dbus.inc
|
. $bin/dbus.inc
|
||||||
|
@@ -16,7 +16,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
requires_kernel_features dbus
|
requires_kernel_features dbus
|
||||||
requires_parser_support "dbus,"
|
requires_parser_support "dbus,"
|
||||||
. $bin/dbus.inc
|
. $bin/dbus.inc
|
||||||
|
@@ -16,7 +16,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
requires_kernel_features dbus
|
requires_kernel_features dbus
|
||||||
requires_parser_support "dbus,"
|
requires_parser_support "dbus,"
|
||||||
. $bin/dbus.inc
|
. $bin/dbus.inc
|
||||||
|
@@ -20,7 +20,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
file=$tmpdir/file
|
file=$tmpdir/file
|
||||||
file2="$tmpdir/file (deleted)"
|
file2="$tmpdir/file (deleted)"
|
||||||
|
@@ -16,7 +16,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
# load_and_verify - Generate and load a profile, then verify that raw_data
|
# load_and_verify - Generate and load a profile, then verify that raw_data
|
||||||
# matches the generated cached policy
|
# matches the generated cached policy
|
||||||
|
@@ -17,7 +17,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
helper=$pwd/env_check
|
helper=$pwd/env_check
|
||||||
setuid_helper=${tmpdir}/env_check
|
setuid_helper=${tmpdir}/env_check
|
||||||
|
@@ -14,7 +14,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
cp -pL /bin/true ${tmpdir}/true
|
cp -pL /bin/true ${tmpdir}/true
|
||||||
file=${tmpdir}/true
|
file=${tmpdir}/true
|
||||||
|
@@ -19,7 +19,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
file=/etc/group
|
file=/etc/group
|
||||||
|
|
||||||
|
@@ -17,7 +17,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
requires_kernel_features domain/stack
|
requires_kernel_features domain/stack
|
||||||
settest transition
|
settest transition
|
||||||
|
@@ -18,7 +18,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
dir=$tmpdir/tmpdir/
|
dir=$tmpdir/tmpdir/
|
||||||
|
|
||||||
|
@@ -29,7 +29,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
file=$tmpdir/file
|
file=$tmpdir/file
|
||||||
inheritor=$bin/fd_inheritor
|
inheritor=$bin/fd_inheritor
|
||||||
|
@@ -19,7 +19,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
file1=$tmpdir/file1
|
file1=$tmpdir/file1
|
||||||
file2=$tmpdir/file2
|
file2=$tmpdir/file2
|
||||||
|
@@ -20,7 +20,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
okperm=rw
|
okperm=rw
|
||||||
badperm1=r
|
badperm1=r
|
||||||
|
@@ -14,7 +14,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
ok_ix_perm=rix
|
ok_ix_perm=rix
|
||||||
badperm=r
|
badperm=r
|
||||||
|
@@ -16,7 +16,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
requires_kernel_features io_uring
|
requires_kernel_features io_uring
|
||||||
requires_parser_support "io_uring,"
|
requires_parser_support "io_uring,"
|
||||||
|
@@ -20,7 +20,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
target=$tmpdir/target
|
target=$tmpdir/target
|
||||||
linkfile=$tmpdir/linkfile
|
linkfile=$tmpdir/linkfile
|
||||||
|
@@ -20,7 +20,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
target=$tmpdir/target_
|
target=$tmpdir/target_
|
||||||
linkfile=$tmpdir/link_
|
linkfile=$tmpdir/link_
|
||||||
|
@@ -16,7 +16,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
genrandname()
|
genrandname()
|
||||||
{
|
{
|
||||||
|
@@ -14,7 +14,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
dir=$tmpdir/tmpdir/
|
dir=$tmpdir/tmpdir/
|
||||||
perms=w
|
perms=w
|
||||||
|
@@ -21,7 +21,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
file=$tmpdir/src
|
file=$tmpdir/src
|
||||||
okperm=rw
|
okperm=rw
|
||||||
|
@@ -20,7 +20,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
##
|
##
|
||||||
## A. MOUNT
|
## A. MOUNT
|
||||||
|
@@ -17,7 +17,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
cleandir()
|
cleandir()
|
||||||
{
|
{
|
||||||
|
@@ -20,7 +20,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
fifo=${tmpdir}/pipe
|
fifo=${tmpdir}/pipe
|
||||||
|
|
||||||
|
@@ -16,7 +16,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
requires_namespace_interface
|
requires_namespace_interface
|
||||||
|
|
||||||
# unique_ns - Print a randomly generated, unused namespace identifier to stdout
|
# unique_ns - Print a randomly generated, unused namespace identifier to stdout
|
||||||
|
@@ -16,7 +16,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
requires_kernel_features network_v8/af_inet
|
requires_kernel_features network_v8/af_inet
|
||||||
requires_parser_support "network ip=::1,"
|
requires_parser_support "network ip=::1,"
|
||||||
|
@@ -17,7 +17,7 @@ pwd=$(cd $pwd ; /bin/pwd)
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
dir=$tmpdir/tmpdir
|
dir=$tmpdir/tmpdir
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
srcdir=$tmpdir/src
|
srcdir=$tmpdir/src
|
||||||
mntdir=$tmpdir/mnt
|
mntdir=$tmpdir/mnt
|
||||||
|
@@ -16,7 +16,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
settest transition
|
settest transition
|
||||||
|
|
||||||
|
@@ -16,7 +16,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
settest transition
|
settest transition
|
||||||
file=$tmpdir/file
|
file=$tmpdir/file
|
||||||
|
@@ -16,7 +16,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
file=$tmpdir/file
|
file=$tmpdir/file
|
||||||
okperm=rw
|
okperm=rw
|
||||||
|
@@ -16,7 +16,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
dir=${tmpdir}
|
dir=${tmpdir}
|
||||||
subdir=deleteme
|
subdir=deleteme
|
||||||
|
@@ -26,7 +26,7 @@ pwd=$(cd ${pwd} ; /bin/pwd)
|
|||||||
|
|
||||||
bin=${pwd}
|
bin=${pwd}
|
||||||
|
|
||||||
. ${bin}/prologue.inc
|
. "${bin}/prologue.inc"
|
||||||
|
|
||||||
target=file1
|
target=file1
|
||||||
source=file2
|
source=file2
|
||||||
|
@@ -21,7 +21,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
subtest=sub
|
subtest=sub
|
||||||
|
|
||||||
|
@@ -17,7 +17,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
disk_img=$tmpdir/disk_img
|
disk_img=$tmpdir/disk_img
|
||||||
new_root=$tmpdir/new_root/
|
new_root=$tmpdir/new_root/
|
||||||
|
@@ -16,7 +16,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
requires_kernel_features ipc/posix_mqueue
|
requires_kernel_features ipc/posix_mqueue
|
||||||
requires_parser_support "mqueue,"
|
requires_parser_support "mqueue,"
|
||||||
|
@@ -21,7 +21,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
# Read permission was required for a confined process to be able to be traced
|
# Read permission was required for a confined process to be able to be traced
|
||||||
# using ptrace. This stopped being required or functioning correctly
|
# using ptrace. This stopped being required or functioning correctly
|
||||||
|
@@ -14,7 +14,7 @@ pwd=`cd $pwd ; pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
file=${tmpdir}/pwrite
|
file=${tmpdir}/pwrite
|
||||||
okperm=rw
|
okperm=rw
|
||||||
|
@@ -16,7 +16,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
requires_query_interface
|
requires_query_interface
|
||||||
|
|
||||||
settest query_label
|
settest query_label
|
||||||
|
@@ -18,7 +18,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
dir=$tmpdir/tmpdir
|
dir=$tmpdir/tmpdir
|
||||||
# x is not really needed, see chdir.sh
|
# x is not really needed, see chdir.sh
|
||||||
|
@@ -22,7 +22,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
file=$tmpdir/file
|
file=$tmpdir/file
|
||||||
file2=$tmpdir/filealpha
|
file2=$tmpdir/filealpha
|
||||||
|
@@ -18,7 +18,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
file1=$tmpdir/file1
|
file1=$tmpdir/file1
|
||||||
file2=$tmpdir/file2
|
file2=$tmpdir/file2
|
||||||
|
@@ -21,7 +21,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
file=$tmpdir/src
|
file=$tmpdir/src
|
||||||
okperm=rw
|
okperm=rw
|
||||||
|
@@ -14,7 +14,7 @@ pwd=$(cd $pwd ; /bin/pwd)
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
settest open
|
settest open
|
||||||
|
|
||||||
|
@@ -47,7 +47,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
file=$tmpdir/file
|
file=$tmpdir/file
|
||||||
dir="$tmpdir/dir/"
|
dir="$tmpdir/dir/"
|
||||||
|
@@ -17,7 +17,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
requires_kernel_features network/af_unix
|
requires_kernel_features network/af_unix
|
||||||
|
|
||||||
|
@@ -17,7 +17,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
requires_kernel_features domain/stack
|
requires_kernel_features domain/stack
|
||||||
settest transition
|
settest transition
|
||||||
|
@@ -17,7 +17,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
requires_kernel_features domain/stack
|
requires_kernel_features domain/stack
|
||||||
settest transition
|
settest transition
|
||||||
|
@@ -21,7 +21,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
##
|
##
|
||||||
## A. SWAP
|
## A. SWAP
|
||||||
|
@@ -14,7 +14,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
src=$tmpdir/src1
|
src=$tmpdir/src1
|
||||||
target=$tmpdir/target
|
target=$tmpdir/target
|
||||||
|
@@ -20,7 +20,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
##
|
##
|
||||||
## A. PTRACE
|
## A. PTRACE
|
||||||
|
@@ -20,7 +20,7 @@ sysctlbad=/proc/sys/kernel/sysrq
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
##
|
##
|
||||||
## C. SYSCTL
|
## C. SYSCTL
|
||||||
|
@@ -16,7 +16,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
requires_kernel_features ipc/sysv_mqueue
|
requires_kernel_features ipc/sysv_mqueue
|
||||||
requires_parser_support "mqueue,"
|
requires_parser_support "mqueue,"
|
||||||
|
@@ -20,7 +20,7 @@ bin=$pwd
|
|||||||
# kernel feature supported
|
# kernel feature supported
|
||||||
# need to be able to query the parser if it supports the
|
# need to be able to query the parser if it supports the
|
||||||
# kernel feature
|
# kernel feature
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
requires_any_of_kernel_features network network_v8
|
requires_any_of_kernel_features network network_v8
|
||||||
|
|
||||||
port=34567
|
port=34567
|
||||||
|
@@ -18,7 +18,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
file=${tmpdir}/file
|
file=${tmpdir}/file
|
||||||
socket=${tmpdir}/unix_fd_test
|
socket=${tmpdir}/unix_fd_test
|
||||||
|
@@ -26,7 +26,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
. $bin/unix_socket.inc
|
. $bin/unix_socket.inc
|
||||||
requires_kernel_features policy/versions/v7
|
requires_kernel_features policy/versions/v7
|
||||||
requires_kernel_features network/af_unix
|
requires_kernel_features network/af_unix
|
||||||
|
@@ -31,7 +31,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
. $bin/unix_socket.inc
|
. $bin/unix_socket.inc
|
||||||
requires_kernel_features policy/versions/v7
|
requires_kernel_features policy/versions/v7
|
||||||
requires_kernel_features network/af_unix
|
requires_kernel_features network/af_unix
|
||||||
|
@@ -26,7 +26,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
requires_kernel_features policy/versions/v6
|
requires_kernel_features policy/versions/v6
|
||||||
#af_mask for downgrade test af_unix for full test
|
#af_mask for downgrade test af_unix for full test
|
||||||
requires_any_of_kernel_features network/af_mask network_v8/af_mask
|
requires_any_of_kernel_features network/af_mask network_v8/af_mask
|
||||||
|
@@ -26,7 +26,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
. $bin/unix_socket.inc
|
. $bin/unix_socket.inc
|
||||||
requires_kernel_features policy/versions/v7
|
requires_kernel_features policy/versions/v7
|
||||||
requires_kernel_features network/af_unix
|
requires_kernel_features network/af_unix
|
||||||
|
@@ -17,7 +17,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
file=$tmpdir/file
|
file=$tmpdir/file
|
||||||
okperm=rwix
|
okperm=rwix
|
||||||
|
@@ -16,7 +16,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
requires_kernel_features namespaces/mask/userns_create
|
requires_kernel_features namespaces/mask/userns_create
|
||||||
requires_parser_support "userns,"
|
requires_parser_support "userns,"
|
||||||
|
@@ -34,7 +34,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
requires_kernel_features file/xattr
|
requires_kernel_features file/xattr
|
||||||
|
|
||||||
|
@@ -16,7 +16,7 @@ pwd=`cd $pwd ; /bin/pwd`
|
|||||||
|
|
||||||
bin=$pwd
|
bin=$pwd
|
||||||
|
|
||||||
. $bin/prologue.inc
|
. "$bin/prologue.inc"
|
||||||
|
|
||||||
file="$bin/xattrs_profile"
|
file="$bin/xattrs_profile"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user