Home
last modified time | relevance | path

Searched refs:chk_path (Results 1 – 1 of 1) sorted by relevance

/external/autotest/client/site_tests/security_SymlinkRestrictions/
Dsecurity_SymlinkRestrictions.py79 def _write_as(self, op_path, chk_path, user, create=False, fail=False): argument
81 if os.path.exists(chk_path):
82 os.unlink(chk_path)
83 self.check(os.path.exists(chk_path) == False,
84 "%s does not exist starting _write_as()" % (chk_path))
86 open(chk_path, 'w').write('blah blah\n')
87 self.check(os.path.exists(chk_path),
88 "%s exists" % (chk_path))
89 os.chown(chk_path, pwd.getpwnam(user)[2], 0)
93 self.check(not os.path.exists(chk_path),
[all …]