DEP8 fails due to apparmor restriction
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
volatildap (Ubuntu) |
Fix Released
|
Undecided
|
Andreas Hasenack |
Bug Description
The volatildap DEP8 tests have been failing "forever" because of the slapd apparmor profile, which (correctly) prevents slapd from reading/writing to the directory that the test suite sets up:
apparmor="DENIED" operation="open" namespace=
We could disable apparmor before the run, or add a local set of rules prior to the test pointing at that temporary directory. Something like this in /etc/apparmor.
/tmp/<tmpdir>/** rwk,
and then restart apparmor, or reload the profile (via sudo apparmor_parser -r /etc/apparmor.
Related branches
- Lucas Kanashiro (community): Approve
- Canonical Server MOTU reviewers: Pending requested
-
Diff: 75 lines (+39/-3)4 files modifieddebian/changelog (+8/-0)
debian/control (+2/-1)
debian/tests/control (+2/-2)
debian/tests/run-tests (+27/-0)
description: | updated |
description: | updated |
description: | updated |
description: | updated |
This bug was fixed in the package volatildap - 1.3.0-2ubuntu2
---------------
volatildap (1.3.0-2ubuntu2) focal; urgency=medium
* d/t/run-tests: only amend the apparmor profile if apparmor is
installed and enabled.
volatildap (1.3.0-2ubuntu1) focal; urgency=medium
* d/t/control, d/t/run-tests: amend the slapd apparmor profile
to allow the tests to use /tmp/** for the slapd daemon
(LP: #1858800)
-- Andreas Hasenack <email address hidden> Thu, 09 Jan 2020 20:44:59 -0300