Home | History | Annotate | Download | only in semanage

Lines Matching refs:fcontext

2350         self.mylog.log_change("resrc=fcontext op=add-equal %s %s" % (audit.audit_encode_nv_string("sglob", target, 0), audit.audit_encode_nv_string("tglob", substitute, 0)))
2363 self.mylog.log_change("resrc=fcontext op=modify-equal %s %s" % (audit.audit_encode_nv_string("sglob", target, 0), audit.audit_encode_nv_string("tglob", substitute, 0)))
2430 (rc, fcontext) = semanage_fcontext_create(self.sh)
2434 rc = semanage_fcontext_set_expr(self.sh, fcontext, target)
2446 rc = semanage_fcontext_set_con(self.sh, fcontext, con)
2450 semanage_fcontext_set_type(fcontext, file_types[ftype])
2452 rc = semanage_fcontext_modify_local(self.sh, k, fcontext)
2459 semanage_fcontext_free(fcontext)
2464 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))
2494 (rc, fcontext) = semanage_fcontext_query_local(self.sh, k)
2497 (rc, fcontext) = semanage_fcontext_query(self.sh, k)
2502 con = semanage_fcontext_get_con(fcontext)
2515 rc = semanage_fcontext_set_con(self.sh, fcontext, con)
2519 rc = semanage_fcontext_set_con(self.sh, fcontext, None)
2523 rc = semanage_fcontext_modify_local(self.sh, k, fcontext)
2528 semanage_fcontext_free(fcontext)
2533 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))
2547 for fcontext in flist:
2548 target = semanage_fcontext_get_expr(fcontext)
2549 ftype = semanage_fcontext_get_type(fcontext)
2560 self.mylog.log_change("resrc=fcontext op=delete %s ftype=%s" % (audit.audit_encode_nv_string("tglob", target, 0), ftype_to_audit[file_type_str_to_option[ftype_str]]))
2571 self.mylog.log_change("resrc=fcontext op=delete-equal %s" % (audit.audit_encode_nv_string("tglob", target, 0)))
2597 self.mylog.log_change("resrc=fcontext op=delete %s ftype=%s" % (audit.audit_encode_nv_string("tglob", target, 0), ftype_to_audit[ftype]))
2624 for fcontext in self.flist:
2625 expr = semanage_fcontext_get_expr(fcontext)
2626 ftype = semanage_fcontext_get_type(fcontext)
2628 con = semanage_fcontext_get_con(fcontext)
2655 print("%-50s %-18s %s\n" % (_("SELinux fcontext"), _("type"), _("Context")))
2668 print(_("\nSELinux Distribution fcontext Equivalence \n"))
2673 print(_("\nSELinux Local fcontext Equivalence \n"))