Searched refs:valid_types (Results 1 – 3 of 3) sorted by relevance
284 valid_types = [val_type]286 valid_types.append(int)288 if type(val) not in valid_types:
1019 valid_types = sepolicy.info(sepolicy.ATTRIBUTE, "port_type")[0]["types"] variable in portRecords1021 valid_types = [] variable in portRecords1062 if type not in self.valid_types:1124 if setype and setype not in self.valid_types:1282 valid_types = sepolicy.info(sepolicy.ATTRIBUTE, "node_type")[0]["types"] variable in nodeRecords1284 valid_types = [] variable in nodeRecords1327 if ctype not in self.valid_types:1394 if setype and setype not in self.valid_types:1707 valid_types = sepolicy.info(sepolicy.ATTRIBUTE, "file_type")[0]["types"] variable in fcontextRecords1708 valid_types += sepolicy.info(sepolicy.ATTRIBUTE, "device_node")[0]["types"][all …]
52 valid_types = [ALLOW, AUDITALLOW, NEVERALLOW, DONTAUDIT, TRANSITION, ROLE_ALLOW]54 if setype not in valid_types:55 raise ValueError("Type has to be in %s" % valid_types)