diff options
author | Robert Sesek <rsesek@google.com> | 2016-12-15 18:43:00 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-12-15 18:43:00 +0000 |
commit | f5b9c09bed20e620c75e146fafba3c29ae9d3dbe (patch) | |
tree | c14f5d7598fbb69b14824288a2febc851f30f9f2 | |
parent | 5c0fa34c7fb0aa3fb10b0fb256ec3f2b52b2283c (diff) | |
parent | faaa6a70350c8db03c77129e627713bca6d2583c (diff) | |
download | seccomp-tests-f5b9c09bed20e620c75e146fafba3c29ae9d3dbe.tar.gz |
Create Android.mk file and a wrapper header for use by CTS. am: 659656f2fd
am: faaa6a7035
Change-Id: Ibc4476126f47e7c4a936128e7d10d4a2730959e8
-rw-r--r-- | Android.mk | 32 | ||||
-rw-r--r-- | seccomp_bpf_tests.h | 28 |
2 files changed, 60 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..a7402d7 --- /dev/null +++ b/Android.mk @@ -0,0 +1,32 @@ +# Copyright (C) 2016 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. + +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_MODULE := external_seccomp_tests + +LOCAL_MODULE_TAGS := optional + +LOCAL_SRC_FILES := linux/seccomp_bpf.c + +# TODO(rsesek): Remove after syncing in upstream.. +LOCAL_CFLAGS := -D__ARCH_WANT_SYSCALL_DEPRECATED + +LOCAL_SHARED_LIBRARIES := liblog + +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) + +include $(BUILD_STATIC_LIBRARY) diff --git a/seccomp_bpf_tests.h b/seccomp_bpf_tests.h new file mode 100644 index 0000000..a46be51 --- /dev/null +++ b/seccomp_bpf_tests.h @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2016 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. + */ + + +/** + * This header provides access to the Seccomp-BPF kernel test suite, + * for use by CTS. + */ + +#include "linux/test_harness.h" + +// Forward declare from seccomp_bpf_tests.c. +extern "C" { +struct __test_metadata* get_seccomp_test_list(); +} |