Re: [RFC PATCH 3/6] security/fbfam: Use the api to manage statistics

From
Jann Horn <jannh@google.com>
Date
2020-09-10 20:29:04
Also in
linux-doc, linux-fsdevel, lkml
Reply to
Kees Cook, 2020-09-10
On Thu, Sep 10, 2020 at 10:21 PM Kees Cook [off-list ref] wrote:
Use the previous defined api to manage statistics calling it accordingly
when a task forks, calls execve or exits.
You defined functions that return error codes in the previous patch,
but here you ignore the return values. That's a bad idea.

You should probably check the return value in execve() (and fail the
execution in the case where memory allocation fails), and make it so
that the other functions always succeed.
Thread (47 messages) 47 messages, 7 authors, last reply 2020-10-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help