apparmor.d/.github/workflows/main.yml

43 lines
1.2 KiB
YAML
Raw Normal View History

name: Ubuntu
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-22.04
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 \
devscripts debhelper config-package-dev \
2023-01-27 23:07:19 +01:00
auditd apparmor-profiles apparmor-utils
sudo rm /etc/apparmor.d/usr.lib.snapd.snap-confine.real
- name: Build the apparmor.d package
run: |
VERSION="0.$(git rev-list --count HEAD)-1"
dch --newversion="$VERSION" --urgency=medium --distribution=stable --controlmaint "Release $VERSION"
dpkg-buildpackage -b -d --no-sign
- name: Install apparmor.d
run: sudo dpkg --install ../apparmor.d_*_all.deb
- name: Reload AppArmor
run: |
sudo systemctl restart apparmor.service || true
sudo systemctl status apparmor.service
- name: Show AppArmor log
run: sudo aa-log
2022-10-01 19:39:20 +02:00
2023-01-28 20:11:50 +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