apparmor-ofono manual

medium

Image Types:
target-armhf-internal / 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

  1. Ensure Rootfs is remounted as read/write.
  2. $ sudo mount -o remount,rw /
  3. Install dependencies
  4. $ sudo apt install auditd apertis-tests-apparmor-ofono apertis-tests
  5. Restart the system to restore the filesystem state to read-only before running the test.
  6. $ sudo reboot

Execution Steps

  1. Execute the following command:
  2. $ 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.