mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Move overlayfs test into include helper and wrap in overlayfs_kernel
By making the test a file to be included as a helper, we can reuse most of the code for a fuse_overlayfs test without copy-pasting Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
This commit is contained in:
parent
dcce4bc62f
commit
9413658277
4 changed files with 16 additions and 2 deletions
|
@ -279,7 +279,7 @@ TESTS=aa_exec \
|
||||||
named_pipe \
|
named_pipe \
|
||||||
namespaces \
|
namespaces \
|
||||||
net_raw \
|
net_raw \
|
||||||
overlayfs \
|
overlayfs_kernel \
|
||||||
open \
|
open \
|
||||||
openat \
|
openat \
|
||||||
pipe \
|
pipe \
|
||||||
|
|
14
tests/regression/apparmor/overlayfs_kernel.sh
Normal file
14
tests/regression/apparmor/overlayfs_kernel.sh
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#! /bin/bash
|
||||||
|
# Copyright (C) 2024 Canonical, Ltd.
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or
|
||||||
|
# modify it under the terms of the GNU General Public License as
|
||||||
|
# published by the Free Software Foundation, version 2 of the
|
||||||
|
# License.
|
||||||
|
|
||||||
|
#=NAME overlayfs_kernel
|
||||||
|
#=DESCRIPTION
|
||||||
|
# Verifies that file rules work in a (kernel) overlayfs
|
||||||
|
#=END
|
||||||
|
|
||||||
|
source "./overlayfs_common.inc"
|
|
@ -47,7 +47,7 @@ environment:
|
||||||
TEST/onexec: 1
|
TEST/onexec: 1
|
||||||
TEST/open: 1
|
TEST/open: 1
|
||||||
TEST/openat: 1
|
TEST/openat: 1
|
||||||
TEST/overlayfs: 1
|
TEST/overlayfs_kernel: 1
|
||||||
TEST/pipe: 1
|
TEST/pipe: 1
|
||||||
TEST/pivot_root: 1
|
TEST/pivot_root: 1
|
||||||
TEST/posix_ipc: 1
|
TEST/posix_ipc: 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue