Lines Matching refs:Policy
5 import policy
6 from policy import MatchPathPrefix
13 Use file_contexts and policy to verify Treble requirements
89 # selinux policy contains neverallow rules that enforce that only zygote
168 # setup for the policy compatibility tests
210 # Make sure that any new type introduced in the new policy that was not present
211 # in the old policy has been recorded in the mapping file.
225 ret += "SELinux: The following types were found added to the policy "
233 # Make sure that any public type removed in the current policy has its
234 # declaration added to the mapping file for use in non-platform policy
249 ret += "policy without a declaration in the compatibility mapping "
289 parser.add_option("-p", "--policy", dest="policy", metavar="FILE")
302 sys.exit("Must specify the current platform-only policy file\n" + parser.usage)
306 sys.exit("Must specify the previous monolithic policy file\n" + parser.usage)
307 if not options.policy:
308 sys.exit("Must specify current monolithic policy file\n" + parser.usage)
309 if not os.path.exists(options.policy):
310 sys.exit("Error: policy file " + options.policy + " does not exist\n"
320 pol = policy.Policy(options.policy, options.file_contexts, options.libpath)
322 basepol = policy.Policy(options.basepolicy, None, options.libpath)
323 oldpol = policy.Policy(options.oldpolicy, None, options.libpath)