Skip to content

Commit

Permalink
Add AppArmor profile
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Sep 21, 2024
1 parent 2bda11c commit be76ddf
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -457,11 +457,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get release info
id: get_release_info
uses: kaliber5/action-get-release@v1
with:
token: ${{ github.token }}
- name: Publish AppArmor profile
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release_info.outputs.upload_url }}
asset_path: advantagescope.AppArmor
asset_name: advantagescope.AppArmor
asset_content_type: "text/plain"
- name: Edit release
uses: irongut/EditRelease@v1.2.0
with:
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ Feedback, feature requests, and bug reports are welcome on the [issues page](htt
1. Find the [latest release](https://github.com/Mechanical-Advantage/AdvantageScope/releases/latest) under "Releases".
2. Download the appropriate build based on the OS & architecture. AdvantageScope supports Windows, macOS, and Linux on both x86 and ARM architectures.

> [!IMPORTANT]
> Before running AppImage builds on Ubuntu 23.10 or later, you must download the AppArmor profile from the releases page and copy it to `/etc/apparmor.d`.
## Building

To install Node.js dependencies, run:
Expand Down
12 changes: 12 additions & 0 deletions advantagescope.AppArmor
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This profile allows everything and only exists to give the
# application a name instead of having the label "unconfined"

abi <abi/4.0>,
include <tunables/global>

profile advantagescope /home/**/advantagescope-*.AppImage flags=(unconfined) {
userns,

# Site-specific additions and overrides. See local/README for details.
include if exists <local/advantagescope>
}

0 comments on commit be76ddf

Please sign in to comment.