Skip to content
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

Fix apparmor profile for usage with enabled NotificationCommand #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iseeareddoor
Copy link

Changes:

  • Allow rw for /dev/null, which is used as stdin/out/err for the configured NotificationCommand.
  • Add include for local apparmor override file, where rules for the notification command binary can be added by the local administrator without touching the included profile for xmpp-client itself.

Remarks:

The local include could also point to a more default location (for most distros, this would probably be <local/usr.bin.xmpp-client>), but since the included apparmor profile is not named usr.bin.xmpp-client at the moment, this might be left to downstream distributors.
If desired, I could write a paragraph for the README describing how to setup the apparmor profile with enabled NotificationCommand. I tested the updated profile with a custom local override file for my NotificationCommand using debian sid and did not experience any problems.

Allow rw for /dev/null, which is used as STDIN/OUT/ERR for the configured NotificationCommand.
Add include for local apparmor override file, where rules for the notification command binary can be added by the local administrator without touching the included profile for xmpp-client itself.
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.

1 participant