Skip to content

Commit

Permalink
Merge pull request #8484 from zyga/fix/ignore-leaking-cgroups
Browse files Browse the repository at this point in the history
tests: ignore user@12345.service hierarchy
  • Loading branch information
sergiocazzolato committed Apr 14, 2020
2 parents 5f52d06 + 859e85c commit 5a87778
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/main/snap-confine-undesired-mode-group/task.yaml
Expand Up @@ -17,8 +17,9 @@ execute: |
# snap-confine (which includes snap-update-ns and snap-discard-ns) ran as
# the group of the calling user and did not manage that properly.
for dname in /run/snapd /sys/fs/cgroup /tmp/snap.*; do
find "$dname" -user test >> wrong-user.txt
find "$dname" -group test >> wrong-group.txt
# Filter out cgroups that are expected to be owned by the test user.
find "$dname" -user test ! -path '*/user@12345.service/*' >> wrong-user.txt
find "$dname" -group test ! -path '*/user@12345.service/*' >> wrong-group.txt
# Filter out the following elements:
# - sockets, we don't create any and there are some that are 777
# - symbolic links, those are always 777
Expand Down

0 comments on commit 5a87778

Please sign in to comment.