projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fs: symlink write_begin allocation context fix
[cascardo/linux.git]
/
include
/
net
/
scm.h
diff --git
a/include/net/scm.h
b/include/net/scm.h
index
33e9986
..
f45bb6e
100644
(file)
--- a/
include/net/scm.h
+++ b/
include/net/scm.h
@@
-55,8
+55,8
@@
static __inline__ int scm_send(struct socket *sock, struct msghdr *msg,
struct scm_cookie *scm)
{
struct task_struct *p = current;
- scm->creds.uid =
p->uid
;
- scm->creds.gid =
p->gid
;
+ scm->creds.uid =
current_uid()
;
+ scm->creds.gid =
current_gid()
;
scm->creds.pid = task_tgid_vnr(p);
scm->fp = NULL;
scm->seq = 0;