tests: first set of test fixes for uc24 (#13739)

* tests: first set of test fixes for uc24

* add details and 2 more fixes

* fix 2 more tests

* gix user-state test

* fix lp-1813365

* Add missing details

* fix listing test

this changes needs to be done like this until the os.query is-core-* is
fixed

* fix shellcheck

* fix merge saving jobs
This commit is contained in:
Sergio Cazzolato
2024-04-09 09:01:36 -03:00
committed by GitHub
parent 239f6b19ef
commit 83ff43be85
14 changed files with 103 additions and 32 deletions
+13 -2
View File
@@ -1,14 +1,25 @@
summary: Regression check for https://bugs.launchpad.net/snapd/+bug/1813365
details: |
Check security issue related to local privilege escalation via snapd socket
systems: [ubuntu-1*, ubuntu-2*, ubuntu-core-*, debian-*]
prepare: |
mount --bind logger "$(command -v adduser)"
if os.query is-core-ge 24; then
mount --bind logger "$(command -v useradd)"
else
mount --bind logger "$(command -v adduser)"
fi
mount --bind logger "$(command -v passwd)"
mount --bind logger "$(command -v usermod)"
restore: |
umount "$(command -v adduser)"
if os.query is-core-ge 24; then
umount "$(command -v useradd)"
else
umount "$(command -v adduser)"
fi
umount "$(command -v passwd)"
umount "$(command -v usermod)"
rm -f /tmp/logger.log