[Devel] [PATCH RH7] ubc: proc show stats in ve user ns

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Tue Oct 20 03:49:04 PDT 2015


https://jira.sw.ru/browse/PSBM-40433
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
 kernel/bc/proc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/bc/proc.c b/kernel/bc/proc.c
index 21672d9..9e9fde4 100644
--- a/kernel/bc/proc.c
+++ b/kernel/bc/proc.c
@@ -267,7 +267,7 @@ static struct seq_operations ub_seq_ops = {
 
 static int ub_open(struct inode *inode, struct file *filp)
 {
-	if (!(capable(CAP_DAC_OVERRIDE) && capable(CAP_DAC_READ_SEARCH)))
+	if (!(ve_capable(CAP_DAC_OVERRIDE) && ve_capable(CAP_DAC_READ_SEARCH)))
 		return -EACCES;
 
 	return seq_open(filp, &ub_seq_ops);
-- 
1.9.3




More information about the Devel mailing list