Merge "Don't show empty tag stats for unprivileged uids"
This commit is contained in:
commit
9b370b3988
1 changed files with 1 additions and 2 deletions
|
@ -2536,8 +2536,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",
|
||||
|
|
Loading…
Add table
Reference in a new issue