Home | History | Annotate | Download | only in src

Lines Matching refs:scontext

83  * allocated string of the correct size.  Set `*scontext'
93 char *scontext = NULL;
109 scontext = malloc(scontext_len);
110 if (!scontext)
112 scontext[scontext_len - 1] = '\0';
117 ptr = scontext;
130 *result = scontext;
136 free(scontext);
149 context_struct_t *scontext = NULL;
160 scontext = (context_struct_t *) malloc(sizeof(context_struct_t));
161 if (!user || !role || !type || !scontext) {
165 context_init(scontext);
174 scontext->user = usrdatum->s.value;
183 scontext->role = roldatum->s.value;
192 scontext->type = typdatum->s.value;
203 if (mls && (mls_from_string(handle, policydb, mls, scontext) < 0))
207 if (!context_is_valid(policydb, scontext)) {
220 *cptr = scontext;
228 context_destroy(scontext);
231 free(scontext);