Searched defs:refpolicy (Results 1 - 12 of 12) sorted by relevance

/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/sepolgen/
H A Doutput.py23 This module takes a refpolicy.Module object and formats it for
30 import refpolicy namespace
47 for node, depth in refpolicy.walktree(self.module, showdepth=True):
93 if isinstance(a, refpolicy.InterfaceCall):
94 if isinstance(b, refpolicy.InterfaceCall):
99 if isinstance(b, refpolicy.AVRule):
116 c.append(refpolicy.Comment())
121 c.append(refpolicy.Comment())
135 if isinstance(rule, refpolicy.InterfaceCall):
142 sep_rules.append(refpolicy
[all...]
H A Daccess.py27 source or target types - see refpolicy for more information).
34 import refpolicy namespace
87 self.perms = refpolicy.IdSet()
115 self.perms = refpolicy.IdSet(list[3:])
286 types = refpolicy.IdSet()
299 s = refpolicy.IdSet()
327 role_type = refpolicy.RoleType()
H A Daudit.py20 import refpolicy namespace
165 self.scontext = refpolicy.SecurityContext()
166 self.tcontext = refpolicy.SecurityContext()
219 self.scontext = refpolicy.SecurityContext(fields[1])
222 self.tcontext = refpolicy.SecurityContext(fields[1])
301 self.invalid_context = refpolicy.SecurityContext()
302 self.scontext = refpolicy.SecurityContext()
303 self.tcontext = refpolicy.SecurityContext()
312 self.invalid_context = refpolicy.SecurityContext(recs[5])
313 self.scontext = refpolicy
[all...]
H A Dpolicygen.py27 import refpolicy namespace
81 self.module = refpolicy.Module()
124 refpolicy = True
126 refpolicy = False
128 mod.refpolicy = refpolicy
138 m = refpolicy.ModuleDeclaration()
143 m.refpolicy = True
145 m.refpolicy = False
157 rule = refpolicy
[all...]
H A Dinterfaces.py25 import refpolicy namespace
40 self.type = refpolicy.SRC_TYPE
41 self.obj_classes = refpolicy.IdSet()
58 (self.name, refpolicy.field_to_str[self.type], " ".join(self.obj_classes))
70 if (type == refpolicy.SRC_TYPE or type == refpolicy.TGT_TYPE) and \
71 (p.type == refpolicy.TGT_TYPE or p.type == refpolicy.SRC_TYPE):
72 #print name, refpolicy.field_to_str[p.type]
88 p.type = refpolicy
[all...]
H A Drefparser.py23 # This is a parser for the refpolicy policy "language" - i.e., the
24 # normal SELinux policy language plus the refpolicy style M4 macro
37 import refpolicy namespace
122 # refpolicy keywords
187 # refpolicy keywords
294 # refpolicy.SupportMacros and should always be present during parsing
353 m = refpolicy.ModuleDeclaration()
356 m.refpolicy = True
362 x = refpolicy.Interface(p[4])
370 x = refpolicy
[all...]
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setoolsgui/sepolgen/
H A Doutput.py23 This module takes a refpolicy.Module object and formats it for
30 import refpolicy namespace
47 for node, depth in refpolicy.walktree(self.module, showdepth=True):
93 if isinstance(a, refpolicy.InterfaceCall):
94 if isinstance(b, refpolicy.InterfaceCall):
99 if isinstance(b, refpolicy.AVRule):
116 c.append(refpolicy.Comment())
121 c.append(refpolicy.Comment())
135 if isinstance(rule, refpolicy.InterfaceCall):
142 sep_rules.append(refpolicy
[all...]
H A Daccess.py27 source or target types - see refpolicy for more information).
34 import refpolicy namespace
87 self.perms = refpolicy.IdSet()
115 self.perms = refpolicy.IdSet(list[3:])
286 types = refpolicy.IdSet()
299 s = refpolicy.IdSet()
327 role_type = refpolicy.RoleType()
H A Daudit.py20 import refpolicy namespace
165 self.scontext = refpolicy.SecurityContext()
166 self.tcontext = refpolicy.SecurityContext()
219 self.scontext = refpolicy.SecurityContext(fields[1])
222 self.tcontext = refpolicy.SecurityContext(fields[1])
301 self.invalid_context = refpolicy.SecurityContext()
302 self.scontext = refpolicy.SecurityContext()
303 self.tcontext = refpolicy.SecurityContext()
312 self.invalid_context = refpolicy.SecurityContext(recs[5])
313 self.scontext = refpolicy
[all...]
H A Dpolicygen.py27 import refpolicy namespace
81 self.module = refpolicy.Module()
124 refpolicy = True
126 refpolicy = False
128 mod.refpolicy = refpolicy
138 m = refpolicy.ModuleDeclaration()
143 m.refpolicy = True
145 m.refpolicy = False
157 rule = refpolicy
[all...]
H A Dinterfaces.py25 import refpolicy namespace
40 self.type = refpolicy.SRC_TYPE
41 self.obj_classes = refpolicy.IdSet()
58 (self.name, refpolicy.field_to_str[self.type], " ".join(self.obj_classes))
70 if (type == refpolicy.SRC_TYPE or type == refpolicy.TGT_TYPE) and \
71 (p.type == refpolicy.TGT_TYPE or p.type == refpolicy.SRC_TYPE):
72 #print name, refpolicy.field_to_str[p.type]
88 p.type = refpolicy
[all...]
H A Drefparser.py23 # This is a parser for the refpolicy policy "language" - i.e., the
24 # normal SELinux policy language plus the refpolicy style M4 macro
37 import refpolicy namespace
122 # refpolicy keywords
187 # refpolicy keywords
294 # refpolicy.SupportMacros and should always be present during parsing
353 m = refpolicy.ModuleDeclaration()
356 m.refpolicy = True
362 x = refpolicy.Interface(p[4])
370 x = refpolicy
[all...]

Completed in 86 milliseconds