• Home
  • Raw
  • Download

Lines Matching refs:ibdev_name

1598     def __genkey(self, ibendport, ibdev_name):  argument
1599 if ibdev_name == "":
1607 (rc, k) = semanage_ibendport_key_create(self.sh, ibdev_name, port)
1609 … raise ValueError(_("Could not create a key for ibendport %s/%s") % (ibdev_name, ibendport))
1610 return (k, ibdev_name, port)
1612 def __add(self, ibendport, ibdev_name, serange, type): argument
1626 (k, ibendport, port) = self.__genkey(ibendport, ibdev_name)
1630 … raise ValueError(_("Could not check if ibendport %s/%s is defined") % (ibdev_name, port))
1632 raise ValueError(_("ibendport %s/%s already defined") % (ibdev_name, port))
1636 raise ValueError(_("Could not create ibendport for %s/%s") % (ibdev_name, port))
1638 semanage_ibendport_set_ibdev_name(self.sh, p, ibdev_name)
1642 raise ValueError(_("Could not create context for %s/%s") % (ibdev_name, port))
1646 … raise ValueError(_("Could not set user in ibendport context for %s/%s") % (ibdev_name, port))
1650 … raise ValueError(_("Could not set role in ibendport context for %s/%s") % (ibdev_name, port))
1654 … raise ValueError(_("Could not set type in ibendport context for %s/%s") % (ibdev_name, port))
1659 …raise ValueError(_("Could not set mls fields in ibendport context for %s/%s") % (ibdev_name, port))
1663 raise ValueError(_("Could not set ibendport context for %s/%s") % (ibdev_name, port))
1667 raise ValueError(_("Could not add ibendport %s/%s") % (ibdev_name, port))
1673 def add(self, ibendport, ibdev_name, serange, type): argument
1675 self.__add(ibendport, ibdev_name, serange, type)
1678 def __modify(self, ibendport, ibdev_name, serange, setype): argument
1690 (k, ibdev_name, port) = self.__genkey(ibendport, ibdev_name)
1694 … raise ValueError(_("Could not check if ibendport %s/%s is defined") % (ibdev_name, ibendport))
1696 raise ValueError(_("ibendport %s/%s is not defined") % (ibdev_name, ibendport))
1700 raise ValueError(_("Could not query ibendport %s/%s") % (ibdev_name, ibendport))
1711 raise ValueError(_("Could not modify ibendport %s/%s") % (ibdev_name, ibendport))
1716 def modify(self, ibendport, ibdev_name, serange, setype): argument
1718 self.__modify(ibendport, ibdev_name, serange, setype)
1729 (rc, ibdev_name) = semanage_ibendport_get_ibdev_name(self.sh, ibendport)
1731 (k, ibdev_name, port) = self.__genkey(str(port), ibdev_name)
1737 raise ValueError(_("Could not delete the ibendport %s/%d") % (ibdev_name, port))
1742 def __delete(self, ibendport, ibdev_name): argument
1743 (k, ibdev_name, port) = self.__genkey(ibendport, ibdev_name)
1746 … raise ValueError(_("Could not check if ibendport %s/%s is defined") % (ibdev_name, ibendport))
1748 raise ValueError(_("ibendport %s/%s is not defined") % (ibdev_name, ibendport))
1752 … raise ValueError(_("Could not check if ibendport %s/%s is defined") % (ibdev_name, ibendport))
1754 … ValueError(_("ibendport %s/%s is defined in policy, cannot be deleted") % (ibdev_name, ibendport))
1758 raise ValueError(_("Could not delete ibendport %s/%s") % (ibdev_name, ibendport))
1762 def delete(self, ibendport, ibdev_name): argument
1764 self.__delete(ibendport, ibdev_name)
1782 (rc, ibdev_name) = semanage_ibendport_get_ibdev_name(self.sh, ibendport)
1784 ddict[(port, ibdev_name)] = (ctype, level)
1799 (rc, ibdev_name) = semanage_ibendport_get_ibdev_name(self.sh, ibendport)
1801 if (ctype, ibdev_name) not in ddict.keys():
1802 ddict[(ctype, ibdev_name)] = []
1803 ddict[(ctype, ibdev_name)].append("0x%x" % port)