3a3756feee
Bug: 77965486
Test: run cts -m CtsSecurityHostTestCases -t
android.cts.security.FileSystemPermissionTest#testDevHwRandomPermissions
Change-Id: Ib5965649e9b2b4bb0259383374dfac76cc0a8bd5
(cherry picked from commit cc541a80c3
)
65 lines
1.3 KiB
Text
65 lines
1.3 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",
|
|
],
|
|
stl: "libc++_static",
|
|
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: [
|
|
"FcSort.py",
|
|
"mini_parser.py",
|
|
"policy.py",
|
|
"treble_sepolicy_tests.py",
|
|
],
|
|
required: ["libsepolwrap"],
|
|
defaults: ["py2_only"],
|
|
}
|
|
|
|
python_binary_host {
|
|
name: "sepolicy_tests",
|
|
srcs: [
|
|
"FcSort.py",
|
|
"policy.py",
|
|
"sepolicy_tests.py",
|
|
],
|
|
required: ["libsepolwrap"],
|
|
defaults: ["py2_only"],
|
|
}
|
|
|
|
python_binary_host {
|
|
name: "searchpolicy",
|
|
srcs: [
|
|
"FcSort.py",
|
|
"policy.py",
|
|
"searchpolicy.py",
|
|
],
|
|
required: ["libsepolwrap"],
|
|
defaults: ["py2_only"],
|
|
}
|