diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-06-28 11:39:59 -0400 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-06-28 11:39:59 -0400 |
commit | 550a972e838df8e2b92b051b0cfc1171b3936466 (patch) | |
tree | 7092d18b9796bac068ddb4e23b431ccac8a2849e /fs/proc/base.c | |
parent | 0b8d05359af8d542a4893118441769ca5807a26e (diff) | |
parent | 33445c07cd45541410fb4cabd08b10827764c07f (diff) |
Merge tag 'v4.14.51' into v4.14-rt
This is the 4.14.51 stable release
Conflicts:
include/linux/sched.h
kernel/stop_machine.c
Diffstat (limited to 'fs/proc/base.c')
-rw-r--r-- | fs/proc/base.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index ce4a210d45a6..f5dcd63f37aa 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -1694,6 +1694,12 @@ void task_dump_owner(struct task_struct *task, mode_t mode, kuid_t uid; kgid_t gid; + if (unlikely(task->flags & PF_KTHREAD)) { + *ruid = GLOBAL_ROOT_UID; + *rgid = GLOBAL_ROOT_GID; + return; + } + /* Default to the tasks effective ownership */ rcu_read_lock(); cred = __task_cred(task); |