Lines Matching refs:serange

94 …def log(self, msg, name="", sename="", serole="", serange="", oldsename="", oldserole="", oldseran…  argument
103 if serange != oldserange:
107 …audit.AUDIT_ROLE_ASSIGN, sys.argv[0], str(msg), name, 0, sename, serole, serange, oldsename, oldse…
109 …def log_remove(self, msg, name="", sename="", serole="", serange="", oldsename="", oldserole="", o… argument
110 …audit.AUDIT_ROLE_REMOVE, sys.argv[0], str(msg), name, 0, sename, serole, serange, oldsename, oldse…
122 …def log(self, msg, name="", sename="", serole="", serange="", oldsename="", oldserole="", oldseran… argument
132 if serange != "" and serange != None:
133 message += " MLSRange=" + serange
138 …def log_remove(self, msg, name="", sename="", serole="", serange="", oldsename="", oldserole="", o… argument
139 self.log(msg, name, sename, serole, serange, oldsename, oldserole, oldserange)
152 …def log(self, msg, name="", sename="", serole="", serange="", oldsename="", oldserole="", oldseran… argument
155 …def log_remove(self, msg, name="", sename="", serole="", serange="", oldsename="", oldserole="", o… argument
500 self.serange = None
502 def __add(self, name, sename, serange): argument
512 if serange != "":
513 serange = untranslate(serange)
515 serange = range
545 if (is_mls_enabled == 1) and (serange != ""):
546 rc = semanage_seuser_set_mlsrange(self.sh, u, serange)
560 …self.mylog.log("login", name, sename=sename, serange=serange, serole=",".join(serole), oldserole="…
562 def add(self, name, sename, serange): argument
565 self.__add(name, sename, serange)
571 def __modify(self, name, sename="", serange=""): argument
573 if sename == "" and serange == "":
584 if serange != "":
585 self.serange = serange
587 self.serange = range
605 if (is_mls_enabled == 1) and (serange != ""):
606 semanage_seuser_set_mlsrange(self.sh, u, untranslate(serange))
620 …self.mylog.log("login", name, sename=self.sename, serange=self.serange, serole=",".join(serole), o…
622 def modify(self, name, sename="", serange=""): argument
625 self.__modify(name, sename, serange)
658 rec, self.sename, self.serange = selinux.getseuserbyname("__default__")
661 …self.mylog.log_remove("login", name, sename=self.sename, serange=self.serange, serole=",".join(ser…
769 serange = semanage_user_get_mlsrange(u)
773 return serange, serole
775 def __add(self, name, roles, selevel, serange, prefix): argument
777 if serange == "":
778 serange = "s0"
780 serange = untranslate(serange)
814 rc = semanage_user_set_mlsrange(self.sh, u, serange)
834 self.mylog.log("seuser", sename=name, serole=",".join(roles), serange=serange)
836 def add(self, name, roles, selevel, serange, prefix): argument
840 self.__add(name, roles, selevel, serange, prefix)
846 def __modify(self, name, roles=[], selevel="", serange="", prefix=""): argument
850 if prefix == "" and len(roles) == 0 and serange == "" and selevel == "":
875 if (is_mls_enabled == 1) and (serange != ""):
876 semanage_user_set_mlsrange(self.sh, u, untranslate(serange))
900 …self.mylog.log("seuser", sename=name, oldsename=name, serole=role, serange=serange, oldserole=olds…
902 def modify(self, name, roles=[], selevel="", serange="", prefix=""): argument
905 self.__modify(name, roles, selevel, serange, prefix)
1052 def __add(self, port, proto, serange, type): argument
1054 if serange == "":
1055 serange = "s0"
1057 serange = untranslate(serange)
1095 if (is_mls_enabled == 1) and (serange != ""):
1096 rc = semanage_context_set_mls(self.sh, con, serange)
1112 def add(self, port, proto, serange, type): argument
1114 self.__add(port, proto, serange, type)
1117 def __modify(self, port, proto, serange, setype): argument
1118 if serange == "" and setype == "":
1141 if (is_mls_enabled == 1) and (serange != ""):
1142 semanage_context_set_mls(self.sh, con, untranslate(serange))
1153 def modify(self, port, proto, serange, setype): argument
1155 self.__modify(port, proto, serange, setype)
1315 def __add(self, addr, mask, proto, serange, ctype): argument
1319 if serange == "":
1320 serange = "s0"
1322 serange = untranslate(serange)
1366 if (is_mls_enabled == 1) and (serange != ""):
1367 rc = semanage_context_set_mls(self.sh, con, serange)
1383 def add(self, addr, mask, proto, serange, ctype): argument
1385 self.__add(addr, mask, proto, serange, ctype)
1388 def __modify(self, addr, mask, proto, serange, setype): argument
1391 if serange == "" and setype == "":
1412 if (is_mls_enabled == 1) and (serange != ""):
1413 semanage_context_set_mls(self.sh, con, untranslate(serange))
1424 def modify(self, addr, mask, proto, serange, setype): argument
1426 self.__modify(addr, mask, proto, serange, setype)
1522 def __add(self, interface, serange, ctype): argument
1524 if serange == "":
1525 serange = "s0"
1527 serange = untranslate(serange)
1563 if (is_mls_enabled == 1) and (serange != ""):
1564 rc = semanage_context_set_mls(self.sh, con, serange)
1584 def add(self, interface, serange, ctype): argument
1586 self.__add(interface, serange, ctype)
1589 def __modify(self, interface, serange, setype): argument
1590 if serange == "" and setype == "":
1609 if (is_mls_enabled == 1) and (serange != ""):
1610 semanage_context_set_mls(self.sh, con, untranslate(serange))
1621 def modify(self, interface, serange, setype): argument
1623 self.__modify(interface, serange, setype)
1823 def __add(self, target, type, ftype="", serange="", seuser="system_u"): argument
1827 serange = untranslate(serange)
1863 if (is_mls_enabled == 1) and (serange != ""):
1864 rc = semanage_context_set_mls(self.sh, con, serange)
1882 def add(self, target, type, ftype="", serange="", seuser="system_u"): argument
1884 self.__add(target, type, ftype, serange, seuser)
1887 def __modify(self, target, setype, ftype, serange, seuser): argument
1888 if serange == "" and setype == "" and seuser == "":
1919 if (is_mls_enabled == 1) and (serange != ""):
1920 semanage_context_set_mls(self.sh, con, untranslate(serange))
1942 def modify(self, target, setype, ftype, serange, seuser): argument
1944 self.__modify(target, setype, ftype, serange, seuser)