Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09497284 authored by Serge E. Hallyn's avatar Serge E. Hallyn Committed by Linus Torvalds
Browse files

file capabilities: simplify signal check



Simplify the uid equivalence check in cap_task_kill().  Anyone can kill a
process owned by the same uid.

Without this patch wireshark is reported to fail.

Signed-off-by: default avatarSerge E. Hallyn <serue@us.ibm.com>
Signed-off-by: default avatarAndrew G. Morgan <morgan@kernel.org>
Cc: <stable@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e5df70ab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -552,7 +552,7 @@ int cap_task_kill(struct task_struct *p, struct siginfo *info,
	 * allowed.
	 * We must preserve legacy signal behavior in this case.
	 */
	if (p->euid == 0 && p->uid == current->uid)
	if (p->uid == current->uid)
		return 0;

	/* sigcont is permitted within same session */