Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e90f6e22 authored by Mohamad Ayyash's avatar Mohamad Ayyash Committed by Gerrit - the friendly Code Review server
Browse files

Don't show empty tag stats for unprivileged uids



BUG: 27577101
BUG: 27532522
Signed-off-by: default avatarMohamad Ayyash <mkayyash@google.com>
Git-repo: https://android.googlesource.com/kernel/common.git


Git-commit: d85e322ff3bc8d7aa872ad12df6427dd236e540a
Signed-off-by: default avatarRavi Kumar Siddojigari <rsiddoji@codeaurora.org>
Change-Id: Ia706e7184ab31c5e4e3bb2668a1ab7660ca3c6ce
parent 0cf3124f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2537,8 +2537,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(
						make_kuid(&init_user_ns,stat_uid))) {
	if (!can_read_other_uid_stats(make_kuid(&init_user_ns,stat_uid))) {
		CT_DEBUG("qtaguid: stats line: "
			 "%s 0x%llx %u: insufficient priv "
			 "from pid=%u tgid=%u uid=%u stats.gid=%u\n",