|
Message-Id: <1380140085-29712-11-git-send-email-tixxdz@opendz.org> Date: Wed, 25 Sep 2013 21:14:43 +0100 From: Djalal Harouni <tixxdz@...ndz.org> To: "Eric W. Biederman" <ebiederm@...ssion.com>, Kees Cook <keescook@...omium.org>, Al Viro <viro@...iv.linux.org.uk>, Andrew Morton <akpm@...ux-foundation.org>, Linus Torvalds <torvalds@...ux-foundation.org>, Ingo Molnar <mingo@...nel.org>, "Serge E. Hallyn" <serge.hallyn@...ntu.com>, Cyrill Gorcunov <gorcunov@...nvz.org>, LKML <linux-kernel@...r.kernel.org>, linux-fsdevel@...r.kernel.org, <kernel-hardening@...ts.openwall.com> Cc: tixxdz@...il.com, Djalal Harouni <tixxdz@...ndz.org> Subject: [PATCH 10/12] procfs: move PROC_BLOCK_SIZE declaration up to make it visible Move PROC_BLOCK_SIZE declaraiton up, so new code can use it. Signed-off-by: Djalal Harouni <tixxdz@...ndz.org> --- fs/proc/base.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/proc/base.c b/fs/proc/base.c index ed8e3f7..fe02ee4 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -150,6 +150,9 @@ struct pid_entry { NULL, &proc_single_file_operations, \ { .proc_show = show } ) +/* 4K page size but our output routines use some slack for overruns */ +#define PROC_BLOCK_SIZE (3*1024) + /** * proc_same_open_cred - Check if the file's opener cred matches the * current cred. @@ -738,7 +741,6 @@ static const struct inode_operations proc_def_inode_operations = { .setattr = proc_setattr, }; -#define PROC_BLOCK_SIZE (3*1024) /* 4K page size but our output routines use some slack for overruns */ static ssize_t proc_info_read(struct file * file, char __user * buf, size_t count, loff_t *ppos) -- 1.7.11.7
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.