Skip to content

Commit

Permalink
Attempt to fix mako issue with apparmour profile
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdp committed Mar 9, 2023
1 parent 8e8803f commit 24d0b76
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
17 changes: 17 additions & 0 deletions roles/sway/files/mako-apparmor-fix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
owner /run/user/[0-9]*/bus rw,
dbus send
bus=session
path=/org/freedesktop/DBus
interface=org.freedesktop.DBus
member={Hello,RequestName}
peer=(name=org.freedesktop.DBus),
dbus (send)
bus=session
path=/org/freedesktop/Notifications
interface=org.freedesktop.Notifications
member=NotificationClosed,
dbus (receive)
bus=session
path=/org/freedesktop/Notifications
interface=org.freedesktop.Notifications
member={Notify,NotificationClosed,GetServerInformation,GetCapabilities,CloseNotification},
6 changes: 6 additions & 0 deletions roles/sway/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
- name: Reload udev
command: udevadm control --reload-rules
become: yes

- name: Reload apparmor
become: yes
service:
name: apparmor
state: reloaded
3 changes: 3 additions & 0 deletions roles/sway/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,6 @@
src: "outputs.j2"
dest: "{{ dotfiles_user_home }}/.config/sway/config.d/05-outputs"
mode: 0664

- name: Include mako apparmor fix
include_tasks: mako-apparmor-fix.yml
9 changes: 9 additions & 0 deletions roles/sway/tasks/mako-apparmor-fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- name: Copy mako apparmor profile
become: yes
copy:
src: "{{ dotfiles_home }}/roles/sway/files/mako-apparmor-fix"
dest: /etc/apparmor.d/local/fr.emersion.Mako
owner: root
group: root
mode: 0644
notify: Reload apparmor

0 comments on commit 24d0b76

Please # to comment.