HomeSort by relevance Sort by last modified time
    Searched refs:policydb (Results 26 - 50 of 87) sorted by null

12 3 4

  /external/libsepol/src/
genbools.c 6 #include <sepol/policydb/policydb.h>
7 #include <sepol/policydb/conditional.h>
66 static int load_booleans(struct policydb *policydb, const char *path,
96 datum = hashtab_search(policydb->p_bools.table, name);
127 hashtab_search(policydb->p_bools.table,
151 struct policydb policydb; local
155 if (policydb_init(&policydb))
212 struct policydb policydb; local
    [all...]
policydb_convert.c 6 #include <sepol/policydb/policydb.h>
8 /* Construct a policydb from the supplied (data, len) pair */
11 void *data, size_t len, policydb_t * policydb)
22 if (policydb_read(policydb, &pf, 0)) {
23 policydb_destroy(policydb);
32 /* Write a policydb to a memory region, and return the (data, len) pair. */
35 policydb_t * policydb, void **newdata, size_t * newlen)
41 struct policydb tmp_policydb;
47 if (policydb_write(policydb, &pf))
    [all...]
interfaces.c 7 #include <sepol/policydb/policydb.h>
13 const policydb_t * policydb,
30 if (context_from_record(handle, policydb,
39 if (context_from_record(handle, policydb,
67 const policydb_t * policydb,
84 if (context_to_record(handle, policydb, ifcon, &tmp_con) < 0)
91 if (context_to_record(handle, policydb, msgcon, &tmp_con) < 0)
114 const policydb_t *policydb = &p->p; local
120 head = policydb->ocontexts[OCON_NETIF]
139 const policydb_t *policydb = &p->p; local
171 policydb_t *policydb = &p->p; local
225 const policydb_t *policydb = &p->p; local
243 const policydb_t *policydb = &p->p; local
    [all...]
genusers.c 8 #include <sepol/policydb/policydb.h>
35 static int load_users(struct policydb *policydb, const char *path)
87 usrdatum = hashtab_search(policydb->p_users.table, q);
112 usrdatum->s.value = ++policydb->p_users.nprim;
114 if (hashtab_insert(policydb->p_users.table,
163 roldatum = hashtab_search(policydb->p_roles.table, q);
184 if (policydb->mls) {
227 if (mls_context_to_sid(policydb, oldc, &r, &context)
294 struct policydb policydb; local
    [all...]
nodes.c 9 #include <sepol/policydb/policydb.h>
15 const policydb_t * policydb,
56 if (context_from_record(handle, policydb, &tmp_con,
84 const policydb_t * policydb,
129 if (context_to_record(handle, policydb, con, &tmp_con) < 0)
153 const policydb_t *policydb = &p->p; local
155 head = policydb->ocontexts[OCON_NODE];
159 head = policydb->ocontexts[OCON_NODE6];
175 const policydb_t *policydb = &p->p local
235 const policydb_t *policydb = &p->p; local
301 policydb_t *policydb = &p->p; local
351 const policydb_t *policydb = &p->p; local
    [all...]
polcaps.c 6 #include <sepol/policydb/polcaps.h>
ports.c 8 #include <sepol/policydb/policydb.h>
42 const policydb_t * policydb,
74 if (context_from_record(handle, policydb, &tmp_con,
101 const policydb_t * policydb,
124 if (context_to_record(handle, policydb, con, &tmp_con) < 0)
149 const policydb_t *policydb = &p->p; local
151 head = policydb->ocontexts[OCON_PORT];
167 const policydb_t *policydb = &p->p; local
178 head = policydb->ocontexts[OCON_PORT]
205 const policydb_t *policydb = &p->p; local
245 policydb_t *policydb = &p->p; local
282 const policydb_t *policydb = &p->p; local
    [all...]
mls.c 30 #include <sepol/policydb/policydb.h>
31 #include <sepol/policydb/services.h>
32 #include <sepol/policydb/flask.h>
33 #include <sepol/policydb/context.h>
43 const policydb_t * policydb,
50 int len = mls_compute_context_len(policydb, mls) + 1;
61 mls_sid_to_context(policydb, mls, &ptr);
79 const policydb_t * policydb,
88 if (mls_context_to_sid(policydb, '$', &tmp_cp, mls) < 0)
    [all...]
symtab.c 11 #include <sepol/policydb/hashtab.h>
12 #include <sepol/policydb/symtab.h>
services.c 52 #include <sepol/policydb/policydb.h>
53 #include <sepol/policydb/sidtab.h>
54 #include <sepol/policydb/services.h>
55 #include <sepol/policydb/conditional.h>
56 #include <sepol/policydb/flask.h>
71 static policydb_t mypolicydb, *policydb = &mypolicydb; variable
81 policydb = p;
103 policydb = &mypolicydb;
170 r1 = policydb->role_val_to_struct[val1 - 1]
    [all...]
util.c 25 #include <sepol/policydb/flask_types.h>
26 #include <sepol/policydb/policydb.h>
  /external/libsepol/include/sepol/
booleans.h 5 #include <sepol/policydb.h>
29 sepol_policydb_t * policydb,
39 const sepol_policydb_t * policydb,
55 const sepol_policydb_t * policydb,
users.h 4 #include <sepol/policydb.h>
28 sepol_policydb_t * policydb,
38 const sepol_policydb_t * policydb,
53 const sepol_policydb_t * policydb,
  /external/libsepol/include/sepol/policydb/
symtab.h 16 #include <sepol/policydb/hashtab.h>
avrule_block.h 23 #include <sepol/policydb/policydb.h>
services.h 15 #include <sepol/policydb/flask_types.h>
16 #include <sepol/policydb/policydb.h>
19 /* Set the policydb and sidtab structures to be used by
29 /* Modify a policydb for boolean settings. */
30 int sepol_genbools_policydb(policydb_t * policydb, const char *booleans);
32 /* Modify a policydb for user settings. */
33 int sepol_genusers_policydb(policydb_t * policydb, const char *usersdir);
35 /* Load the security policy. This initializes the policydb
conditional.h 24 #include <sepol/policydb/flask_types.h>
25 #include <sepol/policydb/avtab.h>
26 #include <sepol/policydb/symtab.h>
27 #include <sepol/policydb/policydb.h>
  /external/libsepol/tests/
test-cond.c 25 #include <sepol/policydb/policydb.h>
26 #include <sepol/policydb/link.h>
27 #include <sepol/policydb/expand.h>
28 #include <sepol/policydb/conditional.h>
test-common.h 25 #include <sepol/policydb/policydb.h>
39 /* Test the indexes in the policydb to ensure their correctness. These include
test-linker.c 37 #include <sepol/policydb/policydb.h>
38 #include <sepol/policydb/link.h>
39 #include <sepol/policydb/conditional.h>
40 #include <sepol/policydb/expand.h>
  /external/checkpolicy/
checkpolicy.h 4 #include <sepol/policydb/ebitmap.h>
checkmodule.c 23 #include <sepol/policydb/policydb.h>
24 #include <sepol/policydb/services.h>
25 #include <sepol/policydb/conditional.h>
26 #include <sepol/policydb/flask.h>
27 #include <sepol/policydb/hierarchy.h>
28 #include <sepol/policydb/expand.h>
29 #include <sepol/policydb/link.h>
30 #include <sepol/policydb/sidtab.h>
239 /* Set policydb and sidtab used by libsepol service function
    [all...]
checkpolicy.c 77 #include <sepol/policydb/policydb.h>
78 #include <sepol/policydb/services.h>
79 #include <sepol/policydb/conditional.h>
80 #include <sepol/policydb/hierarchy.h>
81 #include <sepol/policydb/flask.h>
82 #include <sepol/policydb/expand.h>
83 #include <sepol/policydb/link.h>
92 static policydb_t policydb; variable
234 type_rules = malloc(sizeof(struct avtab_node) * policydb.p_types.nprim)
    [all...]
  /external/checkpolicy/test/
dismod.c 30 #include <sepol/policydb/policydb.h>
31 #include <sepol/policydb/services.h>
32 #include <sepol/policydb/conditional.h>
33 #include <sepol/policydb/flask.h>
34 #include <sepol/policydb/link.h>
35 #include <sepol/policydb/module.h>
36 #include <sepol/policydb/util.h>
37 #include <sepol/policydb/polcaps.h>
57 static policydb_t policydb; variable
    [all...]
dispol.c 20 #include <sepol/policydb/policydb.h>
21 #include <sepol/policydb/avtab.h>
22 #include <sepol/policydb/services.h>
23 #include <sepol/policydb/conditional.h>
24 #include <sepol/policydb/expand.h>
25 #include <sepol/policydb/util.h>
26 #include <sepol/policydb/polcaps.h>
38 static policydb_t policydb; variable
434 if (policydb_init(&policydb)) {
    [all...]

Completed in 125 milliseconds

12 3 4