]> git.karo-electronics.de Git - karo-tx-linux.git/commit
proc: clean up /proc/<pid>/environ handling
authorCong Wang <xiyou.wangcong@gmail.com>
Wed, 25 Apr 2012 01:04:43 +0000 (11:04 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:38 +0000 (15:17 +1000)
commit75e822a7a1bb4d34f47d5454981afc1acc170a9f
tree3bb0fac45d729ff2053464688e9edfe21158b206
parent587209da955c42966ffe9ab45fe5852343dd9b26
proc: clean up /proc/<pid>/environ handling

Similar to e268337dfe2 ("proc: clean up and fix /proc/<pid>/mem
handling"), move the check of permission to open(), this will simplify
read() code.

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/base.c