|
@@ -1693,6 +1693,12 @@ void task_dump_owner(struct task_struct *task, umode_t mode,
|
|
kuid_t uid;
|
|
kuid_t uid;
|
|
kgid_t gid;
|
|
kgid_t gid;
|
|
|
|
|
|
|
|
+ if (unlikely(task->flags & PF_KTHREAD)) {
|
|
|
|
+ *ruid = GLOBAL_ROOT_UID;
|
|
|
|
+ *rgid = GLOBAL_ROOT_GID;
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
/* Default to the tasks effective ownership */
|
|
/* Default to the tasks effective ownership */
|
|
rcu_read_lock();
|
|
rcu_read_lock();
|
|
cred = __task_cred(task);
|
|
cred = __task_cred(task);
|