Skip to content

Commit feaccd5

Browse files
committed
Use non procfs file path and use host pid namespace
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
1 parent ead69f7 commit feaccd5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/build_and_test.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
checks: write
129129
container:
130130
image: ${{ needs.get-dev-image.outputs.image-with-tag }}
131-
options: --privileged
131+
options: --privileged --pid=host
132132
if: ${{ needs.generate-matrix.outputs.matrix && (toJson(fromJson(needs.generate-matrix.outputs.matrix)) != '[]') }}
133133
strategy:
134134
matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
@@ -163,9 +163,8 @@ jobs:
163163
run: |
164164
# Github actions container runner creates a docker network without IPv6 support. We enable it manually.
165165
sysctl -w net.ipv6.conf.lo.disable_ipv6=0
166-
cat /proc/1/root/sys/kernel/security/lsm
167-
echo 0 > /proc/1/root/proc/sys/kernel/apparmor_restrict_unprivileged_userns
168166
sysctl -w kernel.unprivileged_userns_clone=1
167+
bash -c "echo 0 > /proc/sys/kernel/apparmor_restrict_unprivileged_userns"
169168
./scripts/bazel_ignore_codes.sh test ${{ matrix.args }} --target_pattern_file=target_files/${{ matrix.tests }} \
170169
2> >(tee bazel_stderr)
171170
- name: Parse junit reports

0 commit comments

Comments
 (0)