Re: [PATCH v6] procfs: Always expose /proc//map_files/ and make it readable

2015-06-12 Thread Alexey Dobriyan
On Thu, Jun 11, 2015 at 9:49 PM, Andrew Morton wrote: > On Thu, 11 Jun 2015 14:10:45 +0300 Alexey Dobriyan > wrote: > >> On Wed, Jun 10, 2015 at 11:58 PM, Andrew Morton >> wrote: >> > On Tue, 9 Jun 2015 18:39:02 -0700 Calvin Owens wrote: >> > >> >> On Tuesday 06/09 at 14:13 -0700, Andrew

Re: [PATCH v6] procfs: Always expose /proc//map_files/ and make it readable

2015-06-11 Thread Andrew Morton
On Thu, 11 Jun 2015 14:10:45 +0300 Alexey Dobriyan wrote: > On Wed, Jun 10, 2015 at 11:58 PM, Andrew Morton > wrote: > > On Tue, 9 Jun 2015 18:39:02 -0700 Calvin Owens wrote: > > > >> On Tuesday 06/09 at 14:13 -0700, Andrew Morton wrote: > >> > On Mon, 8 Jun 2015 20:39:33 -0700 Calvin Owens

Re: [PATCH v6] procfs: Always expose /proc//map_files/ and make it readable

2015-06-11 Thread Alexey Dobriyan
On Wed, Jun 10, 2015 at 11:58 PM, Andrew Morton wrote: > On Tue, 9 Jun 2015 18:39:02 -0700 Calvin Owens wrote: > >> On Tuesday 06/09 at 14:13 -0700, Andrew Morton wrote: >> > On Mon, 8 Jun 2015 20:39:33 -0700 Calvin Owens wrote: >> > >> > > Currently, /proc//map_files/ is restricted to

Re: [PATCH v6] procfs: Always expose /proc//map_files/ and make it readable

2015-06-10 Thread Andrew Morton
On Tue, 9 Jun 2015 18:39:02 -0700 Calvin Owens wrote: > On Tuesday 06/09 at 14:13 -0700, Andrew Morton wrote: > > On Mon, 8 Jun 2015 20:39:33 -0700 Calvin Owens wrote: > > > > > Currently, /proc//map_files/ is restricted to CAP_SYS_ADMIN, and > > > is only exposed if CONFIG_CHECKPOINT_RESTORE

Re: [PATCH v6] procfs: Always expose /proc//map_files/ and make it readable

2015-06-09 Thread Calvin Owens
On Tuesday 06/09 at 14:13 -0700, Andrew Morton wrote: > On Mon, 8 Jun 2015 20:39:33 -0700 Calvin Owens wrote: > > > Currently, /proc//map_files/ is restricted to CAP_SYS_ADMIN, and > > is only exposed if CONFIG_CHECKPOINT_RESTORE is set. > > > > This interface very useful because it allows

Re: [PATCH v6] procfs: Always expose /proc//map_files/ and make it readable

2015-06-09 Thread Andrew Morton
On Mon, 8 Jun 2015 20:39:33 -0700 Calvin Owens wrote: > Currently, /proc//map_files/ is restricted to CAP_SYS_ADMIN, and > is only exposed if CONFIG_CHECKPOINT_RESTORE is set. > > This interface very useful because it allows userspace to stat() > deleted files that are still mapped by some

Re: [PATCH v6] procfs: Always expose /proc//map_files/ and make it readable

2015-06-09 Thread Cyrill Gorcunov
On Tue, Jun 09, 2015 at 10:47:31AM -0700, Andy Lutomirski wrote: ... > > > > Cool, I think this looks good. Thanks! > > > > Reviewed-by: Kees Cook > > > > Looks good to me, too. Wow! Great job, Calvin, thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [PATCH v6] procfs: Always expose /proc//map_files/ and make it readable

2015-06-09 Thread Andy Lutomirski
On Tue, Jun 9, 2015 at 10:27 AM, Kees Cook wrote: > On Mon, Jun 8, 2015 at 8:39 PM, Calvin Owens wrote: >> Currently, /proc//map_files/ is restricted to CAP_SYS_ADMIN, and >> is only exposed if CONFIG_CHECKPOINT_RESTORE is set. >> >> This interface very useful because it allows userspace to

Re: [PATCH v6] procfs: Always expose /proc//map_files/ and make it readable

2015-06-09 Thread Kees Cook
On Mon, Jun 8, 2015 at 8:39 PM, Calvin Owens wrote: > Currently, /proc//map_files/ is restricted to CAP_SYS_ADMIN, and > is only exposed if CONFIG_CHECKPOINT_RESTORE is set. > > This interface very useful because it allows userspace to stat() > deleted files that are still mapped by some process,

[PATCH v6] procfs: Always expose /proc//map_files/ and make it readable

2015-06-08 Thread Calvin Owens
Currently, /proc//map_files/ is restricted to CAP_SYS_ADMIN, and is only exposed if CONFIG_CHECKPOINT_RESTORE is set. This interface very useful because it allows userspace to stat() deleted files that are still mapped by some process, which enables a much quicker and more accurate answer to the