Lines Matching refs:ctx
2541 char *ctx = NULL;
2556 ctx = create_str("(%s %s %s %s)", 4, user, role, type, range);
2560 return ctx;
2569 char *ctx, *rule;
2587 ctx = context_to_str(pdb, &isid->context[0]);
2588 if (!ctx) {
2593 rule = create_str("(sidcontext %s %s)", 2, sid, ctx);
2594 free(ctx);
2630 char *name, *ctx;
2645 ctx = context_to_str(pdb, &fsuse->context[0]);
2646 if (!ctx) {
2651 sepol_printf(out, "(fsuse %s %s %s)\n", behavior, name, ctx);
2653 free(ctx);
2669 char *fstype, *name, *ctx;
2708 ctx = context_to_str(pdb, &ocon->context[0]);
2709 if (!ctx) {
2716 fstype, name, file_type, ctx);
2719 fstype, name, ctx);
2721 free(ctx);
2749 char *ctx;
2776 ctx = context_to_str(pdb, &portcon->context[0]);
2777 if (!ctx) {
2782 sepol_printf(out, "(portcon %s %s %s)\n", protocol, low_high_str, ctx);
2784 free(ctx);
2836 char *ctx;
2852 ctx = context_to_str(pdb, &node->context[0]);
2853 if (!ctx) {
2858 sepol_printf(out, "(nodecon (%s) (%s) %s)\n", addr, mask, ctx);
2860 free(ctx);
2876 char *ctx;
2892 ctx = context_to_str(pdb, &node->context[0]);
2893 if (!ctx) {
2898 sepol_printf(out, "(nodecon (%s) (%s) %s)\n", addr, mask, ctx);
2900 free(ctx);
2919 char *ctx;
2946 ctx = context_to_str(pdb, &ibpkeycon->context[0]);
2947 if (!ctx) {
2952 sepol_printf(out, "(ibpkeycon %s %s %s)\n", subnet_prefix_str, low_high_str, ctx);
2954 free(ctx);
2971 char *ctx;
2982 ctx = context_to_str(pdb, &ibendportcon->context[0]);
2983 if (!ctx) {
2989 ibendportcon->u.ibendport.dev_name, port_str, ctx);
2991 free(ctx);
3013 char *ctx;
3023 ctx = context_to_str(pdb, &pirq->context[0]);
3024 if (!ctx) {
3029 sepol_printf(out, "(pirqcon %s %s)\n", pirq_str, ctx);
3031 free(ctx);
3050 char *ctx;
3066 ctx = context_to_str(pdb, &ioport->context[0]);
3067 if (!ctx) {
3072 sepol_printf(out, "(ioportcon %s %s)\n", low_high_str, ctx);
3074 free(ctx);
3093 char *ctx;
3109 ctx = context_to_str(pdb, &iomem->context[0]);
3110 if (!ctx) {
3115 sepol_printf(out, "(iomemcon %s %s)\n", low_high_str, ctx);
3117 free(ctx);
3134 char *ctx;
3144 ctx = context_to_str(pdb, &pcid->context[0]);
3145 if (!ctx) {
3150 sepol_printf(out, "(pcidevicecon %s %s)\n", device_str, ctx);
3152 free(ctx);
3168 char *name, *ctx;
3173 ctx = context_to_str(pdb, &dtree->context[0]);
3174 if (!ctx) {
3179 sepol_printf(out, "(devicetreecon \"%s\" %s)\n", name, ctx);
3181 free(ctx);