[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m1lkh23kkb.fsf@ebiederm.dsl.xmission.com>
Date: Sun, 08 Apr 2007 10:19:48 -0600
From: ebiederm@...ssion.com (Eric W. Biederman)
To: Oleg Nesterov <oleg@...sign.ru>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Davide Libenzi <davidel@...ilserver.org>,
Ingo Molnar <mingo@...e.hu>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Robin Holt <holt@....com>, Roland McGrath <roland@...hat.com>,
linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org
Subject: Re: [RFC, PATCH 1/3] introduce SYS_CLONE_MASK
Oleg Nesterov <oleg@...sign.ru> writes:
> For review only.
>
> To implement for-in-kerenl-use-only CLONE_ flags, we need to filter out them
> in sys_clone().
Nack
The current clone_flags field is for user space consumption and we
have proposed users for all or almost all of the remaining bits.
If we are going to have kernel only flags please use an additional
argument to do_fork and copy_process.
Your current scheme also has the bad side that if user space supplied
a kernel flag it is hard to detect it and return -EINVAL. Which
limits future expansion. Silently dropping clone flags is a real
pain, if you are trying to detect if a new flag has been implemented.
Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists