Lines Matching full:seuser
607 raise ValueError(_("Requires seuser or serange"))
634 raise ValueError(_("Could not query seuser for %s") % name)
863 self.mylog.log("seuser", sename=name, serole=",".join(roles), serange=serange)
928 self.mylog.log("seuser", sename=name, oldsename=name, serole=role, serange=serange, oldserole=oldserole, oldserange=oldserange)
970 self.mylog.log_remove("seuser", oldsename=name, oldserange=oldserange, oldserole=oldserole)
2327 def createcon(self, target, seuser="system_u"):
2331 if seuser == "":
2332 seuser = "system_u"
2334 rc = semanage_context_set_user(self.sh, con, seuser)
2360 def __add(self, target, type, ftype="", serange="", seuser="system_u"):
2394 con = self.createcon(target, seuser)
2419 if not seuser:
2420 seuser = "system_u"
2422 self.mylog.log_change("resrc=fcontext op=add %s ftype=%s tcontext=%s:%s:%s:%s" % (audit.audit_encode_nv_string("tglob", target, 0), ftype_to_audit[ftype], seuser, "object_r", type, serange))
2424 def add(self, target, type, ftype="", serange="", seuser="system_u"):
2426 self.__add(target, type, ftype, serange, seuser)
2429 def __modify(self, target, setype, ftype, serange, seuser):
2430 if serange == "" and setype == "" and seuser == "":
2431 raise ValueError(_("Requires setype, serange or seuser"))
2465 if seuser != "":
2466 semanage_context_set_user(self.sh, con, seuser)
2486 if not seuser:
2487 seuser = "system_u"
2489 self.mylog.log_change("resrc=fcontext op=modify %s ftype=%s tcontext=%s:%s:%s:%s" % (audit.audit_encode_nv_string("tglob", target, 0), ftype_to_audit[ftype], seuser, "object_r", setype, serange))
2491 def modify(self, target, setype, ftype, serange, seuser):
2493 self.__modify(target, setype, ftype, serange, seuser)