Searched refs:valid_types (Results 1 – 2 of 2) sorted by relevance
1040 valid_types = list(list(sepolicy.info(sepolicy.ATTRIBUTE, "port_type"))[0]["types"]) variable in portRecords1042 valid_types = [] variable in portRecords1083 if type not in self.valid_types:1147 if setype and setype not in self.valid_types:1315 valid_types = list(list(sepolicy.info(sepolicy.ATTRIBUTE, "node_type"))[0]["types"]) variable in nodeRecords1317 valid_types = [] variable in nodeRecords1360 if ctype not in self.valid_types:1429 if setype and setype not in self.valid_types:1746 valid_types = list(list(sepolicy.info(sepolicy.ATTRIBUTE, "file_type"))[0]["types"]) variable in fcontextRecords1747 valid_types += list(list(sepolicy.info(sepolicy.ATTRIBUTE, "device_node"))[0]["types"])[all …]
294 valid_types = set([ALLOW, AUDITALLOW, NEVERALLOW, DONTAUDIT, TRANSITION, ROLE_ALLOW])296 if setype not in valid_types:297 raise ValueError("Type has to be in %s" % " ".join(valid_types))