Re: [PATCH] remove binfmts.h from header exports

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Olaf Hering
Date: Tuesday, August 7, 2007 - 11:14 pm

On Wed, Aug 08, Alexey Dobriyan wrote:


No, because the header will disappear. And from my understanding, the
args limit is now gone.


Yes, its inside __KERNEL__. Have you read that header already? We are
talking about the part below.
What part is useable for an application?

....
#include <linux/capability.h>

struct pt_regs;

/*
 * These are the maximum length and maximum number of strings passed to the
 * execve() system call.  MAX_ARG_STRLEN is essentially random but serves to
 * prevent the kernel from being unduly impacted by misaddressed pointers.
 * MAX_ARG_STRINGS is chosen to fit in a signed 32-bit integer.
 */
#define MAX_ARG_STRLEN (PAGE_SIZE * 32)
#define MAX_ARG_STRINGS 0x7FFFFFFF

/* sizeof(linux_binprm->buf) */
#define BINPRM_BUF_SIZE 128
....


Thats true.
I remember someone even wrote something for Documentation/ a few days ago.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] remove binfmts.h from header exports, Olaf Hering, (Tue Aug 7, 1:16 pm)
Re: [PATCH] remove binfmts.h from header exports, Alexey Dobriyan, (Tue Aug 7, 1:37 pm)
Re: [PATCH] remove binfmts.h from header exports, Rene Herman, (Tue Aug 7, 4:35 pm)
Re: [PATCH] remove binfmts.h from header exports, Olaf Hering, (Tue Aug 7, 11:10 pm)
Re: [PATCH] remove binfmts.h from header exports, Olaf Hering, (Tue Aug 7, 11:14 pm)
Re: [PATCH] remove binfmts.h from header exports, Alexey Dobriyan, (Wed Aug 8, 12:12 am)
Re: [PATCH] remove binfmts.h from header exports, Olaf Hering, (Wed Aug 8, 10:28 am)