apparmor-ofono manual

medium

Image Types:
target-armhf-internal / target-armhf / target-amd64
Image Deployment:
APT, OSTree
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. From a PC, download and unpack the test data tarball from the gitlab test repository:
  2. $ wget https://gitlab.apertis.org/tests/ofono/-/archive/apertis/v2022dev1/ofono.tar.gz
    $ tar -xvf ofono.tar.gz
  3. Copy the ofono-* folder to the target device:
  4. $ DUT_IP=<device-ip>
    $ scp -r ofono-* user@$DUT_IP:
  5. Log into the target device:
  6. $ ssh user@$DUT_IP
  7. After log into the DUT, enter the test directory
  8. $ cd ofono-*
  9. Note that the tarball may change depending on the release/branch being tested, please make sure to download the correct tarball for the release in question.

Execution Steps

  1. Execute the following command:
  2. $ sudo ./run-test.sh

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

When all test cases will pass you will be shown the following message:

# apparmor-ofono: all tests passed

When either one or more test fails it you will be shown the following message:

# apparmor-ofono: at least one test failed

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.