Pass individual arguments in bindgen flags am: ed5407a024 am: 357e8d74f0 am: af7e4986ed

Original change: https://android-review.googlesource.com/c/platform/external/selinux/+/1390551

Change-Id: I5b62003176614c5f7e1f8926f9598e12bae4440c
This commit is contained in:
Stephen Crane 2020-08-06 22:37:24 +00:00 committed by Automerger Merge Worker
commit a8447bb6e2

View file

@ -239,59 +239,59 @@ rust_bindgen {
// This makes the generated bindings much more concise and improves compilation // This makes the generated bindings much more concise and improves compilation
// time. // time.
bindgen_flags: [ bindgen_flags: [
"--whitelist-function fgetfilecon", "--whitelist-function=fgetfilecon",
"--whitelist-function fgetfilecon_raw", "--whitelist-function=fgetfilecon_raw",
"--whitelist-function freecon", "--whitelist-function=freecon",
"--whitelist-function fsetfilecon", "--whitelist-function=fsetfilecon",
"--whitelist-function getcon", "--whitelist-function=getcon",
"--whitelist-function getfilecon", "--whitelist-function=getfilecon",
"--whitelist-function getpeercon", "--whitelist-function=getpeercon",
"--whitelist-function getpidcon", "--whitelist-function=getpidcon",
"--whitelist-function is_selinux_enabled", "--whitelist-function=is_selinux_enabled",
"--whitelist-function lgetfilecon", "--whitelist-function=lgetfilecon",
"--whitelist-function lsetfilecon", "--whitelist-function=lsetfilecon",
"--whitelist-function security_compute_create", "--whitelist-function=security_compute_create",
"--whitelist-function security_get_initial_context", "--whitelist-function=security_get_initial_context",
"--whitelist-function security_getenforce", "--whitelist-function=security_getenforce",
"--whitelist-function security_load_policy", "--whitelist-function=security_load_policy",
"--whitelist-function security_policyvers", "--whitelist-function=security_policyvers",
"--whitelist-function security_setenforce", "--whitelist-function=security_setenforce",
"--whitelist-function selabel_close", "--whitelist-function=selabel_close",
"--whitelist-function selabel_lookup", "--whitelist-function=selabel_lookup",
"--whitelist-function selabel_lookup_best_match", "--whitelist-function=selabel_lookup_best_match",
"--whitelist-function selabel_open", "--whitelist-function=selabel_open",
"--whitelist-function selinux_android_file_context_handle", "--whitelist-function=selinux_android_file_context_handle",
"--whitelist-function selinux_android_hw_service_context_handle", "--whitelist-function=selinux_android_hw_service_context_handle",
"--whitelist-function selinux_android_load_policy", "--whitelist-function=selinux_android_load_policy",
"--whitelist-function selinux_android_load_policy_from_fd", "--whitelist-function=selinux_android_load_policy_from_fd",
"--whitelist-function selinux_android_restorecon", "--whitelist-function=selinux_android_restorecon",
"--whitelist-function selinux_android_restorecon_pkgdir", "--whitelist-function=selinux_android_restorecon_pkgdir",
"--whitelist-function selinux_android_seapp_context_init", "--whitelist-function=selinux_android_seapp_context_init",
"--whitelist-function selinux_android_service_context_handle", "--whitelist-function=selinux_android_service_context_handle",
"--whitelist-function selinux_android_set_sehandle", "--whitelist-function=selinux_android_set_sehandle",
"--whitelist-function selinux_android_setcon", "--whitelist-function=selinux_android_setcon",
"--whitelist-function selinux_android_setcontext", "--whitelist-function=selinux_android_setcontext",
"--whitelist-function selinux_android_vendor_service_context_handle", "--whitelist-function=selinux_android_vendor_service_context_handle",
"--whitelist-function selinux_check_access", "--whitelist-function=selinux_check_access",
"--whitelist-function selinux_log_callback", "--whitelist-function=selinux_log_callback",
"--whitelist-function selinux_set_callback", "--whitelist-function=selinux_set_callback",
"--whitelist-function selinux_status_open", "--whitelist-function=selinux_status_open",
"--whitelist-function selinux_status_updated", "--whitelist-function=selinux_status_updated",
"--whitelist-function selinux_vendor_log_callback", "--whitelist-function=selinux_vendor_log_callback",
"--whitelist-function set_selinuxmnt", "--whitelist-function=set_selinuxmnt",
"--whitelist-function setcon", "--whitelist-function=setcon",
"--whitelist-function setexeccon", "--whitelist-function=setexeccon",
"--whitelist-function setfilecon", "--whitelist-function=setfilecon",
"--whitelist-function setfscreatecon", "--whitelist-function=setfscreatecon",
"--whitelist-function setsockcreatecon", "--whitelist-function=setsockcreatecon",
"--whitelist-function setsockcreatecon_raw", "--whitelist-function=setsockcreatecon_raw",
"--whitelist-function string_to_security_class", "--whitelist-function=string_to_security_class",
"--whitelist-function selinux_android_context_with_level", "--whitelist-function=selinux_android_context_with_level",
"--whitelist-function selinux_android_keystore2_key_context_handle", "--whitelist-function=selinux_android_keystore2_key_context_handle",
// We also need some constants in addition to the functions. // We also need some constants in addition to the functions.
"--whitelist-var SELABEL_.*", "--whitelist-var=SELABEL_.*",
"--whitelist-var SELINUX_.*", "--whitelist-var=SELINUX_.*",
], ],
// This is mainly to run layout tests for generated bindings on the host. // This is mainly to run layout tests for generated bindings on the host.