verify CLAT_MARK matches aidl constant.

Bug: 235778483
Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ife3ad35b2e5451727a3795a0e78dd820293c0eae
This commit is contained in:
Maciej Żenczykowski
2022-06-15 02:02:21 -07:00
parent 7f0bdd3bfe
commit ce9108f01a
3 changed files with 37 additions and 6 deletions

View File

@@ -17,9 +17,12 @@
#pragma once
// TODO: deduplicate with the constants in NetdConstants.h.
#include <aidl/android/net/INetd.h>
#include "clat_mark.h"
using aidl::android::net::INetd;
static_assert(INetd::CLAT_MARK == CLAT_MARK, "must be 0xDEADC1A7");
enum FirewallRule { ALLOW = INetd::FIREWALL_RULE_ALLOW, DENY = INetd::FIREWALL_RULE_DENY };
// ALLOWLIST means the firewall denies all by default, uids must be explicitly ALLOWed