doc: expand on the enforce mode swicth.

This commit is contained in:
Alexandre Pujol 2022-10-06 21:44:57 +01:00
parent e226f4eb03
commit d629ac5788
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -170,12 +170,18 @@ Then, reload the apparmor rules with `sudo systemctl restart apparmor`.
## Enfore Mode ## Enfore Mode
The default package configuration installs all profile in *complain* mode. The default package configuration installs all profile in *complain* mode.
You can easily switch to *enforce* mode. To do this, edit `PKGBUILD` on Archlinux or `debian/rules` on Debian and remove the `--complain` option to the configure script. Then build the package as usual: Once you tested them and it works fine, you can easily switch to *enforce* mode.
To do this, edit `PKGBUILD` on Archlinux or `debian/rules` on Debian and remove
the `--complain` option to the configure script. Then build the package as usual:
```diff ```diff
- ./configure --complain - ./configure --complain
+ ./configure + ./configure
``` ```
Do not worry, the profiles that are not considered stable are kept in complain mode.
They can be tracked in the `dists/flags` directory.
## Troubleshooting ## Troubleshooting
**AppArmor messages** **AppArmor messages**