Home
last modified time | relevance | path

Searched refs:newp (Results 1 – 4 of 4) sorted by relevance

/security/selinux/ss/
Dconditional.c628 static int duplicate_policydb_cond_list(struct policydb *newp, in duplicate_policydb_cond_list() argument
634 rc = avtab_alloc_dup(&newp->te_cond_avtab, &origp->te_cond_avtab); in duplicate_policydb_cond_list()
638 newp->cond_list_len = 0; in duplicate_policydb_cond_list()
639 newp->cond_list = kcalloc(origp->cond_list_len, in duplicate_policydb_cond_list()
640 sizeof(*newp->cond_list), in duplicate_policydb_cond_list()
642 if (!newp->cond_list) in duplicate_policydb_cond_list()
646 struct cond_node *newn = &newp->cond_list[i]; in duplicate_policydb_cond_list()
649 newp->cond_list_len++; in duplicate_policydb_cond_list()
661 &newp->te_cond_avtab); in duplicate_policydb_cond_list()
666 &newp->te_cond_avtab); in duplicate_policydb_cond_list()
[all …]
Dmls.c447 struct policydb *newp, in mls_convert_context() argument
456 if (!oldp->mls_enabled || !newp->mls_enabled) in mls_convert_context()
463 levdatum = symtab_search(&newp->p_levels, name); in mls_convert_context()
473 catdatum = symtab_search(&newp->p_cats, in mls_convert_context()
Dmls.h51 struct policydb *newp,
Dservices.c76 struct policydb *newp; member
2046 rc = string_to_context_struct(args->newp, NULL, s, in convert_context()
2077 usrdatum = symtab_search(&args->newp->p_users, in convert_context()
2085 role = symtab_search(&args->newp->p_roles, in convert_context()
2092 typdatum = symtab_search(&args->newp->p_types, in convert_context()
2100 if (args->oldp->mls_enabled && args->newp->mls_enabled) { in convert_context()
2101 rc = mls_convert_context(args->oldp, args->newp, oldc, newc); in convert_context()
2104 } else if (!args->oldp->mls_enabled && args->newp->mls_enabled) { in convert_context()
2112 oc = args->newp->ocontexts[OCON_ISID]; in convert_context()
2126 if (!policydb_context_isvalid(args->newp, newc)) { in convert_context()
[all …]