apparmor-ofono manual
medium
- Image Types:
- target-armhf-internal / target-armhf / target-amd64
- Image Deployment:
- APT
- Type:
- functional
Description
Test that AppArmor profiles provided in ofono package work without unexpected auditd log entries.
Resources
- A 3G modem connected.
Pre Conditions
- Ensure Rootfs is remounted as read/write.
- Install dependencies
- Restart the system to restore the filesystem state to read-only before running the test.
$ sudo mount -o remount,rw /
$ sudo apt install auditd apertis-tests-apparmor-ofono apertis-tests
$ sudo reboot
Execution Steps
- Execute the following command:
$ sudo /usr/lib/apertis-tests/apparmor/ofono/test-ofonod
Expected
A list of executed test with related result (as pass/fail/skip) will be shown on console, similar to the following:
ofonod-normal.expected: pass
Notes
- ofonod-malicous test might (and will, so far) segfault. This is normal and does not preclude the test, which shall pass anyway. If the 3G modem is not connected, the TC might pass (any of the tests in it), but it would be a meaningless test. Be sure that a 3G modem is connected for a meaningful test.