diff options
author | Anton Arapov <anton@redhat.com> | 2012-09-12 09:18:33 +0200 |
---|---|---|
committer | Anton Arapov <anton@redhat.com> | 2012-09-12 09:19:26 +0200 |
commit | 985ef6b2108ed28ffd5f6630e1e0fce2e2a775f2 (patch) | |
tree | eb9091ebd60e14eea65a9e6b5140f98d88e8a590 /include/net/scm.h | |
parent | 1d44b6f3fcf6058fb7c960b7558766967e8028f7 (diff) | |
download | kernel-uprobes-985ef6b2108ed28ffd5f6630e1e0fce2e2a775f2.tar.gz kernel-uprobes-985ef6b2108ed28ffd5f6630e1e0fce2e2a775f2.tar.xz kernel-uprobes-985ef6b2108ed28ffd5f6630e1e0fce2e2a775f2.zip |
fedora kernel: 021ce7bee3cfdcbf16da1256b2c9f40f7e9bbd9ev3.5.3-1
Signed-off-by: Anton Arapov <anton@redhat.com>
Diffstat (limited to 'include/net/scm.h')
-rw-r--r-- | include/net/scm.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/net/scm.h b/include/net/scm.h index d456f4c71a3..0c0017ce23b 100644 --- a/include/net/scm.h +++ b/include/net/scm.h @@ -71,9 +71,11 @@ static __inline__ void scm_destroy(struct scm_cookie *scm) } static __inline__ int scm_send(struct socket *sock, struct msghdr *msg, - struct scm_cookie *scm) + struct scm_cookie *scm, bool forcecreds) { memset(scm, 0, sizeof(*scm)); + if (forcecreds) + scm_set_cred(scm, task_tgid(current), current_cred()); unix_get_peersec_dgram(sock, scm); if (msg->msg_controllen <= 0) return 0; |