You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
527 B

#!/usr/bin/env bash
sudo rm /etc/apparmor.d/usr.bin.firefox
sudo cp usr.bin.telegram-desktop /etc/apparmor.d/usr.bin.telegram-desktop
sudo cp usr.lib.firefox.firefox /etc/apparmor.d/usr.lib.firefox.firefox
sudo cp usr.bin.tor /etc/apparmor.d/usr.bin.tor
cd /tmp # added due to Profile for <redacted>/apparmor-profiles/usr.bin.telegram-desktop not found, skipping
sudo aa-enforce "usr.bin.telegram-desktop" && \
sudo aa-enforce "usr.lib.firefox.firefox" && \
sudo aa-enforce "usr.bin.tor" && \
sudo systemctl reload apparmor