Skip to content

Commit

Permalink
Merge pull request #107 from jcristau/userns
Browse files Browse the repository at this point in the history
  • Loading branch information
jwmoss authored Dec 11, 2024
2 parents 85749bd + 3998e68 commit dccf929
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gcp.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ build {
"${path.cwd}/scripts/linux/ubuntu-2404-amd64-gui/fxci/01-bootstrap.sh",
"${path.cwd}/scripts/linux/ubuntu-2404-amd64-gui/fxci/02-additional-packages.sh",
"${path.cwd}/scripts/linux/ubuntu-2404-amd64-gui/fxci/04-wayland.sh",
"${path.cwd}/scripts/linux/common/userns.sh",
"${path.cwd}/scripts/linux/ubuntu-2404-amd64-gui/fxci/99-additional-talos-reqs.sh"
]
}
Expand Down Expand Up @@ -485,6 +486,7 @@ build {
"${path.cwd}/scripts/linux/ubuntu-2404-amd64-headless/fxci/01-bootstrap.sh",
"${path.cwd}/scripts/linux/ubuntu-2404-amd64-headless/fxci/02-additional-packages.sh",
"${path.cwd}/scripts/linux/ubuntu-2404-amd64-headless/fxci/03-aslr.sh",
"${path.cwd}/scripts/linux/common/userns.sh",
"${path.cwd}/scripts/linux/common/v4l2loopback.sh"
]
}
Expand Down
5 changes: 5 additions & 0 deletions scripts/linux/common/userns.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

# https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2046844
# The firefox sandbox relies on unprivileged user namespaces
echo 'kernel.apparmor_restrict_unprivileged_userns = 0' > /etc/sysctl.d/90-userns.conf

0 comments on commit dccf929

Please # to comment.