printk: silence TEE logs from userspace

- Spams logs, pushing out useful messages
- Reduces security because it exposes internal information

Signed-off-by: kdrag0n <dragon@khronodragon.com>
This commit is contained in:
kdrag0n 2018-10-07 17:16:40 -07:00 committed by prashantpaddune
parent 4c5ccd7047
commit 1fb8aae79b

View File

@ -802,7 +802,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;
}