/external/selinux/libsepol/src/ |
D | context_record.c | 25 const char *sepol_context_get_user(const sepol_context_t * con) in sepol_context_get_user() argument 28 return con->user; in sepol_context_get_user() 34 sepol_context_t * con, const char *user) in hidden_def() 44 free(con->user); in hidden_def() 45 con->user = tmp_user; in hidden_def() 52 const char *sepol_context_get_role(const sepol_context_t * con) in hidden_def() 55 return con->role; in hidden_def() 61 sepol_context_t * con, const char *role) in hidden_def() 70 free(con->role); in hidden_def() 71 con->role = tmp_role; in hidden_def() [all …]
|
D | port_record.c | 16 sepol_context_t *con; member 216 tmp_port->con = NULL; in hidden_def() 237 if (port->con && in hidden_def() 238 (sepol_context_clone(handle, port->con, &new_port->con) < 0)) in hidden_def() 257 sepol_context_free(port->con); in sepol_port_free() 267 return port->con; in hidden_def() 273 sepol_port_t * port, sepol_context_t * con) in hidden_def() 278 if (sepol_context_clone(handle, con, &newcon) < 0) { in hidden_def() 283 sepol_context_free(port->con); in hidden_def() 284 port->con = newcon; in hidden_def()
|
/external/selinux/libsemanage/src/ |
D | context_record.c | 12 const char *semanage_context_get_user(const semanage_context_t * con) in semanage_context_get_user() argument 15 return sepol_context_get_user(con); in semanage_context_get_user() 19 semanage_context_t * con, const char *user) in semanage_context_set_user() argument 22 return sepol_context_set_user(handle->sepolh, con, user); in semanage_context_set_user() 26 const char *semanage_context_get_role(const semanage_context_t * con) in semanage_context_get_role() argument 29 return sepol_context_get_role(con); in semanage_context_get_role() 33 semanage_context_t * con, const char *role) in semanage_context_set_role() argument 36 return sepol_context_set_role(handle->sepolh, con, role); in semanage_context_set_role() 40 const char *semanage_context_get_type(const semanage_context_t * con) in semanage_context_get_type() argument 43 return sepol_context_get_type(con); in semanage_context_get_type() [all …]
|
D | interfaces_file.c | 62 semanage_context_t *con = NULL; in iface_parse() local 88 if (semanage_context_from_string(handle, str, &con) < 0) { in iface_parse() 93 if (con == NULL) { in iface_parse() 102 if (semanage_iface_set_ifcon(handle, iface, con) < 0) in iface_parse() 104 semanage_context_free(con); in iface_parse() 105 con = NULL; in iface_parse() 112 if (semanage_context_from_string(handle, str, &con) < 0) { in iface_parse() 117 if (con == NULL) { in iface_parse() 126 if (semanage_iface_set_msgcon(handle, iface, con) < 0) in iface_parse() 128 semanage_context_free(con); in iface_parse() [all …]
|
D | pywrap-test.py | 205 con = semanage.semanage_port_get_con(port) 212 (rc, con_str) = semanage.semanage_context_to_string(sh,con) 234 con = semanage.semanage_fcontext_get_con(fcon) 235 if not con: 238 (rc, con_str) = semanage.semanage_context_to_string(sh,con) 328 con = semanage.semanage_node_get_con(node) 330 (status, con_str) = semanage.semanage_context_to_string(sh, con) 520 (status, con) = semanage.semanage_context_create(sh) 525 status = semanage.semanage_context_set_user(sh, con, "system_u") 528 if self.verbose: print "SEContext user: ", semanage.semanage_context_get_user(con) [all …]
|
D | fcontext_record.c | 22 semanage_context_t *con; member 155 tmp_fcontext->con = NULL; in semanage_fcontext_create() 237 return fcontext->con; in hidden_def() 244 semanage_context_t * con) in hidden_def() 249 if (semanage_context_clone(handle, con, &newcon) < 0) { in hidden_def() 254 semanage_context_free(fcontext->con); in hidden_def() 255 fcontext->con = newcon; in hidden_def() 277 if (fcontext->con && in hidden_def() 278 (semanage_context_clone(handle, fcontext->con, &new_fcontext->con) < in hidden_def() 301 semanage_context_free(fcontext->con); in hidden_def()
|
D | fcontexts_file.c | 56 semanage_context_t *con = semanage_fcontext_get_con(fcontext); in fcontext_print() local 61 if (con != NULL) { in fcontext_print() 62 if (semanage_context_to_string(handle, con, &con_str) < 0) in fcontext_print() 86 semanage_context_t *con = NULL; in fcontext_parse() local 132 if (semanage_context_from_string(handle, str, &con) < 0) { in fcontext_parse() 140 if (con && semanage_fcontext_set_con(handle, fcontext, con) < 0) in fcontext_parse() 146 semanage_context_free(con); in fcontext_parse() 156 semanage_context_free(con); in fcontext_parse()
|
/external/gptfdisk/ |
D | android_popt.cc | 62 poptContext con = (poptContext) calloc(1, sizeof(struct _poptContext)); in poptGetContext() local 63 con->argc = argc; in poptGetContext() 64 con->argv = argv; in poptGetContext() 65 con->options = options; in poptGetContext() 66 con->long_options = long_options; in poptGetContext() 67 return con; in poptGetContext() 70 poptContext poptFreeContext(poptContext con) { in poptFreeContext() argument 71 free(con->long_options); in poptFreeContext() 72 free(con); in poptFreeContext() 76 void poptResetContext(poptContext con) { in poptResetContext() argument [all …]
|
D | popt.h | 61 poptContext poptFreeContext(poptContext con); 62 void poptResetContext(poptContext con); 64 void poptSetOtherOptionHelp(poptContext con, const char *text); 65 void poptPrintUsage(poptContext con, FILE *fp, int flags); 67 int poptGetNextOpt(poptContext con); 68 const char *poptGetArg(poptContext con);
|
/external/selinux/libselinux/include/selinux/ |
D | selinux.h | 20 extern void freecon(char * con); 23 extern void freeconary(char ** con); 29 extern int getcon(char ** con); 30 extern int getcon_raw(char ** con); 40 extern int setcon(const char * con); 41 extern int setcon_raw(const char * con); 45 extern int getpidcon(pid_t pid, char ** con); 46 extern int getpidcon_raw(pid_t pid, char ** con); 50 extern int getprevcon(char ** con); 51 extern int getprevcon_raw(char ** con); [all …]
|
/external/libselinux/include/selinux/ |
D | selinux.h | 20 extern void freecon(char * con); 23 extern void freeconary(char ** con); 29 extern int getcon(char ** con); 39 extern int setcon(const char * con); 43 extern int getpidcon(pid_t pid, char ** con); 47 extern int getprevcon(char ** con); 52 extern int getexeccon(char ** con); 56 extern int setexeccon(const char * con); 61 extern int getfscreatecon(char ** con); 70 extern int getkeycreatecon(char ** con); [all …]
|
/external/selinux/libselinux/src/ |
D | get_context_list.c | 20 context_t con; in get_default_context_with_role() local 29 con = context_new(*ptr); in get_default_context_with_role() 30 if (!con) in get_default_context_with_role() 32 role2 = context_role_get(con); in get_default_context_with_role() 34 context_free(con); in get_default_context_with_role() 37 context_free(con); in get_default_context_with_role() 65 context_t con; in hidden_def() local 79 con = context_new(fromcon); in hidden_def() 80 if (!con) in hidden_def() 83 if (context_range_set(con, level)) in hidden_def() [all …]
|
D | compute_user.c | 13 const char *user, char *** con) in security_compute_user_raw() argument 71 *con = ary; in security_compute_user_raw() 83 const char *user, char *** con) in hidden_def() 91 ret = security_compute_user_raw(rscon, user, con); in hidden_def() 96 for (ptr = *con; *ptr; ptr++) { in hidden_def() 98 freeconary(*con); in hidden_def() 99 *con = NULL; in hidden_def()
|
/external/wpa_supplicant_8/wpa_supplicant/dbus/ |
D | dbus_common.c | 34 static void dispatch_data(DBusConnection *con) in dispatch_data() argument 36 while (dbus_connection_get_dispatch_status(con) == in dispatch_data() 38 dbus_connection_dispatch(con); in dispatch_data() 54 DBusConnection *con = eloop_ctx; in dispatch_initial_dbus_messages() local 55 dispatch_data(con); in dispatch_initial_dbus_messages() 62 dbus_connection_ref(priv->con); in process_watch() 74 dispatch_data(priv->con); in process_watch() 78 dbus_connection_unref(priv->con); in process_watch() 203 if (sig != SIGPOLL || !priv->con) in process_wakeup_main() 206 if (dbus_connection_get_dispatch_status(priv->con) != in process_wakeup_main() [all …]
|
D | dbus_new_helpers.c | 480 obj_desc->connection = iface->con; in wpa_dbus_ctrl_iface_init() 484 if (!dbus_connection_register_object_path(iface->con, dbus_path, in wpa_dbus_ctrl_iface_init() 492 switch (dbus_bus_request_name(iface->con, dbus_service, 0, &error)) { in wpa_dbus_ctrl_iface_init() 533 DBusConnection *con; in wpa_dbus_register_object_per_iface() local 544 con = ctrl_iface->con; in wpa_dbus_register_object_per_iface() 545 obj_desc->connection = con; in wpa_dbus_register_object_per_iface() 550 if (!dbus_connection_try_register_object_path(con, path, &vtable, in wpa_dbus_register_object_per_iface() 582 DBusConnection *con = ctrl_iface->con; in wpa_dbus_unregister_object_per_iface() local 585 dbus_connection_get_object_path_data(con, path, (void **) &obj_desc); in wpa_dbus_unregister_object_per_iface() 593 eloop_cancel_timeout(flush_object_timeout_handler, con, obj_desc); in wpa_dbus_unregister_object_per_iface() [all …]
|
/external/selinux/libsemanage/include/semanage/ |
D | context_record.h | 15 extern const char *semanage_context_get_user(const semanage_context_t * con); 18 semanage_context_t * con, 22 extern const char *semanage_context_get_role(const semanage_context_t * con); 25 semanage_context_t * con, 29 extern const char *semanage_context_get_type(const semanage_context_t * con); 32 semanage_context_t * con, 36 extern const char *semanage_context_get_mls(const semanage_context_t * con); 39 semanage_context_t * con, 47 const semanage_context_t * con, 50 extern void semanage_context_free(semanage_context_t * con); [all …]
|
/external/selinux/libsepol/include/sepol/ |
D | context_record.h | 16 extern const char *sepol_context_get_user(const sepol_context_t * con); 19 sepol_context_t * con, const char *user); 22 extern const char *sepol_context_get_role(const sepol_context_t * con); 25 sepol_context_t * con, const char *role); 28 extern const char *sepol_context_get_type(const sepol_context_t * con); 31 sepol_context_t * con, const char *type); 34 extern const char *sepol_context_get_mls(const sepol_context_t * con); 37 sepol_context_t * con, const char *mls_range); 44 const sepol_context_t * con, 47 extern void sepol_context_free(sepol_context_t * con); [all …]
|
/external/jacoco/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/ |
D | TcpConnectionTest.java | 70 final TcpConnection con = new TcpConnection( in testInvalidContent() local 72 con.init(); in testInvalidContent() 74 con.run(); in testInvalidContent() 86 final TcpConnection con = new TcpConnection( in testRemoteClose() local 88 con.init(); in testRemoteClose() 92 con.run(); in testRemoteClose() 107 final TcpConnection con = new TcpConnection( in testRemoteCloseWithoutHeader() local 112 con.init(); in testRemoteCloseWithoutHeader() 134 final TcpConnection con = new TcpConnection( in testLocalClose() local 136 con.init(); in testLocalClose() [all …]
|
/external/selinux/policycoreutils/secon/ |
D | secon.c | 344 static int my_getXcon_raw(pid_t pid, security_context_t * con, const char *val) in my_getXcon_raw() argument 360 *con = NULL; in my_getXcon_raw() 367 if (*ptr && !(*con = strdup(ptr))) in my_getXcon_raw() 374 static int my_getpidexeccon_raw(pid_t pid, security_context_t * con) in my_getpidexeccon_raw() argument 376 return (my_getXcon_raw(pid, con, "exec")); in my_getpidexeccon_raw() 378 static int my_getpidfscreatecon_raw(pid_t pid, security_context_t * con) in my_getpidfscreatecon_raw() argument 380 return (my_getXcon_raw(pid, con, "fscreate")); in my_getpidfscreatecon_raw() 382 static int my_getpidkeycreatecon_raw(pid_t pid, security_context_t * con) in my_getpidkeycreatecon_raw() argument 384 return (my_getXcon_raw(pid, con, "keycreate")); in my_getpidkeycreatecon_raw() 390 security_context_t con = NULL, con_tmp; in get_scon() local [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/constructor/ |
D | PrefixConstructorTest.java | 74 private BaseConstructor con; field in PrefixConstructorTest.PrefixConstruct 76 public PrefixConstruct(String prefix, BaseConstructor con) { in PrefixConstruct() argument 78 this.con = con; in PrefixConstruct() 83 return new Extra(suffix, con.constructScalar((ScalarNode) node).toString()); in construct() 91 private BaseConstructor con; field in PrefixConstructorTest.ExactConstruct 93 public ExactConstruct(BaseConstructor con) { in ExactConstruct() argument 94 this.con = con; in ExactConstruct() 98 return new Extra("Item", con.constructScalar((ScalarNode) node).toString()); in construct() 106 private BaseConstructor con; field in PrefixConstructorTest.ConstructUnknown 108 public ConstructUnknown(BaseConstructor con) { in ConstructUnknown() argument [all …]
|
/external/javassist/src/main/javassist/ |
D | URLClassPath.java | 78 URLConnection con = openClassfile0(classname); in openClassfile() local 79 if (con != null) in openClassfile() 80 return con.getInputStream(); in openClassfile() 103 URLConnection con = openClassfile0(classname); in find() local 104 InputStream is = con.getInputStream(); in find() 107 return con.getURL(); in find() 134 URLConnection con = fetchClass0(host, port, in fetchClass() local 136 int size = con.getContentLength(); in fetchClass() 137 InputStream s = con.getInputStream(); in fetchClass() 174 URLConnection con = url.openConnection(); in fetchClass0() local [all …]
|
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/ |
D | HttpsURLConnectionTest.java | 39 HttpsURLConnection con = new MyHttpsURLConnection(new URL( in testGetPeerPrincipal() local 42 con.getPeerPrincipal(); in testGetPeerPrincipal() 49 HttpsURLConnection con = new MyHttpsURLConnection(null); in testGetLocalPrincipal() local 50 if (con.getLocalPrincipal() != null) { in testGetLocalPrincipal() 64 HttpsURLConnection con = new MyHttpsURLConnection(null); in testSetHostnameVerifier() local 66 con.setHostnameVerifier(null); in testSetHostnameVerifier() 80 HttpsURLConnection con = new MyHttpsURLConnection(null); in testGetSSLSocketFactory() local 81 SSLSocketFactory sf = con.getSSLSocketFactory(); in testGetSSLSocketFactory() 96 HttpsURLConnection con = new MyHttpsURLConnection(null); in testSetSSLSocketFactory() local 98 con.setSSLSocketFactory(null); in testSetSSLSocketFactory()
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_test_blend.c | 55 typedef void (*blend_test_ptr_t)(const void *src, const void *dst, const void *con, void *res); 191 LLVMValueRef con; in add_blend_test() local 196 con = LLVMBuildLoad(builder, const_ptr, "const"); in add_blend_test() 198 res = lp_build_blend_aos(gallivm, blend, &format, type, rt, src, dst, NULL, con, swizzle); in add_blend_test() 208 LLVMValueRef con[4]; in add_blend_test() local 216 con[i] = LLVMBuildLoad(builder, LLVMBuildGEP(builder, const_ptr, &index, 1, ""), ""); in add_blend_test() 218 lp_build_name(con[i], "con.%c", "rgba"[i]); in add_blend_test() 222 lp_build_blend_soa(gallivm, blend, type, rt, src, dst, con, res); in add_blend_test() 243 const double *con, in compute_blend_ref_term() argument 281 term[0] = factor[0] * con[0]; /* R */ in compute_blend_ref_term() [all …]
|
/external/selinux/policycoreutils/mcstrans/src/ |
D | mcscolor.c | 80 context_t con; in check_dominance() local 88 con = context_new(raw); in check_dominance() 89 if (!con) in check_dominance() 91 raw_range = context_range_get(con); in check_dominance() 95 context_free(con); in check_dominance() 120 context_free(con); in check_dominance() 274 static int parse_components(context_t con, char **components) { in parse_components() argument 275 components[COLOR_USER] = (char *)context_user_get(con); in parse_components() 276 components[COLOR_ROLE] = (char *)context_role_get(con); in parse_components() 277 components[COLOR_TYPE] = (char *)context_type_get(con); in parse_components() [all …]
|
/external/libdrm/tests/kms/ |
D | libkms-test-screen.c | 36 drmModeConnector *con; in kms_screen_probe() local 38 con = drmModeGetConnector(device->fd, screen->id); in kms_screen_probe() 39 if (!con) in kms_screen_probe() 42 screen->type = con->connector_type; in kms_screen_probe() 44 if (con->connection == DRM_MODE_CONNECTED) in kms_screen_probe() 49 memcpy(&screen->mode, &con->modes[0], sizeof(drmModeModeInfo)); in kms_screen_probe() 53 drmModeFreeConnector(con); in kms_screen_probe()
|