Lines Matching refs:self

44         def __init__(self, config):
45 self.description = _(
49 self.proto_path = path.split()
51 self.proto_path = None
57 self.pathlist32 = [
66 self.pathlist64 = [
81 self.runpath_re = [
86 self.runpath_64_re = [
105 self.initscript_re = re.compile("^etc/(rc.|init)\.d")
107 self.lint_paths = {}
108 self.ref_paths = {}
110 super(UserlandActionChecker, self).__init__(config)
112 def startup(self, engine):
173 seed_dict(manifest, "path", self.ref_paths)
182 seed_dict(manifest, "path", self.lint_paths)
188 seed_dict(manifest, "path", self.lint_paths)
190 self.__merge_dict(self.lint_paths, self.ref_paths,
193 def __merge_dict(self, src, target, ignore_pubs=True):
240 def __realpath(self, path, target):
255 def __elf_aslr_check(self, path, engine):
276 msgid="%s%s.5" % (self.name, "001"))
285 msgid="%s%s.6" % (self.name, "001"))
288 def __elf_runpath_check(self, path, engine):
300 for expr in self.runpath_re:
323 if not relative_dir in self.ref_paths and \
325 for key in self.ref_paths):
336 if (pdir in self.ref_paths and
337 self.ref_paths[pdir][0][1].name == "link"):
341 msgid="%s%s.3" % (self.name, "001"))
348 for expr in self.runpath_64_re:
352 msgid="%s%s.3" % (self.name, "001"))
355 for expr in self.runpath_64_re:
362 msgid="%s%s.3" % (self.name, "001"))
369 def __elf_wrong_location_check(self, path, inspath):
383 if (p in self.pathlist32):
386 if (p in self.pathlist64):
401 def file_action(self, action, manifest, engine, pkglint_id="001"):
421 msgid="%s%s.0" % (self.name, pkglint_id))
428 msgid="%s%s.4" % (self.name, pkglint_id))
432 msgid="%s%s.3" % (self.name, pkglint_id))
435 if self.proto_path is not None:
436 for directory in self.proto_path:
446 msgid="%s%s.1" % (self.name, pkglint_id))
449 result = self.__elf_wrong_location_check(fullpath, inspath)
452 msgid="%s%s.2" % (self.name, pkglint_id))
453 result = self.__elf_runpath_check(fullpath, engine)
456 msgid="%s%s.3" % (self.name, pkglint_id))
457 result = self.__elf_aslr_check(fullpath, engine)
461 def link_resolves(self, action, manifest, engine, pkglint_id="002"):
469 realtarget = self.__realpath(path, target)
477 if self.ref_paths.get(realtarget, None):
486 for key in self.ref_paths:
492 msgid="%s%s.0" % (self.name, pkglint_id))
496 def init_script(self, action, manifest, engine, pkglint_id="003"):
503 if self.initscript_re.match(path):
507 msgid="%s%s.0" % (self.name, pkglint_id))
517 def __init__(self, config):
518 super(UserlandManifestChecker, self).__init__(config)
520 def component_check(self, manifest, engine, pkglint_id="001"):
538 msgid="%s%s.0" % (self.name, pkglint_id))
542 msgid="%s%s.0" % (self.name, pkglint_id))
547 def publisher_in_fmri(self, manifest, engine, pkglint_id="002"):
548 lint_id = "%s%s" % (self.name, pkglint_id)
556 msgid="%s%s.2" % (self.name, pkglint_id))
566 def uses_cffi(self, manifest, engine, pkglint_id="003"):
599 msgid="%s%s.1" % (self.name, pkglint_id))
605 msgid="%s%s.2" % (self.name, pkglint_id))
619 msgid="%s%s.3" % (self.name, pkglint_id))