1
0

AppArmor Profiles for Electrum

AppArmor Profiles for Electrum
This commit is contained in:
robertmin2
2024-04-12 01:23:53 +03:00
committed by Rogit config --global credential.helper store
parent 5f95d919df
commit dd72b5976b
4 changed files with 126 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
# Electrum AppArmor Profiles
AppArmor is a Mandatory Access Control (MAC) system which confines programs to a limited set of resources.
AppArmor confinement is provided via profiles loaded into the kernel.
## Installation
Copy the AppArmor profile from `contrib/apparmor/` to `/etc/apparmor.d/`:
```
sudo cp -R -L contrib/apparmor/* /etc/apparmor.d
```
Reload the AppArmor profiles to apply the changes:
```
sudo systemctl reload apparmor
```
Verify that the profile is loaded:
```
sudo apparmor_status
```
Look for the entry corresponding to `electrum`
## Usage
After installing the AppArmor profile, electrum will be restricted to the permissions specified in the profile.
## Compatibility
The help tab may not function as expected as browser permissions can be tricky (Tarball Binaries)
These AppArmor profiles have been tested on the following operating systems:
```
Debian 12
Ubuntu 23.10
Kali Linux 6.6
```