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

Commit 1299ca69 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Don't show empty tag stats for unprivileged uids"

parents 711cc862 e90f6e22
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",