ci(github): set local tunable for github actions.

This commit is contained in:
Alexandre Pujol 2024-11-13 12:31:17 +00:00
parent 24ea5f0a3a
commit 3013c1ea5a
Failed to generate hash of commit
2 changed files with 10 additions and 0 deletions

View file

@ -97,6 +97,7 @@ jobs:
- name: Install apparmor.d - name: Install apparmor.d
run: | run: |
sudo install -Dm0644 tests/github.local /etc/apparmor.d/tunables/global.d/github.local
sudo dpkg --install .pkg/apparmor.d_*_amd64.deb || true sudo dpkg --install .pkg/apparmor.d_*_amd64.deb || true
sudo systemctl restart apparmor.service sudo systemctl restart apparmor.service

9
tests/github.local Normal file
View file

@ -0,0 +1,9 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
# Local tunables addition for bats integration tests on Github Action
@{p_dbus_system}+=unconfined
@{p_dbus_session}+=unconfined
@{p_dbus_accessibility}+=unconfined