aboutsummaryrefslogtreecommitdiff
path: root/fs/proc/base.c
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2018-06-28 11:39:59 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2018-06-28 11:39:59 -0400
commit550a972e838df8e2b92b051b0cfc1171b3936466 (patch)
tree7092d18b9796bac068ddb4e23b431ccac8a2849e /fs/proc/base.c
parent0b8d05359af8d542a4893118441769ca5807a26e (diff)
parent33445c07cd45541410fb4cabd08b10827764c07f (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.c6
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);