Re: [PATCH V2] audit: add tty field to LOGIN event

2016-04-20 Thread Paul Moore
On Wed, Apr 20, 2016 at 7:31 PM, Richard Guy Briggs wrote: > diff --git a/include/linux/audit.h b/include/linux/audit.h > index b40ed5d..b00beef 100644 > --- a/include/linux/audit.h > +++ b/include/linux/audit.h > @@ -26,6 +26,7 @@ > #include > #include > #include >

Re: [PATCH V2] audit: add tty field to LOGIN event

2016-04-20 Thread Paul Moore
On Wed, Apr 20, 2016 at 7:31 PM, Richard Guy Briggs wrote: > diff --git a/include/linux/audit.h b/include/linux/audit.h > index b40ed5d..b00beef 100644 > --- a/include/linux/audit.h > +++ b/include/linux/audit.h > @@ -26,6 +26,7 @@ > #include > #include > #include > +#include > > #define

[PATCH V2] audit: add tty field to LOGIN event

2016-04-20 Thread Richard Guy Briggs
The tty field was missing from AUDIT_LOGIN events. Refactor code to create a new function audit_get_tty(), using it to replace the call in audit_log_task_info() and to add it to audit_log_set_loginuid(). Lock and bump the kref to protect it. Signed-off-by: Richard Guy Briggs

[PATCH V2] audit: add tty field to LOGIN event

2016-04-20 Thread Richard Guy Briggs
The tty field was missing from AUDIT_LOGIN events. Refactor code to create a new function audit_get_tty(), using it to replace the call in audit_log_task_info() and to add it to audit_log_set_loginuid(). Lock and bump the kref to protect it. Signed-off-by: Richard Guy Briggs --- V2: Use kref