D | seobject.py | 1144 def __modify(self, port, proto, serange, setype): argument 1145 if serange == "" and setype == "": 1151 if setype and setype not in self.valid_types: 1152 raise ValueError(_("Type %s is invalid, must be a port type") % setype) 1173 if setype != "": 1174 semanage_context_set_type(self.sh, con, setype) 1183 …ntext=%s:%s:%s:%s" % (port, socket.getprotobyname(proto), "system_u", "object_r", setype, serange)) 1185 def modify(self, port, proto, serange, setype): argument 1187 self.__modify(port, proto, serange, setype) 1410 def __modify(self, pkey, subnet_prefix, serange, setype): argument [all …]
|