Commit dcfb2843 authored by Ulrich Drepper's avatar Ulrich Drepper Committed by Stephen Hemminger

[NET]: Check tgid not pid in scm_check_creds().

parent 3109c4eb
......@@ -41,7 +41,7 @@
static __inline__ int scm_check_creds(struct ucred *creds)
{
if ((creds->pid == current->pid || capable(CAP_SYS_ADMIN)) &&
if ((creds->pid == current->tgid || capable(CAP_SYS_ADMIN)) &&
((creds->uid == current->uid || creds->uid == current->euid ||
creds->uid == current->suid) || capable(CAP_SETUID)) &&
((creds->gid == current->gid || creds->gid == current->egid ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment