summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorchunx <chunx@nvidia.com>2013-07-05 11:42:05 +0800
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:40:37 -0700
commitdb969bbf31dbb79c0f06497f083b4bad16ad88c7 (patch)
tree79b3f7b9091cbb454e70b1b0e28585175daa904c /include/net
parentd8461f401990820027131da3ec597361d8906cb8 (diff)
net: show cmdline in /proc/net/{tcp udp tcp6 udp6}
Get process's cmdline from a sock's corresponding inode pointer, so that cmdline can't be used by Android active-standby app to find the corresponding package name. Bug 1185001 Change-Id: Idc8651e4bb85b8a152dfade9689a719f7d72687d Signed-off-by: Chun Xu <chunx@nvidia.com> Reviewed-on: http://git-master/r/253458 (cherry picked from commit 5dcfe4f561bd8d1767e0938dfd7565b2b7718478) Reviewed-on: http://git-master/r/260013 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/sock.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index 66772cf8c3c5..0a98c459f2ba 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -36,6 +36,8 @@
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
+ *
+ * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved.
*/
#ifndef _SOCK_H
#define _SOCK_H
@@ -1580,6 +1582,8 @@ extern int compat_sock_common_setsockopt(struct socket *sock, int level,
extern void sk_common_release(struct sock *sk);
+extern char *sk_get_waiting_task_cmdline(struct sock *sk, char *cmdline);
+
/*
* Default socket callbacks and setup code
*/