From 8626cce5f381899f47e3a82e2ef4c98f183391b0 Mon Sep 17 00:00:00 2001 From: Ashish Sharma Date: Thu, 7 Jul 2011 18:16:01 -0700 Subject: Add communication support for xt_qtaguid(network traffic accounting) kernel module. Change-Id: Ie0fb5b593987c53ee6f906fe6e0caab5a581d5a1 --- include/cutils/qtaguid.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 include/cutils/qtaguid.h (limited to 'include') diff --git a/include/cutils/qtaguid.h b/include/cutils/qtaguid.h new file mode 100644 index 000000000..dd2db5224 --- /dev/null +++ b/include/cutils/qtaguid.h @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2011 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. + */ + +#ifndef __CUTILS_QTAGUID_H +#define __CUTILS_QTAGUID_H + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Set tags (and owning UIDs) for network sockets. +*/ +extern int set_qtaguid(int sockfd, int tag, uid_t uid); + +#ifdef __cplusplus +} +#endif + +#endif /* __CUTILS_QTAG_UID_H */ -- cgit v1.2.3