Skip to content

Fix apparmor profile for usage with enabled NotificationCommand#97

Open
iseeareddoor wants to merge 1 commit intoagl:masterfrom
iseeareddoor:apparmor-notification-fixes
Open

Fix apparmor profile for usage with enabled NotificationCommand#97
iseeareddoor wants to merge 1 commit intoagl:masterfrom
iseeareddoor:apparmor-notification-fixes

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