Home | History | Annotate | Download | only in secon

Lines Matching defs:pid

67 		pid_t pid;
101 " --pid -p <arg> Use the context from the specified pid.\n"
102 " --pid-exec <arg> Use the exec context from the specified pid.\n"
103 " --pid-fs <arg> Use the fs context from the specified pid.\n"
104 " --pid-key <arg> Use the key context from the specified pid.\n"
191 {"pid", required_argument, NULL, 'p'},
192 {"pid-exec", required_argument, NULL, 9},
193 {"pid-fs", required_argument, NULL, 10},
194 {"pid-key", required_argument, NULL, 11},
268 opts->f.pid = getppid();
272 opts->f.pid = getppid();
276 opts->f.pid = getppid();
280 opts->f.pid = getppid();
293 opts->f.pid = atoi(optarg);
297 opts->f.pid = atoi(optarg);
301 opts->f.pid = atoi(optarg);
305 opts->f.pid = atoi(optarg);
345 static int my_getXcon_raw(pid_t pid, security_context_t * con, const char *val)
351 snprintf(buf, sizeof(buf), "%s/%ld/attr/%s", "/proc", (long int)pid,
375 static int my_getpidexeccon_raw(pid_t pid, security_context_t * con)
377 return (my_getXcon_raw(pid, con, "exec"));
379 static int my_getpidfscreatecon_raw(pid_t pid, security_context_t * con)
381 return (my_getXcon_raw(pid, con, "fscreate"));
383 static int my_getpidkeycreatecon_raw(pid_t pid, security_context_t * con)
385 return (my_getXcon_raw(pid, con, "keycreate"));
468 ret = getpidcon_raw(opts->f.pid, &con);
472 " Couldn't get security context for pid %lu",
473 (unsigned long)opts->f.pid);
476 ret = my_getpidexeccon_raw(opts->f.pid, &con);
480 " Couldn't get security context for pid %lu",
481 (unsigned long)opts->f.pid);
487 ret = my_getpidfscreatecon_raw(opts->f.pid, &con);
491 " Couldn't get security context for pid %lu",
492 (unsigned long)opts->f.pid);
503 ret = my_getpidkeycreatecon_raw(opts->f.pid, &con);
507 " Couldn't get security context for pid %lu",
508 (unsigned long)opts->f.pid);