aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/signal.c')
-rw-r--r--kernel/signal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index 5230ddcb1757..7ed8d5304bec 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -1136,8 +1136,8 @@ kill_proc_info(int sig, struct siginfo *info, pid_t pid)
1136 return error; 1136 return error;
1137} 1137}
1138 1138
1139/* like kill_proc_info(), but doesn't use uid/euid of "current" */ 1139/* like kill_pid_info(), but doesn't use uid/euid of "current" */
1140int kill_proc_info_as_uid(int sig, struct siginfo *info, pid_t pid, 1140int kill_pid_info_as_uid(int sig, struct siginfo *info, struct pid *pid,
1141 uid_t uid, uid_t euid, u32 secid) 1141 uid_t uid, uid_t euid, u32 secid)
1142{ 1142{
1143 int ret = -EINVAL; 1143 int ret = -EINVAL;
@@ -1147,7 +1147,7 @@ int kill_proc_info_as_uid(int sig, struct siginfo *info, pid_t pid,
1147 return ret; 1147 return ret;
1148 1148
1149 read_lock(&tasklist_lock); 1149 read_lock(&tasklist_lock);
1150 p = find_task_by_pid(pid); 1150 p = pid_task(pid, PIDTYPE_PID);
1151 if (!p) { 1151 if (!p) {
1152 ret = -ESRCH; 1152 ret = -ESRCH;
1153 goto out_unlock; 1153 goto out_unlock;
@@ -1171,7 +1171,7 @@ out_unlock:
1171 read_unlock(&tasklist_lock); 1171 read_unlock(&tasklist_lock);
1172 return ret; 1172 return ret;
1173} 1173}
1174EXPORT_SYMBOL_GPL(kill_proc_info_as_uid); 1174EXPORT_SYMBOL_GPL(kill_pid_info_as_uid);
1175 1175
1176/* 1176/*
1177 * kill_something_info() interprets pid in interesting ways just like kill(2). 1177 * kill_something_info() interprets pid in interesting ways just like kill(2).