Skip to content

Fix syntax error in Apparmor profile #7876

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2025
Merged

Fix syntax error in Apparmor profile #7876

merged 1 commit into from
Apr 9, 2025

Conversation

inventor500
Copy link
Contributor

@inventor500 inventor500 commented Mar 24, 2025

The executable path must be quoted instead of using an escape character.
See man apparmor.d(5), under "Unquoted Profile Name" - "Rules with embedded spaces or tabs must be quoted."

Before this commit, running aa-enforce /opt/Mullvad\ VPN/mullvad-gui (as root) returned an error:

ERROR: Syntax Error: Unknown line found in file /etc/apparmor.d/mullvad line 5:
    profile mullvad /opt/Mullvad\ VPN/mullvad-gui { userns,

This change is Reviewable

Copy link
Member

@dlon dlon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

The executable path must be quoted instead of using an escape
character.
See man apparmor.d(5), under "Unquoted Profile Name" - "Rules with
embedded spaces or tabs must be quoted."
@dlon dlon merged commit 56f4ce0 into mullvad:main Apr 9, 2025
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants