diff options
author | Gilad Arnold <garnold@google.com> | 2015-08-05 15:26:02 -0700 |
---|---|---|
committer | Gilad Arnold <garnold@google.com> | 2015-08-13 13:13:56 -0700 |
commit | 7db56bd4c91a516637995b9bf75241cb0c323bf9 (patch) | |
tree | d68435428a04e8f433367eef7e0c1e70b1df3048 /iptables_unittest.cc | |
parent | b4f3e0edd0e8c502d137bf7aa3ebfabf0be46183 (diff) | |
download | firewalld-7db56bd4c91a516637995b9bf75241cb0c323bf9.tar.gz |
Build firewalld in Android.
* Drop firewalld/ prefix from #include paths.
* Rename the DBus interface definition to have a .dbus.xml suffix;
needed for it to be picked up by the build infrastructure.
* Add __BRILLO__ preprocessor symbol for conditionally:
1) Removing support for Permission Broker (currently not available and
no concrete porting plan yet).
2) Disable dropping privileges in minijail invocations (yet to be
figured out).
3) Adapting DBus bindings header paths (slightly different).
4) Adapting helper utility paths (iptables, iproute2).
5) Making punching of IPv6 firewall rules optional and autodetected.
* Re-license everything to AOSP and add NOTICE and
MODULE_LICENSE_APACHE2.
* Added Android.mk for building all the targets we need, including
init.firewalld.rc with proper SELinux attributes (when supported).
Bug: 22827985
Change-Id: I05f74f80f95f689b4bbf60a2708e76ef5495b96e
Diffstat (limited to 'iptables_unittest.cc')
-rw-r--r-- | iptables_unittest.cc | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/iptables_unittest.cc b/iptables_unittest.cc index 8c95414..45dfe04 100644 --- a/iptables_unittest.cc +++ b/iptables_unittest.cc @@ -1,12 +1,22 @@ -// Copyright 2014 The Chromium OS Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "firewalld/iptables.h" +// Copyright 2014 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "iptables.h" #include <gtest/gtest.h> -#include "firewalld/mock_iptables.h" +#include "mock_iptables.h" namespace firewalld { |