login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
December
»
17
Re: [RFC 4/5] user namespaces: allow killing tasks in your own or child userns
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Serge E. Hallyn
Subject:
Re: [RFC 4/5] user namespaces: allow killing tasks in your own or child userns
Date: Friday, December 17, 2010 - 1:09 pm
Quoting Eric W. Biederman (
ebiederm@xmission.com
):
quoted text
> > --- a/kernel/signal.c > > +++ b/kernel/signal.c > > @@ -659,11 +686,7 @@ static int check_kill_permission(int sig, struct siginfo *info, > > cred = current_cred(); > > tcred = __task_cred(t); > Nit pick you don't need to compute cred and tcred here now.
Just to make sure I understand right: you mean wait until after the same_thread_group() check to save calculation in that case, right?
quoted text
> > if (!same_thread_group(current, t) && > > - (cred->euid ^ tcred->suid) && > > - (cred->euid ^ tcred->uid) && > > - (cred->uid ^ tcred->suid) && > > - (cred->uid ^ tcred->uid) && > > - !capable(CAP_KILL)) { > > + !kill_ok_by_cred(t)) { > > switch (sig) { > > case SIGCONT: > > sid = task_session(t);
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC 0/5] user namespaces: start clamping down
, Serge E. Hallyn
, (Fri Dec 17, 8:22 am)
[RFC 1/5] user namespaces: Add a user_namespace as creator ...
, Serge E. Hallyn
, (Fri Dec 17, 8:24 am)
[RFC 2/5] user namespaces: make capabilities relative to t ...
, Serge E. Hallyn
, (Fri Dec 17, 8:25 am)
[RFC 3/5] user namespaces: allow sethostname in a container
, Serge E. Hallyn
, (Fri Dec 17, 8:26 am)
[RFC 4/5] user namespaces: allow killing tasks in your own ...
, Serge E. Hallyn
, (Fri Dec 17, 8:26 am)
[RFC 5/5] user namespaces: Allow ptrace from non-init user ...
, Serge E. Hallyn
, (Fri Dec 17, 8:27 am)
Re: [RFC 1/5] user namespaces: Add a user_namespace as cre ...
, Alexey Dobriyan
, (Fri Dec 17, 8:56 am)
Re: [RFC 1/5] user namespaces: Add a user_namespace as cre ...
, Alexey Dobriyan
, (Fri Dec 17, 9:00 am)
Re: [RFC 1/5] user namespaces: Add a user_namespace as cre ...
, Serge Hallyn
, (Fri Dec 17, 9:12 am)
Re: [RFC 1/5] user namespaces: Add a user_namespace as cre ...
, Serge Hallyn
, (Fri Dec 17, 9:17 am)
Re: [RFC 1/5] user namespaces: Add a user_namespace as cre ...
, Greg KH
, (Fri Dec 17, 10:31 am)
Re: [RFC 1/5] user namespaces: Add a user_namespace as cre ...
, Eric W. Biederman
, (Fri Dec 17, 12:26 pm)
Re: [RFC 4/5] user namespaces: allow killing tasks in your ...
, Eric W. Biederman
, (Fri Dec 17, 12:31 pm)
Re: [RFC 5/5] user namespaces: Allow ptrace from non-init ...
, Eric W. Biederman
, (Fri Dec 17, 12:45 pm)
Re: [RFC 1/5] user namespaces: Add a user_namespace as cre ...
, Serge Hallyn
, (Fri Dec 17, 12:46 pm)
Re: [RFC 1/5] user namespaces: Add a user_namespace as cre ...
, Greg KH
, (Fri Dec 17, 12:57 pm)
Re: [RFC 1/5] user namespaces: Add a user_namespace as cre ...
, Greg KH
, (Fri Dec 17, 12:58 pm)
Re: [RFC 5/5] user namespaces: Allow ptrace from non-init ...
, Serge Hallyn
, (Fri Dec 17, 1:04 pm)
Re: [RFC 4/5] user namespaces: allow killing tasks in your ...
, Serge E. Hallyn
, (Fri Dec 17, 1:09 pm)
Re: [RFC 4/5] user namespaces: allow killing tasks in your ...
, Eric W. Biederman
, (Fri Dec 17, 1:17 pm)
Re: [RFC 4/5] user namespaces: allow killing tasks in your ...
, Serge E. Hallyn
, (Fri Dec 17, 1:22 pm)
Re: [RFC 1/5] user namespaces: Add a user_namespace as cre ...
, Eric W. Biederman
, (Fri Dec 17, 1:40 pm)
Re: [RFC 1/5] user namespaces: Add a user_namespace as cre ...
, Greg KH
, (Fri Dec 17, 4:15 pm)
Re: [RFC 1/5] user namespaces: Add a user_namespace as cre ...
, Eric W. Biederman
, (Fri Dec 17, 11:32 pm)
Re: [RFC 1/5] user namespaces: Add a user_namespace as cre ...
, Greg KH
, (Sat Dec 18, 10:56 am)
Re: [RFC 4/5] user namespaces: allow killing tasks in your ...
, Serge E. Hallyn
, (Fri Dec 31, 9:45 pm)
Re: [RFC 5/5] user namespaces: Allow ptrace from non-init ...
, Serge E. Hallyn
, (Fri Dec 31, 9:47 pm)
Re: [RFC 4/5] user namespaces: allow killing tasks in your ...
, Eric W. Biederman
, (Sat Jan 1, 4:10 pm)
Re: [RFC 4/5] user namespaces: allow killing tasks in your ...
, Serge E. Hallyn
, (Sun Jan 2, 7:39 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
Vivek Goyal
[PATCH] x86_64: Display more intutive error message if kernel is not 2MB aligned
Andi Kleen
[PATCH] [0/35] Some x86 2.6.22 candidate patches for review
Andrew Morton
Re: [PATCH] lazy freeing of memory through MADV_FREE 2/2
Peter Zijlstra
Re: [RFC PATCH 1/2] Marker probes in futex.c
git
:
Felipe Contreras
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Johannes Schindelin
[PATCH] fetch: refuse to fetch into the current branch in a non-bare repository
Johannes Schindelin
Re: [PATCH] Fix install-doc-quick target
Peter Oberndorfer
Subject: [PATCH] fix stg edit command
Nicolas Pitre
Re: About git and the use of SHA-1
linux-netdev
:
Ursula Braun
[patch 2/8] [PATCH] af_iucv: sync sk shutdown flag if iucv path is quiesced
David Dillow
Re: [PATCH 2.6.30-rc4] r8169: avoid losing MSI interrupts
Andi Kleen
Re: RFC: Nagle latency tuning
Paul E. McKenney
Re: [PATCH 1/3] rcu: Introduce hlist_nulls variant of hlist
Russell King
Re: [BUG] New Kernel Bugs
git-commits-head
:
Linux Kernel Mailing List
sh: Fix compile error by operands(mov.l) in sh3/entry.S
Linux Kernel Mailing List
New device ID for sc92031 [1088:2031]
Linux Kernel Mailing List
e1000e: Expose MDI-X status via ethtool change
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
drivers/acpi: use kasprintf
openbsd-misc
:
Andres Salazar
About priorities in /etc/resolv.conf
Rob Shepherd
x86 hardware for router system
Henning Brauer
Re: Sun Blade 1000?
Mitja Muženič
Re: isakmpd -- NCP IPsec client: peer proposed invalid phase 2 IDs
Damien Miller
Re: Patching a SSH 'Weakness'
Colocation donated by:
Syndicate