File: task.yaml

package info (click to toggle)
snapd 2.71-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 79,536 kB
  • sloc: ansic: 16,114; sh: 16,105; python: 9,941; makefile: 1,890; exp: 190; awk: 40; xml: 22
file content (21 lines) | stat: -rw-r--r-- 598 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
summary: Ensure that namespaces do not leak through homedirs

details: |
    Ensure that layouts on /var/lib/subdir coupled with homedirs=/var/lib
    do not cause hostfs to leak to the initial mount namespace.

systems:
    - -ubuntu-core-*

prepare: |
    snap set system homedirs=/var/lib
    # This snap has a layout for /var/lib/demo, which is relevant here.
    "$TESTSTOOLS"/snaps-state install-local test-snapd-layout

restore: |
    snap unset system homedirs

execute: |
    NOMATCH hostfs </proc/self/mountinfo
    test-snapd-layout.sh -c "true"
    NOMATCH hostfs </proc/self/mountinfo