Re: [PATCH] fs/proc: Add process text segment md5-summing

2012-11-13 Thread Arvid Brodin
On 2012-11-13 03:16, Eric W. Biederman wrote: > To add another nail in the coffin. > > You can do this with ptrace or with /proc//mem without a kernel > patch. > > To make this safe would need a ptrace_may_acces(PTRACE_MODE_READ) > permission check. At which point not doing this with ptrace

Re: [PATCH] fs/proc: Add process text segment md5-summing

2012-11-13 Thread Arvid Brodin
On 2012-11-13 00:03, Andrew Morton wrote: > On Mon, 12 Nov 2012 21:36:17 + > Arvid Brodin wrote: > >> Adds /proc//text_md5sum which, when read, calculates an md5sum over >> the process' text segment. This can detect some cases where the system RAM >> has been disturbed by e.g. ESD or cosmic

Re: [PATCH] fs/proc: Add process text segment md5-summing

2012-11-13 Thread Arvid Brodin
On 2012-11-13 00:03, Andrew Morton wrote: On Mon, 12 Nov 2012 21:36:17 + Arvid Brodin arvid.bro...@xdin.com wrote: Adds /proc/pid/text_md5sum which, when read, calculates an md5sum over the process' text segment. This can detect some cases where the system RAM has been disturbed by e.g.

Re: [PATCH] fs/proc: Add process text segment md5-summing

2012-11-13 Thread Arvid Brodin
On 2012-11-13 03:16, Eric W. Biederman wrote: To add another nail in the coffin. You can do this with ptrace or with /proc/pid/mem without a kernel patch. To make this safe would need a ptrace_may_acces(PTRACE_MODE_READ) permission check. At which point not doing this with ptrace just

Re: [PATCH] fs/proc: Add process text segment md5-summing

2012-11-12 Thread Eric W. Biederman
Andrew Morton writes: > On Mon, 12 Nov 2012 21:36:17 + > Arvid Brodin wrote: > >> Adds /proc//text_md5sum which, when read, calculates an md5sum over >> the process' text segment. This can detect some cases where the system RAM >> has been disturbed by e.g. ESD or cosmic radiation (on

Re: [PATCH] fs/proc: Add process text segment md5-summing

2012-11-12 Thread Andrew Morton
On Mon, 12 Nov 2012 21:36:17 + Arvid Brodin wrote: > Adds /proc//text_md5sum which, when read, calculates an md5sum over > the process' text segment. This can detect some cases where the system RAM > has been disturbed by e.g. ESD or cosmic radiation (on systems where ECC > is not

[PATCH] fs/proc: Add process text segment md5-summing

2012-11-12 Thread Arvid Brodin
Adds /proc//text_md5sum which, when read, calculates an md5sum over the process' text segment. This can detect some cases where the system RAM has been disturbed by e.g. ESD or cosmic radiation (on systems where ECC is not available). It might also detect some accidental or malicious modifications

[PATCH] fs/proc: Add process text segment md5-summing

2012-11-12 Thread Arvid Brodin
Adds /proc/pid/text_md5sum which, when read, calculates an md5sum over the process' text segment. This can detect some cases where the system RAM has been disturbed by e.g. ESD or cosmic radiation (on systems where ECC is not available). It might also detect some accidental or malicious

Re: [PATCH] fs/proc: Add process text segment md5-summing

2012-11-12 Thread Andrew Morton
On Mon, 12 Nov 2012 21:36:17 + Arvid Brodin arvid.bro...@xdin.com wrote: Adds /proc/pid/text_md5sum which, when read, calculates an md5sum over the process' text segment. This can detect some cases where the system RAM has been disturbed by e.g. ESD or cosmic radiation (on systems where

Re: [PATCH] fs/proc: Add process text segment md5-summing

2012-11-12 Thread Eric W. Biederman
Andrew Morton a...@linux-foundation.org writes: On Mon, 12 Nov 2012 21:36:17 + Arvid Brodin arvid.bro...@xdin.com wrote: Adds /proc/pid/text_md5sum which, when read, calculates an md5sum over the process' text segment. This can detect some cases where the system RAM has been disturbed