2021-12-02 13:35:13 +01:00
|
|
|
name: Ubuntu
|
|
|
|
|
|
|
|
on: [push, pull_request, workflow_dispatch]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-05-21 19:17:29 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2021-12-02 13:35:13 +01:00
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install Build dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update -q
|
|
|
|
sudo apt-get install -y \
|
2022-10-16 13:05:28 +02:00
|
|
|
devscripts debhelper config-package-dev \
|
2023-01-27 23:07:19 +01:00
|
|
|
auditd apparmor-profiles apparmor-utils
|
2022-03-31 22:19:30 +02:00
|
|
|
sudo rm /etc/apparmor.d/usr.lib.snapd.snap-confine.real
|
2021-12-02 13:35:13 +01:00
|
|
|
|
|
|
|
- name: Build the apparmor.d package
|
|
|
|
run: dpkg-buildpackage -b -d --no-sign
|
|
|
|
|
|
|
|
- name: Install apparmor.d
|
|
|
|
run: sudo dpkg --install ../apparmor.d_*_all.deb
|
|
|
|
|
2022-05-21 19:17:29 +02:00
|
|
|
- name: Reload AppArmor
|
|
|
|
run: |
|
|
|
|
sudo systemctl restart apparmor.service || true
|
|
|
|
sudo systemctl status apparmor.service
|
2021-12-02 13:35:13 +01:00
|
|
|
|
2022-05-21 19:17:29 +02:00
|
|
|
- name: Show AppArmor log
|
|
|
|
run: sudo aa-log
|
2022-10-01 19:39:20 +02:00
|
|
|
|
2023-01-27 23:00:28 +01:00
|
|
|
- name: Ensure compatibility with some AppArmor userspace tools
|
|
|
|
run: sudo aa-enforce /etc/apparmor.d/aa-notify
|
|
|
|
|
2022-10-01 19:39:20 +02:00
|
|
|
- name: Show Number of loaded profile
|
|
|
|
run: sudo aa-status --profiled
|