Beispiel #1
0
 def __call__(self, parser, namespace, values, option_string=None):
     from sepolicy.generate import get_poltype_desc, poltype
     if values not in poltype.keys():
         raise ValueError("%s invalid SELinux policy type\n%s" %
                          (values, get_poltype_desc()))
         newval.append(v)
     setattr(namespace, self.dest, values)
Beispiel #2
0
 def __call__(self, parser, namespace, values, option_string=None):
     from sepolicy.generate import get_poltype_desc, poltype
     if values not in list(poltype.keys()):
         raise ValueError("%s invalid SELinux policy type\n%s" % (values, get_poltype_desc()))
     setattr(namespace, self.dest, values)