Re: [PATCH v3 2/2] proc: ensure security hook is called after exec

2021-01-04 Thread Stephen Brennan
Stephen Smalley writes: > On Fri, Dec 18, 2020 at 7:06 PM Stephen Brennan > wrote: >> >> Smack needs its security_task_to_inode() hook to be called when a task >> execs a new executable. Store the self_exec_id of the task and call the >> hook via pid_update_inode() whenever the exec_id changes.

Re: [PATCH v3 2/2] proc: ensure security hook is called after exec

2021-01-04 Thread Stephen Smalley
On Mon, Jan 4, 2021 at 9:16 AM Stephen Smalley wrote: > > On Fri, Dec 18, 2020 at 7:06 PM Stephen Brennan > wrote: > > > > Smack needs its security_task_to_inode() hook to be called when a task > > execs a new executable. Store the self_exec_id of the task and call the > > hook via

Re: [PATCH v3 2/2] proc: ensure security hook is called after exec

2021-01-04 Thread Stephen Smalley
On Fri, Dec 18, 2020 at 7:06 PM Stephen Brennan wrote: > > Smack needs its security_task_to_inode() hook to be called when a task > execs a new executable. Store the self_exec_id of the task and call the > hook via pid_update_inode() whenever the exec_id changes. > > Signed-off-by: Stephen

[PATCH v3 2/2] proc: ensure security hook is called after exec

2020-12-18 Thread Stephen Brennan
Smack needs its security_task_to_inode() hook to be called when a task execs a new executable. Store the self_exec_id of the task and call the hook via pid_update_inode() whenever the exec_id changes. Signed-off-by: Stephen Brennan --- As discussed on the v2 of the patch, this should allow