D | seobject.py | 1140 def __modify(self, port, proto, serange, setype): argument 1141 if serange == "" and setype == "": 1147 if setype and setype not in self.valid_types: 1148 raise ValueError(_("Type %s is invalid, must be a port type") % setype) 1169 if setype != "": 1170 semanage_context_set_type(self.sh, con, setype) 1179 …ntext=%s:%s:%s:%s" % (port, socket.getprotobyname(proto), "system_u", "object_r", setype, serange)) 1181 def modify(self, port, proto, serange, setype): argument 1183 self.__modify(port, proto, serange, setype) 1423 def __modify(self, addr, mask, proto, serange, setype): argument [all …]
|