Commit:     094972840f2e7c1c6fc9e1a97d817cc17085378e
Parent:     e5df70ab194543522397fa3da8c8f80564a0f7d3
Author:     Serge E. Hallyn <[EMAIL PROTECTED]>
AuthorDate: Sat Feb 23 15:23:33 2008 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Sat Feb 23 17:12:13 2008 -0800

    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: Serge E. Hallyn <[EMAIL PROTECTED]>
    Signed-off-by: Andrew G. Morgan <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 security/commoncap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/security/commoncap.c b/security/commoncap.c
index 5aba826..bb0c095 100644
--- a/security/commoncap.c
+++ b/security/commoncap.c
@@ -552,7 +552,7 @@ int cap_task_kill(struct task_struct *p, struct siginfo 
         * 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 */
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to