2017-05-25 18:53:47 +02:00
|
|
|
cc_library_host_shared {
|
|
|
|
name: "libsepolwrap",
|
|
|
|
srcs: ["sepol_wrap.cpp"],
|
|
|
|
cflags: ["-Wall", "-Werror",],
|
|
|
|
export_include_dirs: ["include"],
|
2017-09-01 23:08:46 +02:00
|
|
|
|
|
|
|
// 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.
|
2017-10-04 18:42:29 +02:00
|
|
|
static_libs: [
|
|
|
|
"libbase",
|
|
|
|
"libsepol",
|
|
|
|
],
|
2017-09-01 23:08:46 +02:00
|
|
|
sanitize: {
|
|
|
|
never: true,
|
|
|
|
},
|
2017-05-25 18:53:47 +02:00
|
|
|
}
|
2017-06-01 00:36:07 +02:00
|
|
|
|
2017-09-23 23:42:50 +02:00
|
|
|
python_defaults {
|
|
|
|
name: "py2_only",
|
|
|
|
version: {
|
|
|
|
py2: {
|
2017-09-24 00:11:25 +02:00
|
|
|
embedded_launcher: true,
|
2017-09-23 23:42:50 +02:00
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
py3: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
2017-06-01 00:36:07 +02:00
|
|
|
}
|
|
|
|
|
2017-09-23 23:42:50 +02:00
|
|
|
python_binary_host {
|
|
|
|
name: "treble_sepolicy_tests",
|
|
|
|
srcs: [
|
2019-04-11 01:53:17 +02:00
|
|
|
"fc_sort.py",
|
2017-09-26 21:58:29 +02:00
|
|
|
"mini_parser.py",
|
|
|
|
"policy.py",
|
2018-02-08 18:54:59 +01:00
|
|
|
"treble_sepolicy_tests.py",
|
2017-09-26 21:58:29 +02:00
|
|
|
],
|
|
|
|
required: ["libsepolwrap"],
|
|
|
|
defaults: ["py2_only"],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "sepolicy_tests",
|
|
|
|
srcs: [
|
2019-04-11 01:53:17 +02:00
|
|
|
"fc_sort.py",
|
2017-09-26 21:58:29 +02:00
|
|
|
"policy.py",
|
2018-02-08 18:54:59 +01:00
|
|
|
"sepolicy_tests.py",
|
2017-09-26 21:58:29 +02:00
|
|
|
],
|
|
|
|
required: ["libsepolwrap"],
|
|
|
|
defaults: ["py2_only"],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "searchpolicy",
|
|
|
|
srcs: [
|
2019-04-11 01:53:17 +02:00
|
|
|
"fc_sort.py",
|
2017-09-23 23:42:50 +02:00
|
|
|
"policy.py",
|
2018-04-24 20:03:22 +02:00
|
|
|
"searchpolicy.py",
|
2017-09-23 23:42:50 +02:00
|
|
|
],
|
|
|
|
required: ["libsepolwrap"],
|
|
|
|
defaults: ["py2_only"],
|
2017-06-01 00:36:07 +02:00
|
|
|
}
|
2018-09-30 02:47:10 +02:00
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "combine_maps",
|
|
|
|
srcs: [
|
|
|
|
"combine_maps.py",
|
|
|
|
"mini_parser.py",
|
|
|
|
],
|
2018-10-04 19:22:46 +02:00
|
|
|
defaults: ["py2_only"],
|
2018-09-30 02:47:10 +02:00
|
|
|
}
|
2019-04-11 01:53:17 +02:00
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "fc_sort",
|
|
|
|
srcs: [
|
|
|
|
"fc_sort.py",
|
|
|
|
],
|
|
|
|
defaults: ["py2_only"],
|
|
|
|
}
|