aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/sock.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-06-16 19:18:25 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-16 19:18:25 -0400
commit3924773a5a82622167524bdd48799dc0452c57f8 (patch)
tree1eba1c451e150fe15a288670a8689d7bec3f87ac /net/core/sock.c
parent6616f7888c6088324727363276f6de05a1dca6fc (diff)
net: Export cred_to_ucred to modules.
AF_UNIX references this, and can be built as a module, so... Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/sock.c')
-rw-r--r--net/core/sock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index 0229d5566a46..fef2434b7c8c 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -762,6 +762,7 @@ void cred_to_ucred(struct pid *pid, const struct cred *cred,
762 ucred->gid = user_ns_map_gid(current_ns, cred, cred->egid); 762 ucred->gid = user_ns_map_gid(current_ns, cred, cred->egid);
763 } 763 }
764} 764}
765EXPORT_SYMBOL_GPL(cred_to_ucred);
765 766
766int sock_getsockopt(struct socket *sock, int level, int optname, 767int sock_getsockopt(struct socket *sock, int level, int optname,
767 char __user *optval, int __user *optlen) 768 char __user *optval, int __user *optlen)