blob: 339bb45865fba1679e0d9682390c49ca5163c37f [file] [log] [blame]
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
syntax = "proto2";
option optimize_for = LITE_RUNTIME;
// The source of the data that triggered the DLP restriction.
message DlpPolicyEventSource {
optional string url = 1;
}
// In case of a DLP event with transferring the data - where it was going to be
// transferred to.
message DlpPolicyEventDestination {
enum Component {
UNDEFINED_COMPONENT = 0;
ARC = 1;
CROSTINI = 2;
PLUGIN_VM = 3;
}
// Either |url| or |component| should be set.
optional string url = 1;
optional Component component = 2;
}
message DlpPolicyEvent {
// The restriction that was triggered.
enum Restriction {
UNDEFINED_RESTRICTION = 0;
CLIPBOARD = 1;
SCREENSHOT = 2;
SCREENCAST = 3;
PRINTING = 4;
EPRIVACY = 5;
}
// The mode of the applied restriction.
enum Mode {
UNDEFINED_MODE = 0;
BLOCK = 1;
REPORT = 2;
}
optional DlpPolicyEventSource source = 1;
optional DlpPolicyEventDestination destination = 2;
optional Restriction restriction = 3;
optional Mode mode = 4;
// Whether the restriction was enforced or not. Valuable for WARN.
optional bool restriction_enforced = 5;
optional int64 timestamp_micro = 6;
}