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:
parent
22d9613376
commit
55d81401df
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue