• Home
  • Raw
  • Download

Lines Matching refs:refpolicy

21 import sepolgen.refpolicy as refpolicy  namespace
27 s = refpolicy.IdSet(["read", "write", "getattr"])
33 s = refpolicy.IdSet()
40 s1 = refpolicy.XpermSet()
44 s2 = refpolicy.XpermSet(True)
51 s = refpolicy.XpermSet()
68 s = refpolicy.XpermSet()
76 a = refpolicy.XpermSet()
79 b = refpolicy.XpermSet()
87 a = refpolicy.XpermSet()
107 sc = refpolicy.SecurityContext()
108 sc = refpolicy.SecurityContext("user_u:object_r:foo_t")
112 sc = refpolicy.SecurityContext()
125 sc = refpolicy.SecurityContext()
134 sc = refpolicy.SecurityContext()
138 sc1 = refpolicy.SecurityContext("user_u:object_r:foo_t")
139 sc2 = refpolicy.SecurityContext("user_u:object_r:foo_t")
140 sc3 = refpolicy.SecurityContext("user_u:object_r:foo_t:s0")
141 sc4 = refpolicy.SecurityContext("user_u:object_r:bar_t")
149 o = refpolicy.ObjectClass(name="file")
155 a = refpolicy.AVRule()
163 a = refpolicy.AVRule()
185 a = refpolicy.AVExtRule()
191 self.assertIsInstance(a.xperms, refpolicy.XpermSet)
195 a = refpolicy.AVExtRule()
211 xp = refpolicy.XpermSet()
214 a = refpolicy.AVExtRule()
227 xp = refpolicy.XpermSet()
230 a = refpolicy.AVExtRule()
241 a = refpolicy.AVExtRule()
254 a = refpolicy.TypeRule()
262 a = refpolicy.TypeRule()
273 h = refpolicy.Headers()
274 a = refpolicy.AVRule()
280 ifcall = refpolicy.InterfaceCall(ifname="allow_foobar")
284 i = refpolicy.Interface(name="foo")
289 a = refpolicy.AVRule()
295 i = refpolicy.Interface(name="bar")
301 h = refpolicy.Headers()
302 h.children.append(refpolicy.Interface(name="foo"))
303 h.children.append(refpolicy.Interface(name="bar"))
304 h.children.append(refpolicy.ClassMap("file", "read write"))