public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: Kurt Garloff <garloff@suse.de>
Cc: Arjan van de Ven <arjan@infradead.org>,
	Andrew Morton <akpm@osdl.org>,
	linux-kernel@vger.kernel.org, torvalds@osdl.org
Subject: Re: [PATCH] KERN_SETUID_DUMPABLE in /proc/sys/fs/
Date: Sun, 12 Mar 2006 16:39:24 -0700	[thread overview]
Message-ID: <m1d5grqllf.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <20060312223256.GE3028@tpkurt.garloff.de> (Kurt Garloff's message of "Sun, 12 Mar 2006 23:32:56 +0100")

Kurt Garloff <garloff@suse.de> writes:

> Hi Arjan, Eric,
>
> On Sun, Mar 12, 2006 at 03:07:47PM -0700, Eric W. Biederman wrote:
>> Arjan van de Ven <arjan@infradead.org> writes:
>> 
>> > diff -purN linux-2.6.16-rc5/include/linux/sysctl.h
>> > linux-2.6.16-rc5-setuid/include/linux/sysctl.h
>> > --- linux-2.6.16-rc5/include/linux/sysctl.h 2006-02-27 09:13:31.000000000
> +0100
>> > +++ linux-2.6.16-rc5-setuid/include/linux/sysctl.h 2006-03-11
> 09:02:13.000000000
>> > +0100
>> > @@ -144,7 +144,6 @@ enum
>> >  	KERN_UNKNOWN_NMI_PANIC=66, /* int: unknown nmi panic flag */
>> >  	KERN_BOOTLOADER_TYPE=67, /* int: boot loader type */
>> >  	KERN_RANDOMIZE=68, /* int: randomize virtual address space */
>> > -	KERN_SETUID_DUMPABLE=69, /* int: behaviour of dumps for setuid core */
>> >  	KERN_SPIN_RETRY=70,	/* int: number of spinlock retries */
>> >  	KERN_ACPI_VIDEO_FLAGS=71, /* int: flags for setting up video after ACPI
>> > sleep */
>> >  };
>> > @@ -759,6 +758,9 @@ enum
>> >  	FS_AIO_NR=18,	/* current system-wide number of aio requests */
>> >  	FS_AIO_MAX_NR=19, /* system-wide maximum number of aio requests */
>> >  	FS_INOTIFY=20,	/* inotify submenu */
>> > + /* Note: the following got misplaced but this mistake is
>> > +			   now part of the ABI */
>> > +	FS_SETUID_DUMPABLE=21, /* int: behaviour of dumps for setuid core */
>
> OK, this is the other possibility. It'll leave a hole in the KERN_
> sysctl numbering, but that's not a problem AFAICT.
> I would however at least annotate with FIXME and make a note that it's
> gonna change in 2.7.

Making the variable show up in two places is reasonable.
Removing it from it's current location is not, as there are currently
no technical reasons to make the change.

Unless something dramatic shows up 2.7 isn't going to happen.
If you want something like that to happen use:
Documentation/feature-removal-schedule.txt


> It's hard to tell how many people depend on suid_dumpable being at the
> wrong location. The fact nobody noticed it being placed wrongly would
> make me suspect it's not widely used yet (it only got introduced
> 2005-06-23 by Alan Cox). So I would prefer to move it to the correct
> location now rather than in 2.7. By the time 2.7 comes, we may have so
> many users, we may not want to correct this any more at all.

Don't move it just add it to the correct location.  But also leave
it at it's old location.  Then put something in
Documentation/feature-removal-schedule.txt that says in six months or
so it will be gone, from the bad location.

>> This must be number 69 here.  Or else we break the sys_sysctl ABI.
>
> I don't think we break anything we want to maintain. 
> Kernel-internal defines? 

That 69 is not kernel internal it is exported to user space,
which is why changing that is wrong.

> OK to change when going from 2.6.15 to 2.6.16 IMVHO. No module
> compiled for 2.6.15 will work with 2.6.16 anyway.

No because it isn't kernel internal.  Which is why I mentioned
sys_sysctl.  It uses that 69 as part of the path to that variable.

Eric

  reply	other threads:[~2006-03-12 23:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-10 15:57 [PATCH] KERN_SETUID_DUMPABLE in /proc/sys/fs/ Kurt Garloff
2006-03-10 22:56 ` Andrew Morton
2006-03-11  7:23   ` Arjan van de Ven
2006-03-11  7:41     ` Andrew Morton
2006-03-11  7:47       ` Arjan van de Ven
2006-03-11  7:51         ` Andrew Morton
2006-03-11  8:04           ` Arjan van de Ven
2006-03-11 12:09             ` Jan Engelhardt
2006-03-12 22:07             ` Eric W. Biederman
2006-03-12 22:32               ` Kurt Garloff
2006-03-12 23:39                 ` Eric W. Biederman [this message]
2006-03-13  8:00               ` Arjan van de Ven
2006-03-13 15:06                 ` 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=m1d5grqllf.fsf@ebiederm.dsl.xmission.com \
    --to=ebiederm@xmission.com \
    --cc=akpm@osdl.org \
    --cc=arjan@infradead.org \
    --cc=garloff@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /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