diff options
author | Ruediger Meier | 2016-03-09 12:01:54 +0100 |
---|---|---|
committer | Ruediger Meier | 2016-03-09 12:08:58 +0100 |
commit | 5b4ad40febbe22513057a4788a1695c6bc2446c9 (patch) | |
tree | 148f39f70edff8329e11f2546c7972b7c9a1be15 /tests/ts/swapon | |
parent | tests: udevadm settle before losetup -d (diff) | |
download | kernel-qcow2-util-linux-5b4ad40febbe22513057a4788a1695c6bc2446c9.tar.gz kernel-qcow2-util-linux-5b4ad40febbe22513057a4788a1695c6bc2446c9.tar.xz kernel-qcow2-util-linux-5b4ad40febbe22513057a4788a1695c6bc2446c9.zip |
tests: ignore swapon warnings
swapon/mkswap warns if system sets different permissions for
loop devices.
I saw this on Debian 7 (wheezy)/linux-3.2:
mkswap: /dev/loop0: insecure permissions 1660, 0660 suggested.
swapon: /dev/loop0: insecure permissions 1660, 0660 suggested.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/ts/swapon')
-rwxr-xr-x | tests/ts/swapon/devname | 3 | ||||
-rwxr-xr-x | tests/ts/swapon/fixsig | 3 | ||||
-rwxr-xr-x | tests/ts/swapon/label | 3 | ||||
-rwxr-xr-x | tests/ts/swapon/uuid | 3 |
4 files changed, 12 insertions, 0 deletions
diff --git a/tests/ts/swapon/devname b/tests/ts/swapon/devname index 978b875a0..de9a5f20c 100755 --- a/tests/ts/swapon/devname +++ b/tests/ts/swapon/devname @@ -42,6 +42,9 @@ grep -q $DEVICE /proc/swaps || ts_die "Cannot find $DEVICE in /proc/swaps" $TS_CMD_SWAPOFF $DEVICE +# swapon/mkswap warns if system sets different permissions for loop devices +sed --in-place '/insecure permissions .*, 0660 suggested/d' $TS_OUTPUT + ts_log "Success" ts_finalize diff --git a/tests/ts/swapon/fixsig b/tests/ts/swapon/fixsig index 6fceb79f8..36c7d9f76 100755 --- a/tests/ts/swapon/fixsig +++ b/tests/ts/swapon/fixsig @@ -44,6 +44,9 @@ grep -q $DEVICE /proc/swaps || ts_die "Cannot find $DEVICE in /proc/swaps" $TS_CMD_SWAPOFF $DEVICE +# swapon/mkswap warns if system sets different permissions for loop devices +sed --in-place '/insecure permissions .*, 0660 suggested/d' $TS_OUTPUT + ts_log "Success" ts_finalize diff --git a/tests/ts/swapon/label b/tests/ts/swapon/label index af7da4f29..bbcd771be 100755 --- a/tests/ts/swapon/label +++ b/tests/ts/swapon/label @@ -44,6 +44,9 @@ grep -q $DEVICE /proc/swaps || ts_die "Cannot find $DEVICE in /proc/swaps" $TS_CMD_SWAPOFF $DEVICE +# swapon/mkswap warns if system sets different permissions for loop devices +sed --in-place '/insecure permissions .*, 0660 suggested/d' $TS_OUTPUT + ts_log "Success" ts_finalize diff --git a/tests/ts/swapon/uuid b/tests/ts/swapon/uuid index 954e8cdf4..9f244f39a 100755 --- a/tests/ts/swapon/uuid +++ b/tests/ts/swapon/uuid @@ -44,6 +44,9 @@ grep -q $DEVICE /proc/swaps || ts_die "Cannot find $DEVICE in /proc/swaps" $TS_CMD_SWAPOFF $DEVICE +# swapon/mkswap warns if system sets different permissions for loop devices +sed --in-place '/insecure permissions .*, 0660 suggested/d' $TS_OUTPUT + ts_log "Success" ts_finalize |