summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorYi Jin <jinyithu@google.com>2017-08-18 14:51:20 -0700
committerYi Jin <jinyithu@google.com>2017-08-23 18:13:01 -0700
commit0ed9b68a3fa8f6eab536a93cb18ce75d7d22b757 (patch)
treea5b79eb50d882798e79ff6dd766b1794383c07d4 /libs
parent6e250517d60a9ab79bffbc63c669814ae826d8d9 (diff)
Implement PII stripper in incidentd, part 1
1. automatically parse privacy options and generate lookup table 2. create FdBuffer iterator API in order to remove dependency on Reporter.h Bug: 64687253 Test: Unit test for iterator API, and manually tested lookup table Change-Id: I1ea376a4481fc4afc7bdf447936f767b63690fd3
Diffstat (limited to 'libs')
-rw-r--r--libs/incident/proto/android/privacy.proto7
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/incident/proto/android/privacy.proto b/libs/incident/proto/android/privacy.proto
index ae5af0e4afa7..5fd75d6f2809 100644
--- a/libs/incident/proto/android/privacy.proto
+++ b/libs/incident/proto/android/privacy.proto
@@ -36,7 +36,7 @@ enum Destination {
// off the device with an explicit user action.
DEST_EXPLICIT = 1;
- // Fields or messages annotated with DEST_LOCAL can be sent by
+ // Fields or messages annotated with DEST_AUTOMATIC can be sent by
// automatic means, without per-sending user consent. The user
// still must have previously accepted a consent to share this
// information.
@@ -47,8 +47,11 @@ enum Destination {
message PrivacyFlags {
optional Destination dest = 1 [
- default = DEST_LOCAL
+ default = DEST_EXPLICIT
];
+
+ // regex to filter pii sensitive info from a string field type
+ repeated string patterns = 2;
}
extend google.protobuf.FieldOptions {