containers / qm

QM is a containerized environment for running Functional Safety qm (Quality Management) software
https://github.com/containers/qm
GNU General Public License v2.0
22 stars 25 forks source link

verify /dev/mem is not present in QM partition #495

Closed pengshanyu closed 2 months ago

pengshanyu commented 3 months ago

I want ensure that /dev/mem is not accesible inside QM partition.

Test Design (improved based on PR review):

  1. Using test expression in QM partition:

    Execute the following command:

    podman exec qm test -e /dev/mem

  2. Expected Result:

    /dev/mem does not exist, the command returns a non-zero value

  3. Verify whether the test passed or not:

    PASS: if the command returns a non-zero value, it means /dev/mem is not present FAIL: if the command returns 0, it means /dev/mem is present

Yarboa commented 3 months ago

/packit test --identifier e2e-ffi

pengshanyu commented 3 months ago

will improve it based on the review of the design

Yarboa commented 3 months ago

/packit test --identifier e2e-multi-bluechi-agents

dougsland commented 3 months ago

please squash commits for easy review.

pengshanyu commented 3 months ago

@dougsland @Yarboa thank you so much for the review. This PR may be closed due to changes in test scope.

Yarboa commented 3 months ago

https://github.com/containers/qm/pull/495#issuecomment-2260152413 Closing

pengshanyu commented 3 months ago

Sorry for the confusion caused by the comment above. According to the latest decision, I need to continue this work.

dennisbrendel commented 2 months ago

Just a general comment: this is not a special property of qm, but of all containers created by podman. So it could also be considered a smoke test in a different place