1f944107a3
This is dlopened by sepolicy_tests, which uses embeds the python interpreter built from our tree. That python interpreter links against the shared version of libc++, so mixing it with this static copy was causing segfaults on Mac 10.15 (but apparently not elsewhere). Test: SANITIZE_HOST=address m treble_sepolicy_tests Test: `m` on Mac 10.15 Change-Id: I31744acd018ea4c980c46a9979bbad17ae1c4f68
81 lines
1.6 KiB
Text
81 lines
1.6 KiB
Text
cc_library_host_shared {
|
|
name: "libsepolwrap",
|
|
srcs: ["sepol_wrap.cpp"],
|
|
cflags: ["-Wall", "-Werror",],
|
|
export_include_dirs: ["include"],
|
|
|
|
// libsepolwrap gets loaded from the system python, which does not have the
|
|
// ASAN runtime. So turn off sanitization for ourself, and use static
|
|
// libraries, since the shared libraries will use ASAN.
|
|
static_libs: [
|
|
"libbase",
|
|
"libsepol",
|
|
],
|
|
sanitize: {
|
|
never: true,
|
|
},
|
|
}
|
|
|
|
python_defaults {
|
|
name: "py2_only",
|
|
version: {
|
|
py2: {
|
|
embedded_launcher: true,
|
|
enabled: true,
|
|
},
|
|
py3: {
|
|
enabled: false,
|
|
},
|
|
},
|
|
}
|
|
|
|
python_binary_host {
|
|
name: "treble_sepolicy_tests",
|
|
srcs: [
|
|
"fc_sort.py",
|
|
"mini_parser.py",
|
|
"policy.py",
|
|
"treble_sepolicy_tests.py",
|
|
],
|
|
required: ["libsepolwrap"],
|
|
defaults: ["py2_only"],
|
|
}
|
|
|
|
python_binary_host {
|
|
name: "sepolicy_tests",
|
|
srcs: [
|
|
"fc_sort.py",
|
|
"policy.py",
|
|
"sepolicy_tests.py",
|
|
],
|
|
required: ["libsepolwrap"],
|
|
defaults: ["py2_only"],
|
|
}
|
|
|
|
python_binary_host {
|
|
name: "searchpolicy",
|
|
srcs: [
|
|
"fc_sort.py",
|
|
"policy.py",
|
|
"searchpolicy.py",
|
|
],
|
|
required: ["libsepolwrap"],
|
|
defaults: ["py2_only"],
|
|
}
|
|
|
|
python_binary_host {
|
|
name: "combine_maps",
|
|
srcs: [
|
|
"combine_maps.py",
|
|
"mini_parser.py",
|
|
],
|
|
defaults: ["py2_only"],
|
|
}
|
|
|
|
python_binary_host {
|
|
name: "fc_sort",
|
|
srcs: [
|
|
"fc_sort.py",
|
|
],
|
|
defaults: ["py2_only"],
|
|
}
|