doc: improve doc.

This commit is contained in:
Alexandre Pujol 2024-01-27 23:13:43 +00:00
parent a3b1597364
commit c68cdd14a3
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
6 changed files with 27 additions and 12 deletions

View file

@ -2,15 +2,12 @@
title: Enforce Mode
---
# Enforce Mode
The default package configuration installs all profiles in *complain* mode. This is a safety measure to ensure you are not going to break your system on initial installation. Once you have tested it, and it works fine, you can easily switch to *enforce* mode. The profiles that are not considered stable are kept in complain mode, they can be tracked in the [`dists/flags`](https://github.com/roddhjav/apparmor.d/tree/main/dists/flags) directory.
!!! warning
When reporting issue. Please ensure the profiles are in complain mode
## Install
#### :material-arch: Archlinux
@ -29,7 +26,15 @@ override_dh_auto_build:
make enforce
```
#### :simple-suse: OpenSUSE & Partial install
#### :simple-suse: OpenSUSE
In `dists/apparmor.d.spec`, replace `%make_build` by `make enforce`
```diff
- %make_build
+ make enforce
```
#### Partial install
Use the `make enforce` command to build instead of `make`