mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user