Lines Matching defs:context
2 * chcon -- change security context, based on coreutils-5.97-13
9 #include <selinux/context.h>
33 context_t context = NULL;
46 bb_error_msg("cannot obtain security context: %s", fname);
51 bb_error_msg("cannot apply partial context to unlabeled file %s", fname);
56 context = set_security_context_component(file_context,
58 if (!context) {
59 bb_error_msg("cannot compute security context from %s", file_context);
63 context = context_new(specified_context);
64 if (!context) {
65 bb_error_msg("invalid context: %s", specified_context);
70 context_string = context_str(context);
72 bb_error_msg("cannot obtain security context in text expression");
86 ? "context of %s changed to %s\n"
87 : "failed to change context of %s to %s\n",
93 bb_error_msg("failed to change context of %s to %s",
97 printf("context of %s retained as %s\n", fname, context_string);
101 context_free(context);