Re: [PATCH v3 05/11] syslog_ns: make permisiion check per user namespace

2013-08-07 Thread Ben Hutchings
On Wed, 2013-08-07 at 15:37 +0800, Rui Xiang wrote: > Use ns_capable to check capability in user ns, > instead of capable function. The user ns is the > owner of current syslog ns. > > Signed-off-by: Rui Xiang > --- > kernel/printk.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >

[PATCH v3 05/11] syslog_ns: make permisiion check per user namespace

2013-08-07 Thread Rui Xiang
Use ns_capable to check capability in user ns, instead of capable function. The user ns is the owner of current syslog ns. Signed-off-by: Rui Xiang --- kernel/printk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/printk.c b/kernel/printk.c index

[PATCH v3 05/11] syslog_ns: make permisiion check per user namespace

2013-08-07 Thread Rui Xiang
Use ns_capable to check capability in user ns, instead of capable function. The user ns is the owner of current syslog ns. Signed-off-by: Rui Xiang rui.xi...@huawei.com --- kernel/printk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/printk.c b/kernel/printk.c

Re: [PATCH v3 05/11] syslog_ns: make permisiion check per user namespace

2013-08-07 Thread Ben Hutchings
On Wed, 2013-08-07 at 15:37 +0800, Rui Xiang wrote: Use ns_capable to check capability in user ns, instead of capable function. The user ns is the owner of current syslog ns. Signed-off-by: Rui Xiang rui.xi...@huawei.com --- kernel/printk.c | 4 ++-- 1 file changed, 2 insertions(+), 2