[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHC9VhSCTaJatWGNKr9rnbk6J+Y7OU0aaHnVOCVJ3LT+y5qcvQ@mail.gmail.com>
Date: Thu, 28 Apr 2016 16:07:36 -0400
From: Paul Moore <paul@...l-moore.com>
To: Richard Guy Briggs <rgb@...hat.com>,
Peter Hurley <peter@...leysoftware.com>
Cc: linux-audit@...hat.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH V4] audit: add tty field to LOGIN event
On Wed, Apr 27, 2016 at 9:31 PM, Richard Guy Briggs <rgb@...hat.com> wrote:
> On 16/04/22, Peter Hurley wrote:
>> 2. The existing usage is always tsk==current
>
> My understanding is that when it is called via:
>
> copy_process()
> audit_free()
> __audit_free()
> audit_log_exit()
> audit_log_task_info()
>
> then tsk != current. This appears to be the only case which appears to
> force lugging around tsk. This is noted in that commit referenced
> above.
In the case where copy_process() ends up calling __audit_free(), the
call to audit_log_exit() is conditional on the audit context
in_syscall field being true and unless I missed something, the copied
process' audit context should not have in_syscall set to true.
--
paul moore
www.paul-moore.com
Powered by blists - more mailing lists