]> git.hungrycats.org Git - linux/commitdiff
net: Export cred_to_ucred to modules.
authorDavid S. Miller <davem@davemloft.net>
Wed, 16 Jun 2010 23:18:25 +0000 (16:18 -0700)
committerAK <andi@firstfloor.org>
Sun, 6 Feb 2011 19:03:36 +0000 (11:03 -0800)
Upstream commit 3924773a5a82622167524bdd48799dc0452c57f8

AF_UNIX references this, and can be built as a module,
so...

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
net/core/sock.c

index 50197eb9314f65942c9a7200a1e1589c5c3cdb69..e73470056d5ba4c6073a09d99420e13dbb33ada8 100644 (file)
@@ -762,6 +762,7 @@ void cred_to_ucred(struct pid *pid, const struct cred *cred,
                ucred->gid = user_ns_map_gid(current_ns, cred, cred->egid);
        }
 }
+EXPORT_SYMBOL_GPL(cred_to_ucred);
 
 int sock_getsockopt(struct socket *sock, int level, int optname,
                    char __user *optval, int __user *optlen)