lockdown: Print current->comm in restriction messages
authorDavid Howells <dhowells@redhat.com>
Wed, 28 Feb 2018 14:43:03 +0000 (14:43 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 21 Aug 2019 12:48:11 +0000 (13:48 +0100)
commit5f8698463ea92d3568dc0c2d9f0e92f1992f1d4b
tree6fc0bdd89042586d10eabcb3ae513b89805c8b50
parent9d8d4293c4c9ee8407eb09364de445ccbbc25892
lockdown: Print current->comm in restriction messages

Print the content of current->comm in messages generated by lockdown to
indicate a restriction that was hit.  This makes it a bit easier to find
out what caused the message.

The message now patterned something like:

Lockdown: <comm>: <what> is restricted; see man kernel_lockdown.7

Signed-off-by: David Howells <dhowells@redhat.com>
Gbp-Pq: Topic features/all/lockdown
Gbp-Pq: Name 0030-lockdown-Print-current-comm-in-restriction-messages.patch
security/lock_down.c