D | seobject.py | 1161 def __modify(self, port, proto, serange, setype): argument 1162 if serange == "" and setype == "": 1168 setype = sepolicy.get_real_type_name(setype) 1169 if setype and setype not in self.valid_types: 1170 raise ValueError(_("Type %s is invalid, must be a port type") % setype) 1191 if setype != "": 1192 semanage_context_set_type(self.sh, con, setype) 1201 …ntext=%s:%s:%s:%s" % (port, socket.getprotobyname(proto), "system_u", "object_r", setype, serange)) 1203 def modify(self, port, proto, serange, setype): argument 1205 self.__modify(port, proto, serange, setype) [all …]
|