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

This commit is contained in:
Alexandre Pujol 2024-11-13 12:31:17 +00:00 committed by nobody43
parent 349ca76481
commit b36a980461
2 changed files with 10 additions and 0 deletions

View file

@ -97,6 +97,7 @@ jobs:
- name: Install apparmor.d
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 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