Re: [PATCH 1/2] kernel: Move prctl and helpers from kernel/sys.c to new kernel/prctl.c

2016-11-08 Thread Cyrill Gorcunov
On Tue, Nov 08, 2016 at 04:18:13PM -0800, Josh Triplett wrote: > This prepares for making prctl optional. > > Signed-off-by: Josh Triplett > + ... > +static int prctl_set_mm_exe_file(struct mm_struct *mm, unsigned int fd) > +{ > + struct fd exe; > + struct file

Re: [PATCH 1/2] kernel: Move prctl and helpers from kernel/sys.c to new kernel/prctl.c

2016-11-08 Thread Cyrill Gorcunov
On Tue, Nov 08, 2016 at 04:18:13PM -0800, Josh Triplett wrote: > This prepares for making prctl optional. > > Signed-off-by: Josh Triplett > + ... > +static int prctl_set_mm_exe_file(struct mm_struct *mm, unsigned int fd) > +{ > + struct fd exe; > + struct file *old_exe, *exe_file; > +

Re: [PATCH 1/2] kernel: Move prctl and helpers from kernel/sys.c to new kernel/prctl.c

2016-11-08 Thread Andy Lutomirski
On Tue, Nov 8, 2016 at 4:18 PM, Josh Triplett wrote: > This prepares for making prctl optional. I like this.

Re: [PATCH 1/2] kernel: Move prctl and helpers from kernel/sys.c to new kernel/prctl.c

2016-11-08 Thread Andy Lutomirski
On Tue, Nov 8, 2016 at 4:18 PM, Josh Triplett wrote: > This prepares for making prctl optional. I like this.

[PATCH 1/2] kernel: Move prctl and helpers from kernel/sys.c to new kernel/prctl.c

2016-11-08 Thread Josh Triplett
This prepares for making prctl optional. Signed-off-by: Josh Triplett --- kernel/Makefile | 2 +- kernel/prctl.c | 684 +- kernel/sys.c| 672 + 3 files changed, 685

[PATCH 1/2] kernel: Move prctl and helpers from kernel/sys.c to new kernel/prctl.c

2016-11-08 Thread Josh Triplett
This prepares for making prctl optional. Signed-off-by: Josh Triplett --- kernel/Makefile | 2 +- kernel/prctl.c | 684 +- kernel/sys.c| 672 + 3 files changed, 685 insertions(+), 673