Home | History | Annotate | Download | only in secon

Lines Matching defs:con

344 static int my_getXcon_raw(pid_t pid, security_context_t * con, const char *val)
360 *con = NULL;
361 if (ptr) { /* return *con = NULL, when proc file is empty */
367 if (*ptr && !(*con = strdup(ptr)))
374 static int my_getpidexeccon_raw(pid_t pid, security_context_t * con)
376 return (my_getXcon_raw(pid, con, "exec"));
378 static int my_getpidfscreatecon_raw(pid_t pid, security_context_t * con)
380 return (my_getXcon_raw(pid, con, "fscreate"));
382 static int my_getpidkeycreatecon_raw(pid_t pid, security_context_t * con)
384 return (my_getXcon_raw(pid, con, "keycreate"));
390 security_context_t con = NULL, con_tmp;
398 if (selinux_trans_to_raw_context(con_tmp, &con) < 0)
421 if (selinux_trans_to_raw_context(con_tmp, &con) < 0)
429 ret = getcon_raw(&con);
436 ret = getexeccon_raw(&con);
442 if (!con)
443 con = strdup(dummy_NIL);
446 ret = getfscreatecon_raw(&con);
452 if (!con)
453 con = strdup(dummy_NIL);
456 ret = getkeycreatecon_raw(&con);
462 if (!con)
463 con = strdup(dummy_NIL);
467 ret = getpidcon_raw(opts->f.pid, &con);
475 ret = my_getpidexeccon_raw(opts->f.pid, &con);
482 if (!con)
483 con = strdup(dummy_NIL);
486 ret = my_getpidfscreatecon_raw(opts->f.pid, &con);
493 if (!con)
494 con = strdup(dummy_NIL);
502 ret = my_getpidkeycreatecon_raw(opts->f.pid, &con);
509 if (!con)
510 con = strdup(dummy_NIL);
514 ret = getfilecon_raw(opts->f.file, &con);
523 ret = lgetfilecon_raw(opts->f.link, &con);
535 return (con);
626 context_t con = NULL;
686 if (!(con = context_new(scon)))
690 disp__con_val("user", context_user_get(con), &color);
693 disp__con_val("role", context_role_get(con), &color);
696 disp__con_val("type", context_type_get(con), &color);
702 val = context_range_get(con);
722 val = context_range_get(con);
740 disp__con_val("mls-range", context_range_get(con), &color);
742 context_free(con);