AppArmor Profiles for Electrum
AppArmor Profiles for Electrum
This commit is contained in:
committed by
Rogit config --global credential.helper store
parent
5f95d919df
commit
dd72b5976b
32
contrib/apparmor/README.md
Normal file
32
contrib/apparmor/README.md
Normal 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
|
||||
```
|
||||
Reference in New Issue
Block a user