aboutsummaryrefslogtreecommitdiffstats
path: root/include/cutils
diff options
context:
space:
mode:
authorAshish Sharma <ashishsharma@google.com>2011-08-03 00:31:19 -0700
committerAshish Sharma <ashishsharma@google.com>2011-08-07 23:22:59 -0700
commit9b5c774369fcbd4460751f9b01e692d688c386ba (patch)
tree67594e7efa0c7936818f8d63cfa78f023ccaaef8 /include/cutils
parent655835be2a0e6d656040f4dd8f7e3e1035734ef7 (diff)
downloadsystem_core-9b5c774369fcbd4460751f9b01e692d688c386ba.tar.gz
system_core-9b5c774369fcbd4460751f9b01e692d688c386ba.tar.bz2
system_core-9b5c774369fcbd4460751f9b01e692d688c386ba.zip
libcutils: qtaguid: support socket untagging, return errors.
- Enable and rename qtaguid_tagSocket() - Add qtaguid_untagSocket() - Return kernel errors to caller Change-Id: I8e33c8832b7f6b24ed9081f36ce1ea9ae6b099c0 Signed-off-by: Ashish Sharma <ashishsharma@google.com>
Diffstat (limited to 'include/cutils')
-rw-r--r--include/cutils/qtaguid.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/cutils/qtaguid.h b/include/cutils/qtaguid.h
index 8aa34ea3..e6d61e63 100644
--- a/include/cutils/qtaguid.h
+++ b/include/cutils/qtaguid.h
@@ -28,7 +28,12 @@ extern "C" {
/*
* Set tags (and owning UIDs) for network sockets.
*/
-extern int set_qtaguid(int sockfd, int tag, uid_t uid);
+extern int qtaguid_tagSocket(int sockfd, int tag, uid_t uid);
+
+/*
+ * Untag a network socket before closing.
+*/
+extern int qtaguid_untagSocket(int sockfd);
#ifdef __cplusplus
}