Searched refs:role (Results 1 - 25 of 254) sorted by relevance

1234567891011

/external/selinux/libsepol/tests/policies/test-hooks/
H A Dmodule_add_role_allow_trans.conf5 role role_a_1;
6 role role_a_2;
7 role role_t_1;
8 role role_t_2;
H A Dmodule_add_symbols.conf7 role role_add_1;
/external/selinux/libselinux/include/selinux/
H A Dget_default_type.h2 * for functions to get the default type for a role
15 /* Get the default type (domain) for 'role' and set 'type' to refer to it.
18 int get_default_type(const char *role, char **type);
H A Dget_context_list.h49 that has the specified role. If no reachable context exists
50 for the user with that role, then return -1. */
52 const char *role,
57 that has the specified role and level. If no reachable context exists
58 for the user with that role, then return -1. */
60 const char *role,
/external/selinux/libsepol/tests/policies/test-expander/
H A Drole-module.conf5 role role_check_1;
9 role role_check_1 types role_check_1_2_t;
/external/guava/guava/src/com/google/common/math/
H A DMathPreconditions.java30 static int checkPositive(@Nullable String role, int x) { argument
32 throw new IllegalArgumentException(role + " (" + x + ") must be > 0");
37 static long checkPositive(@Nullable String role, long x) { argument
39 throw new IllegalArgumentException(role + " (" + x + ") must be > 0");
44 static BigInteger checkPositive(@Nullable String role, BigInteger x) { argument
46 throw new IllegalArgumentException(role + " (" + x + ") must be > 0");
51 static int checkNonNegative(@Nullable String role, int x) { argument
53 throw new IllegalArgumentException(role + " (" + x + ") must be >= 0");
58 static long checkNonNegative(@Nullable String role, long x) { argument
60 throw new IllegalArgumentException(role
65 checkNonNegative(@ullable String role, BigInteger x) argument
72 checkNonNegative(@ullable String role, double x) argument
[all...]
/external/selinux/libsepol/tests/policies/test-deps/
H A Dmodreq-role-global.conf4 role role_req_r, user_r;
11 # role role_req_r types a_t;
H A Dmodreq-role-opt.conf12 role role_req_r, user_r;
H A Dmodule.conf7 role system_r;
13 role system_r types new_t;
/external/selinux/libsepol/tests/policies/test-linker/
H A Dmodule1.conf6 role g_b_role_2;
21 #add role in module test
22 role g_m1_role_1;
23 role g_m1_role_1 types g_m1_type_1;
40 #add type to base role test
41 role g_b_role_2 types g_m1_type_1;
42 role g_b_role_3;
43 role g_b_role_3 types g_m1_type_2;
45 #add type to base optional role test
46 role o1_b_role_
[all...]
H A Dmodule2.conf15 role g_m2_role_1;
16 role g_m2_role_1 types g_m2_type_1;
21 #add types to role declared in base test
23 role g_b_role_3;
24 role g_b_role_3 types g_m2_type_2;
26 #optional base role w/ adds in 2 modules
27 role o4_b_role_1;
28 role o4_b_role_1 types g_m2_type_1;
51 role o1_m2_role_1;
52 role o1_m2_role_
[all...]
/external/autotest/site_utils/
H A Dserver_manager.py8 create(hostname, role=None, note=None)
9 Create a server with given role, with status backup.
15 modify(hostname, role=None, status=None, note=None, delete=False,
17 Modify a server's role, status, note, or attribute:
18 1. Add role to a server. If the server is in primary status, proper actions
19 like service restart will be executed to enable the role.
20 2. Delete a role from a server. If the server is in primary status, proper
21 actions like service restart will be executed to disable the role.
24 or disable each role of the server.
43 def _add_role(server, role, actio
[all...]
H A Dserver_manager_utils.py39 def warn_missing_role(role, exclude_server):
41 given role.
43 @param role: Name of the role.
44 @param exclude_server: Server to be excluded from search for role.
47 roles__role=role,
51 message = ('WARNING! There will be no server with role %s after it\'s '
53 'normally without any server in role %s.' %
54 (role, exclude_server.hostname, role))
[all...]
/external/selinux/libsepol/tests/
H A Dtest-linker-roles.c33 * - role in appropriate symtab (global and decl)
38 * - role in base, no modules
39 * - role in base optional, no modules
40 * - role a in base, b in module
41 * - role a in base and module (additive)
42 * - role a in base and 2 module
43 * - role a in base optional, b in module
44 * - role a in base, b in module optional
45 * - role a in base optional, b in module optional
46 * - role
55 only_dominates_self(policydb_t * p, role_datum_t * role) argument
73 role_datum_t *role; local
102 role_datum_t *role; local
[all...]
/external/selinux/libsepol/include/sepol/
H A Droles.h9 const char *role, int *response);
/external/webrtc/webrtc/p2p/base/
H A Dtransportdescription.cc19 bool StringToConnectionRole(const std::string& role_str, ConnectionRole* role) { argument
29 *role = static_cast<ConnectionRole>(CONNECTIONROLE_ACTIVE + i);
36 bool ConnectionRoleToString(const ConnectionRole& role, std::string* role_str) { argument
37 switch (role) {
/external/snakeyaml/src/test/java/examples/collections/
H A DTypeSafePriorityTest.java91 private String role; field in class:TypeSafePriorityTest.Developer
96 public Developer(String name, String role) { argument
98 this.role = role;
110 return role;
113 public void setRole(String role) { argument
114 this.role = role;
H A DListFileldBeanTest.java95 private String role; field in class:ListFileldBeanTest.Developer
100 public Developer(String name, String role) { argument
102 this.role = role;
114 return role;
117 public void setRole(String role) { argument
118 this.role = role;
/external/selinux/libselinux/src/
H A Dget_default_type.c8 static int find_default_type(FILE * fp, const char *role, char **type);
10 int get_default_type(const char *role, char **type) argument
18 if (find_default_type(fp, role, type) < 0) {
27 static int find_default_type(FILE * fp, const char *role, char **type) argument
35 len = strlen(role);
50 if (!strncmp(role, ptr, len)) {
/external/selinux/libsepol/cil/test/integration_testing/
H A Dnonmls.conf48 role foo_r types foo_t;
49 role rolea_r;
50 role roleb_r;
53 #role decl
/external/selinux/libsepol/src/
H A Dcontext.c38 role_datum_t *role; local
45 if (!c->role || c->role > p->p_roles.nprim)
54 if (c->role != OBJECT_R_VAL) {
58 role = p->role_val_to_struct[c->role - 1];
59 if (!role || !ebitmap_get_bit(&role->cache, c->type - 1))
60 /* role may not be associated with type */
64 * User must be authorized for the role
157 char *role = strdup(sepol_context_get_role(record)); local
[all...]
/external/libxml2/
H A Dxlink.c124 xmlChar *type = NULL, *role = NULL; local
154 role = xmlGetNsProp(node, BAD_CAST "role", XLINK_NAMESPACE);
155 if (role != NULL) {
160 if (xmlStrEqual(role, BAD_CAST"xlink:external-linkset"))
167 if (xmlStrEqual(role, buf))
178 if (role != NULL) xmlFree(role);
/external/selinux/libselinux/utils/
H A Dgetdefaultcon.c23 char *user = NULL, *level = NULL, *role=NULL, *seuser=NULL, *dlevel=NULL; local
34 role = strdup(optarg);
70 if (role != NULL && role[0])
71 ret=get_default_context_with_rolelevel(seuser, role, level,cur_context,&usercon);
79 printf("%s: %s from %s %s %s %s -> %s\n", argv[0], user, cur_context, seuser, role, level, usercon);
85 free(role);
/external/libtextclassifier/smartselect/
H A Dtokenizer.cc30 CodepointRange(range.start(), range.end(), range.role()));
61 return it->role;
75 TokenizationCodepointRange::Role role = FindTokenizationRole(*it); local
76 if (role & TokenizationCodepointRange::SPLIT_BEFORE) {
82 if (!(role & TokenizationCodepointRange::DISCARD_CODEPOINT)) {
88 if (role & TokenizationCodepointRange::SPLIT_AFTER) {
/external/selinux/mcstrans/share/examples/non-mls-color/
H A Dsecolor.conf12 role * = white black

Completed in 327 milliseconds

1234567891011