Apparmor slapd instructions.

Add instructions on how to avoid apparmor preventing slapd execution for
running unit tests.
This commit is contained in:
Éloi Rivard 2022-11-14 18:32:31 +01:00
parent 94397e708d
commit ed609c99e9
2 changed files with 10 additions and 0 deletions

View file

@ -20,6 +20,7 @@ Added
*****
- Python 3.11 support. :pr:`61`
- apparmor slapd configuration instructions in CONTRIBUTING.rst :pr:`66`
Changed
*******

View file

@ -8,6 +8,15 @@ Unit tests
To run the tests, you just need to run `tox`. Everything must be green before patches get merged.
.. warning ::
On Debian or Ubuntu systems, the OpenLDAP `slapd` binary usage might be restricted by apparmor, and thus makes the test fail. This can be mitigated by removing apparmor restrictions on `slapd`.
.. code-block:: console
sudo apt install --yes apparmor-utils
sudo aa-complain /usr/sbin/slapd
Style
-----