test_go_isolation.py (1673:883f2f79c2f6) test_go_isolation.py (1706:a1da56837554)
1import grp
2import os
3import pwd
4import shutil
5
6import pytest
7
8from conftest import option

--- 22 unchanged lines hidden (view full) ---

31 return check if not complete_check else check()
32
33 def unpriv_creds(self):
34 nobody_uid = pwd.getpwnam('nobody').pw_uid
35
36 try:
37 nogroup_gid = grp.getgrnam('nogroup').gr_gid
38 nogroup = 'nogroup'
1import grp
2import os
3import pwd
4import shutil
5
6import pytest
7
8from conftest import option

--- 22 unchanged lines hidden (view full) ---

31 return check if not complete_check else check()
32
33 def unpriv_creds(self):
34 nobody_uid = pwd.getpwnam('nobody').pw_uid
35
36 try:
37 nogroup_gid = grp.getgrnam('nogroup').gr_gid
38 nogroup = 'nogroup'
39 except:
39 except KeyError:
40 nogroup_gid = grp.getgrnam('nobody').gr_gid
41 nogroup = 'nobody'
42
43 return (nobody_uid, nogroup_gid, nogroup)
44
45 def isolation_key(self, key):
46 return key in option.available['features']['isolation'].keys()
47

--- 315 unchanged lines hidden ---
40 nogroup_gid = grp.getgrnam('nobody').gr_gid
41 nogroup = 'nobody'
42
43 return (nobody_uid, nogroup_gid, nogroup)
44
45 def isolation_key(self, key):
46 return key in option.available['features']['isolation'].keys()
47

--- 315 unchanged lines hidden ---