From: "H. Peter Anvin" <hpa@zytor.com>
To: Rob Landley <rob@landley.net>
Cc: Andi Kleen <andi@firstfloor.org>,
"Eric W. Biederman" <ebiederm@xmission.com>,
Christoph Hellwig <hch@infradead.org>,
Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] sysctl: Deprecate sys_sysctl in a user space visible fashion.
Date: Sun, 02 Sep 2007 09:54:36 +0100 [thread overview]
Message-ID: <46DA7A4C.6080501@zytor.com> (raw)
In-Reply-To: <200709020344.51437.rob@landley.net>
Rob Landley wrote:
> On Saturday 01 September 2007 5:16:03 pm Andi Kleen wrote:
>> Rob Landley <rob@landley.net> writes:
>>> A lot of embedded people like to configure /proc out of the kernel for
>>> space reasons. This would make that noticeably more painful.
>> I had a patch for a sysctl_name(2) for this a long time ago.
>> If it was a serious issue that could be reintroduced.
>>
>> BTW sysctl(2) only needs to be quiet for a single sysctl used
>> by glibc.
>>
>> -Andi
>
> Yeah, I found it:
> http://lkml.org/lkml/2003/7/10/345
>
> I think that if /proc/sys could be broken out as a separate filesystem, and it
> was small and simple, the embedded people would probably be happy. Is your
> patch significantly smaller than such a filesystem would be? (Keeping in
> mind that the smallest thing you can do is run from initramfs, and I think
> that's pulling in libfs already...)
>
IMO, the big problem with /proc/sys (and, for that matter, /sys) is
mainly that they have to live in the process namespace, which is highly
awkward when one uses chroot().
One way to solve *that* might be a system call to get a file descriptor
to the root of sysfs or procsysfs which can be used with openat(). That
has its own perils, of course...
-hpa
next prev parent reply other threads:[~2007-09-02 8:59 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-28 22:40 [PATCH] sysctl: Deprecate sys_sysctl in a user space visible fashion Eric W. Biederman
2007-08-28 23:04 ` Christoph Hellwig
2007-08-28 23:53 ` Eric W. Biederman
2007-08-29 1:31 ` H. Peter Anvin
2007-08-29 1:56 ` Eric W. Biederman
2007-08-29 10:46 ` Alan Cox
2007-08-29 17:16 ` Eric W. Biederman
2007-08-29 17:28 ` H. Peter Anvin
2007-08-29 19:00 ` Eric W. Biederman
2007-08-30 12:13 ` Theodore Tso
2007-08-30 13:20 ` David Newall
2007-08-30 17:40 ` Eric W. Biederman
2007-08-29 22:51 ` Andrew Morton
2007-08-30 19:32 ` Rob Landley
2007-08-30 18:34 ` Christoph Hellwig
2007-08-30 18:57 ` Eric W. Biederman
2007-08-30 23:22 ` Rob Landley
2007-09-01 22:16 ` Andi Kleen
2007-09-02 8:44 ` Rob Landley
2007-09-02 8:54 ` H. Peter Anvin [this message]
2007-09-02 11:05 ` Rob Landley
2007-09-02 19:56 ` Eric W. Biederman
2007-09-02 20:00 ` Al Viro
2007-09-02 21:51 ` Eric W. Biederman
2007-09-03 8:37 ` Andi Kleen
2007-09-03 9:16 ` Al Viro
2007-08-29 4:49 ` Andrew Morton
2007-08-30 18:56 ` Jan Engelhardt
2007-08-29 4:49 ` Andrew Morton
2007-08-29 5:24 ` Eric W. Biederman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46DA7A4C.6080501@zytor.com \
--to=hpa@zytor.com \
--cc=akpm@linux-foundation.org \
--cc=andi@firstfloor.org \
--cc=ebiederm@xmission.com \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rob@landley.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox