diff --git a/test_prctl.py b/test_prctl.py index 3e01f2f..5e19855 100644 --- a/test_prctl.py +++ b/test_prctl.py @@ -279,6 +279,7 @@ class PrctlTest(unittest.TestCase): os._exit(0) self.assertRaises(OSError, prctl.set_ptracer, new_pid) + @unittest.skip('systemd-nspawn uses seccomp') @require('get_seccomp') def test_seccomp(self): """Test manipulation of the seccomp setting""" @@ -323,6 +324,8 @@ class PrctlTest(unittest.TestCase): prctl.securebits.noroot = True self.assertRaises(OSError, set_true) + # See https://github.com/seveas/python-prctl/issues/31 + @unittest.skip('not working in containers') @require('set_speculation_ctrl') def test_speculation_ctrl(self): self.assertTrue(prctl.get_speculation_ctrl(prctl.SPEC_STORE_BYPASS) > 0) @@ -388,6 +391,7 @@ class PrctlTest(unittest.TestCase): self.assertRaises(OSError, prctl.get_unalign) self.assertRaises(OSError, prctl.set_unalign, prctl.UNALIGN_NOPRINT) + @unittest.skip('systemd-nspawn adds CAP_SETUID') def test_getcaps(self): """Test the get_caps function""" self.assertEqual(prctl.get_caps(), {prctl.CAP_EFFECTIVE: {}, prctl.CAP_INHERITABLE: {}, prctl.CAP_PERMITTED: {}}) @@ -404,6 +408,7 @@ class PrctlTest(unittest.TestCase): prctl.get_caps((1234,prctl.ALL_FLAGS)) self.assertRaises(ValueError, fail) + @unittest.skip('systemd-nspawn adds CAP_SETUID') def test_setcaps(self): """Test the setcaps function""" if self.am_root: