Don't show empty tag stats for unprivileged uids

BUG: 27577101
BUG: 27532522

Change-Id: If0c03fa24270cd3683db482a599fc39e9fec1ac9
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
Git-commit: d85e322ff3bc8d7aa872ad12df6427dd236e540a
Git-repo: https://android.googlesource.com/kernel/common
Signed-off-by: Ravi Kumar Siddojigari <rsiddoji@codeaurora.org>
This commit is contained in:
Mohamad Ayyash 2016-05-11 13:18:35 -07:00 committed by Gerrit - the friendly Code Review server
parent 22d9613376
commit 55d81401df
1 changed files with 1 additions and 1 deletions

View File

@ -2526,7 +2526,7 @@ static int pp_stats_line(struct seq_file *m, struct tag_stat *ts_entry,
uid_t stat_uid = get_uid_from_tag(tag);
struct proc_print_info *ppi = m->private;
/* Detailed tags are not available to everybody */
if (get_atag_from_tag(tag) && !can_read_other_uid_stats(stat_uid)) {
if (!can_read_other_uid_stats(stat_uid)) {
CT_DEBUG("qtaguid: stats line: "
"%s 0x%llx %u: insufficient priv "
"from pid=%u tgid=%u uid=%u stats.gid=%u\n",