Re: [RFC][PATCH] exec: Use init rlimits for setuid exec
From: Andy Lutomirski
Date: Thu Jul 06 2017 - 11:29:06 EST
On Thu, Jul 6, 2017 at 5:45 AM, Eric W. Biederman <ebiederm@xxxxxxxxxxxx> wrote:
>
> How this is handled elsewhere in the code is to put the new values in
> bprm. Putting new rlimits in bprm and changing them in flush_old_exec
> or or setup_new_exec seems very sensible. It also allows for them to be
> accessed before de_thread when setting up the new mm and we can still
> fail.
>
Makes sense to me.
--Andy