• Home
  • Raw
  • Download

Lines Matching refs:ddict

717         ddict = {}
726 ddict[name] = (rec[1], rec[2], rec[0])
729 return ddict
732 ddict = {}
742 ddict[name] = (semanage_seuser_get_sename(u), semanage_seuser_get_mlsrange(u), "*")
743 return ddict
747 ddict = self.get_all(True)
748 for k in sorted(ddict.keys()):
749 l.append("-a -s %s -r '%s' %s" % (ddict[k][0], ddict[k][1], k))
753 ddict = self.get_all(locallist)
756 keys = sorted(ddict.keys())
764 u = ddict[k]
776 print("%-25s %-25s" % (k, ddict[k][0]))
993 ddict = {}
1008ddict[semanage_user_get_name(u)] = (semanage_user_get_prefix(u), semanage_user_get_mlslevel(u), se…
1010 return ddict
1014 ddict = self.get_all(True)
1015 for k in sorted(ddict.keys()):
1016 l.append("-a -L %s -r %s -R '%s' %s" % (ddict[k][1], ddict[k][2], ddict[k][3], k))
1020 ddict = self.get_all(locallist)
1021 if len(ddict) == 0:
1023 keys = sorted(ddict.keys())
1030 …print("%-15s %-10s %-10s %-30s %s" % (k, ddict[k][0], translate(ddict[k][1]), translate(ddict[k][2…
1035 print("%-15s %s" % (k, ddict[k][3]))
1244 ddict = {}
1260 ddict[(low, high, proto_str)] = (ctype, level)
1261 return ddict
1264 ddict = {}
1279 if (ctype, proto_str) not in ddict.keys():
1280 ddict[(ctype, proto_str)] = []
1282 ddict[(ctype, proto_str)].append("%d" % low)
1284 ddict[(ctype, proto_str)].append("%d-%d" % (low, high))
1285 return ddict
1289 ddict = self.get_all(True)
1290 for k in sorted(ddict.keys()):
1292 l.append("-a -t %s -p %s %s" % (ddict[k][0], k[2], k[0]))
1294 l.append("-a -t %s -p %s %s-%s" % (ddict[k][0], k[2], k[0], k[1]))
1298 ddict = self.get_all_by_type(locallist)
1299 if len(ddict) == 0:
1301 keys = sorted(ddict.keys())
1307 rec += "%s" % ddict[i][0]
1308 for p in ddict[i][1:]:
1510 ddict = {}
1523ddict[(addr[1], mask[1], proto)] = (semanage_context_get_user(con), semanage_context_get_role(con)…
1525 return ddict
1529 ddict = self.get_all(True)
1530 for k in sorted(ddict.keys()):
1531 l.append("-a -M %s -p %s -t %s %s" % (k[1], k[2], ddict[k][2], k[0]))
1535 ddict = self.get_all(locallist)
1536 if len(ddict) == 0:
1538 keys = sorted(ddict.keys())
1547 …8s %-18s %-5s %s:%s:%s:%s " % (k[0], k[1], k[2], ddict[k][0], ddict[k][1], ddict[k][2], translate(
1550 … print("%-18s %-18s %-5s %s:%s:%s " % (k[0], k[1], k[2], ddict[k][0], ddict[k][1], ddict[k][2]))
1707 ddict = {}
1717ddict[semanage_iface_get_name(interface)] = (semanage_context_get_user(con), semanage_context_get_…
1719 return ddict
1723 ddict = self.get_all(True)
1724 for k in sorted(ddict.keys()):
1725 l.append("-a -t %s %s" % (ddict[k][2], k))
1729 ddict = self.get_all(locallist)
1730 if len(ddict) == 0:
1732 keys = sorted(ddict.keys())
1738 …print("%-30s %s:%s:%s:%s " % (k, ddict[k][0], ddict[k][1], ddict[k][2], translate(ddict[k][3], Fal…
1741 print("%-30s %s:%s:%s " % (k, ddict[k][0], ddict[k][1], ddict[k][2]))
2081 ddict = {}
2088ddict[(expr, ftype_str)] = (semanage_context_get_user(con), semanage_context_get_role(con), semana…
2090 ddict[(expr, ftype_str)] = con
2092 return ddict
2252 ddict = {}
2270 ddict[name] = value
2272 return ddict
2284 ddict = self.get_all(True)
2285 for k in sorted(ddict.keys()):
2286 if ddict[k]:
2287 l.append("-m -%s %s" % (ddict[k][2], k))
2293 ddict = self.get_all(locallist)
2294 for k in sorted(ddict.keys()):
2295 if ddict[k]:
2296 print("%s=%s" % (k, ddict[k][2]))
2298 ddict = self.get_all(locallist)
2299 if len(ddict) == 0:
2304 for k in sorted(ddict.keys()):
2305 if ddict[k]:
2306 …5s,%5s) %s" % (k, on_off[selinux.security_get_boolean_active(k)], on_off[ddict[k][2]], self.get_d…