summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2017-10-02 12:20:29 -0500
committerMark Salyzyn2017-10-02 12:38:35 -0500
commitb825faeed78dec677223b8969626b6563ee7aaca (patch)
tree01ed5da4c00645822e9759e9faa042cd6bc341a6 /logd/tests
parent8b7feee38fe31eb40a50c55144a850cbc37e4089 (diff)
downloadplatform-system-core-b825faeed78dec677223b8969626b6563ee7aaca.tar.gz
platform-system-core-b825faeed78dec677223b8969626b6563ee7aaca.tar.xz
platform-system-core-b825faeed78dec677223b8969626b6563ee7aaca.zip
CtsLogdTestCases#sepolicy_rate_limiter failure
Cts tests can run in appdomain, which have access to /data/backup/ which leads to zero injection of sepolicy signal to check the logd and kernel rate limiter. Switch to /data/drm/ as a better choice to inject a sepolicy denial either due to dac_override or dac_read_search because owned by the drm uid and gid, or due to create sepolicy denial to u:object_r:drm_data_file:s0 to all but select services. Test: gTest Bug: 65843095 Change-Id: I2d72b1407a930c270636a206066d2d15fdec2f77
Diffstat (limited to 'logd/tests')
-rw-r--r--logd/tests/logd_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/logd/tests/logd_test.cpp b/logd/tests/logd_test.cpp
index 8ee5ea10d..9e1541b8a 100644
--- a/logd/tests/logd_test.cpp
+++ b/logd/tests/logd_test.cpp
@@ -1099,7 +1099,7 @@ static pid_t sepolicy_rate(unsigned rate, unsigned num) {
1099 // and dac_read_search on every try to get past the message 1099 // and dac_read_search on every try to get past the message
1100 // de-duper. We will also rotate the file name in the directory 1100 // de-duper. We will also rotate the file name in the directory
1101 // as another measure. 1101 // as another measure.
1102 static const char file[] = "/data/backup/cannot_access_directory_%u"; 1102 static const char file[] = "/data/drm/cannot_access_directory_%u";
1103 static const unsigned avc_requests_per_access = 2; 1103 static const unsigned avc_requests_per_access = 2;
1104 1104
1105 rate /= avc_requests_per_access; 1105 rate /= avc_requests_per_access;