iopl and ioperm tests fail under lockdown environement
The iopl and ioperm kernel regression tests fail when the kernel has lockdown enabled.
We need update the tests in upstream to handle this properly. We have two potential avenues to do this
- detect lockdown and disable the tests
- detect lockdown and change the expected test results.
Option 2 is preferred. As it will help catch situations the behavior is not what is expected. Ideally we would make sure the tests are using the option to specify the returned error code in addition to the dynamic adjustment of expected results so that we can detect whether the change in behavior is coming from lockdown or apparmor.