mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
dc1a03659f
Rewords sentances as well as fixes some spelling mistakes Change Archlinux to Arch Linux Make which line to edit in PKGBUILD easier to understand
41 lines
1.2 KiB
Markdown
41 lines
1.2 KiB
Markdown
---
|
|
title: 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
|
|
|
|
- Please test in complain mode first and ensure your system boots!
|
|
- When reporting an issue, please ensure the affected profiles are in complain mode.
|
|
|
|
|
|
#### :material-arch: Arch Linux
|
|
|
|
In `PKGBUILD`, replace `make` by `make enforce`:
|
|
```diff
|
|
- make DISTRIBUTION=arch
|
|
+ make enforce DISTRIBUTION=arch
|
|
```
|
|
|
|
#### :material-ubuntu: Ubuntu & :material-debian: Debian
|
|
|
|
In `debian/rules`, add the following lines:
|
|
|
|
```make
|
|
override_dh_auto_build:
|
|
make enforce
|
|
```
|
|
|
|
#### :simple-suse: OpenSUSE
|
|
|
|
In `dists/apparmor.d.spec`, replace `%make_build` by `make enforce`
|
|
```diff
|
|
- %make_build
|
|
+ %make_build enforce
|
|
```
|
|
|
|
#### Partial install
|
|
|
|
Use the `make enforce` command to build instead of `make`
|