pivot_root regression test fails under systemd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apparmor (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The pivot_root apparmor regression test fails when systemd is the init daemon:
running pivot_root
Error: pivot_root failed. Test 'PIVOT_ROOT (unconfined)' was expected to 'pass'. Reason for failure 'FAIL - pivot_root: Invalid argument'
Error: pivot_root failed. Test 'PIVOT_ROOT (bare rule)' was expected to 'pass'. Reason for failure 'FAIL - pivot_root: Invalid argument'
Error: pivot_root failed. Test 'PIVOT_ROOT (new_root)' was expected to 'pass'. Reason for failure 'FAIL - pivot_root: Invalid argument'
Error: pivot_root failed. Test 'PIVOT_ROOT (put_old)' was expected to 'pass'. Reason for failure 'FAIL - pivot_root: Invalid argument'
Error: pivot_root failed. Test 'PIVOT_ROOT (put_old, new_root)' was expected to 'pass'. Reason for failure 'FAIL - pivot_root: Invalid argument'
Error: pivot_root failed. Test 'PIVOT_ROOT (transition)' was expected to 'pass'. Reason for failure 'FAIL - pivot_root: Invalid argument'
Error: pivot_root failed. Test 'PIVOT_ROOT (new_root, transition)' was expected to 'pass'. Reason for failure 'FAIL - pivot_root: Invalid argument'
Error: pivot_root failed. Test 'PIVOT_ROOT (put_old, new_root, transition)' was expected to 'pass'. Reason for failure 'FAIL - pivot_root: Invalid argument'
The reason for this is that systemd mounts the rootfs shared, which prevents the pivot_root(2) call from succeeding. See the systemd commit http://
A commit for this issue has been applied upstream: http:// bazaar. launchpad. net/~apparmor- dev/apparmor/ master/ revision/ 2923