Skip to content

Commit

Permalink
printk: silence TEE logs from userspace
Browse files Browse the repository at this point in the history
- Spams logs, pushing out useful messages
- Reduces security because it exposes internal information

Signed-off-by: kdrag0n <[email protected]>
  • Loading branch information
kdrag0n authored and chematelegram committed Dec 17, 2022
1 parent 23012aa commit a6192c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/printk/printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,8 @@ static ssize_t devkmsg_write(struct kiocb *iocb, struct iov_iter *from)
}
}

if (strncmp("healthd", line, 7) == 0) {
if (unlikely(strncmp("healthd", line, 7) == 0 || strncmp("Trustonic TEE", line, 13) == 0))
{
return len;
}

Expand Down

0 comments on commit a6192c2

Please sign in to comment.