proc: smaps: Allow smaps access for CAP_SYS_RESOURCE

Signed-off-by: San Mehat <san@google.com>
diff --git a/kernel/fork.c b/kernel/fork.c
index 9b7d746..a8c0fe3 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -735,7 +735,8 @@
 
 	mm = get_task_mm(task);
 	if (mm && mm != current->mm &&
-			!ptrace_may_access(task, mode)) {
+			!ptrace_may_access(task, mode) &&
+			!capable(CAP_SYS_RESOURCE)) {
 		mmput(mm);
 		mm = ERR_PTR(-EACCES);
 	}