* [gentoo-dev] glibc: pt_chown setuid going away by default
@ 2013-04-10 5:15 Mike Frysinger
2013-04-10 16:26 ` "Paweł Hajdan, Jr."
` (2 more replies)
0 siblings, 3 replies; 22+ messages in thread
From: Mike Frysinger @ 2013-04-10 5:15 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 2329 bytes --]
tl;dr: make sure your /dev/pts is mounted correctly w/gid=5 or bad things will
happen and it's (probably) all your fault
when you run grantpt(), glibc attempts to set up your pty with correct
ownership & permissions. it does so by executing a setuid helper called
pt_chown as needed. we all know setuid==bad, so let's do something about it.
this system is a throw back to the bad old bsd pty days where you had a ton of
pre-allocated nodes in /dev/ named pty??. since the user has requested a new
pty, the system had to make sure it had correct permissions before giving it
back (it might be the default of root:root, or it might have the previous
user's settings which would be super bad). this system sucks for many
reasons.
with Linux, we have devpts mounted at /dev/pts/ which provides dynamic UNIX 98
ptys via the /dev/ptmx control node. the kernel knows that when you request a
new pty, the sane thing is to set the default uid/gid to your own process's
uid/gid. it even goes further and allows you to specify (at mount time)
default gid/permissions.
with openrc (and in baselayout-1.12, but i'm pretty sure it's been this way
for even longer), our default mount uses gid=5 (the tty group) and mode=620
(what we want). that means when a new pty is requested, the kernel
automatically sets the ownership of the new file to the process's uid and the
mounted group setting (tty), as well as setting the perms to 620.
back to glibc, when you call grantpt(), it checks the current uid/gid/mode.
if they all match what it expects (and it should with our default devpts mount
opts), it returns w/out doing any real work (like calling the setuid pt_chown
helper). that means this binary is sitting around with setuid perms for no
good reason.
i plan on updating the latest glibc to add USE=suid. in pkg_preinst and
ROOT==/, the ebuild will read /proc/mounts for a devpts line with gid=5. if
it doesn't find one, i'll have it call `die`. if the bsd pty scenario wasn't
long dead, and the devpts option didn't have gid=/mode= options, then it might
be reasonable to have it warn and do `chmod +s`. but i can't think of any
legitimate reasons for not using devpts & mounting it correctly. this is the
right answer even in the embedded world.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-dev] glibc: pt_chown setuid going away by default
2013-04-10 5:15 [gentoo-dev] glibc: pt_chown setuid going away by default Mike Frysinger
@ 2013-04-10 16:26 ` "Paweł Hajdan, Jr."
2013-04-10 18:56 ` Rich Freeman
2013-04-12 6:50 ` Maxim Kammerer
2 siblings, 0 replies; 22+ messages in thread
From: "Paweł Hajdan, Jr." @ 2013-04-10 16:26 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 777 bytes --]
On 4/9/13 10:15 PM, Mike Frysinger wrote:
> i plan on updating the latest glibc to add USE=suid. in pkg_preinst and
> ROOT==/, the ebuild will read /proc/mounts for a devpts line with gid=5. if
> it doesn't find one, i'll have it call `die`. if the bsd pty scenario wasn't
> long dead, and the devpts option didn't have gid=/mode= options, then it might
> be reasonable to have it warn and do `chmod +s`. but i can't think of any
> legitimate reasons for not using devpts & mounting it correctly. this is the
> right answer even in the embedded world.
+1
I have it disabled already on some of my systems using suidctl.
I was going to suggest making that change some time ago - great to hear
it's being done. Thanks for working on this!
Paweł
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 203 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-dev] glibc: pt_chown setuid going away by default
2013-04-10 5:15 [gentoo-dev] glibc: pt_chown setuid going away by default Mike Frysinger
2013-04-10 16:26 ` "Paweł Hajdan, Jr."
@ 2013-04-10 18:56 ` Rich Freeman
2013-04-10 19:32 ` Mike Frysinger
2013-04-12 6:50 ` Maxim Kammerer
2 siblings, 1 reply; 22+ messages in thread
From: Rich Freeman @ 2013-04-10 18:56 UTC (permalink / raw
To: gentoo-dev
On Wed, Apr 10, 2013 at 1:15 AM, Mike Frysinger <vapier@gentoo.org> wrote:
> tl;dr: make sure your /dev/pts is mounted correctly w/gid=5 or bad things will
> happen and it's (probably) all your fault
So, who is this directed to? If this is to anybody who uses Gentoo,
then at best this should be a place to hash out the contents of the
news item. We don't expect Gentoo users to read -dev. Certainly the
maintainers of anything that mounts /dev/pts
(OpenRC/SystemD/baselayout?) should take heed.
Rich
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-dev] glibc: pt_chown setuid going away by default
2013-04-10 18:56 ` Rich Freeman
@ 2013-04-10 19:32 ` Mike Frysinger
2013-04-11 2:27 ` [gentoo-dev] " Duncan
2013-04-11 15:43 ` [gentoo-dev] " James Cloos
0 siblings, 2 replies; 22+ messages in thread
From: Mike Frysinger @ 2013-04-10 19:32 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: Text/Plain, Size: 1045 bytes --]
On Wednesday 10 April 2013 14:56:26 Rich Freeman wrote:
> On Wed, Apr 10, 2013 at 1:15 AM, Mike Frysinger <vapier@gentoo.org> wrote:
> > tl;dr: make sure your /dev/pts is mounted correctly w/gid=5 or bad things
> > will happen and it's (probably) all your fault
>
> So, who is this directed to?
any dev who maintains systems that handle initial mounting, or knows of random
edge cases in the tree that might run into this. i can't exactly grep our
entire code base looking for devpts mounters.
> If this is to anybody who uses Gentoo,
> then at best this should be a place to hash out the contents of the
> news item. We don't expect Gentoo users to read -dev.
users will be informed of the problem when the ebuild fails and then can
trivially resolve it at that point. this should impact very few (if any)
users, so i don't think a news item makes sense.
> Certainly the
> maintainers of anything that mounts /dev/pts
> (OpenRC/SystemD/baselayout?) should take heed.
the maintainers are reading -dev
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* [gentoo-dev] Re: glibc: pt_chown setuid going away by default
2013-04-10 19:32 ` Mike Frysinger
@ 2013-04-11 2:27 ` Duncan
2013-04-11 15:43 ` [gentoo-dev] " James Cloos
1 sibling, 0 replies; 22+ messages in thread
From: Duncan @ 2013-04-11 2:27 UTC (permalink / raw
To: gentoo-dev
Mike Frysinger posted on Wed, 10 Apr 2013 15:32:40 -0400 as excerpted:
> On Wednesday 10 April 2013 14:56:26 Rich Freeman wrote:
>> On Wed, Apr 10, 2013 at 1:15 AM, Mike Frysinger <vapier@gentoo.org>
>> wrote:
>> > tl;dr: make sure your /dev/pts is mounted correctly w/gid=5 or bad
>> > things will happen and it's (probably) all your fault
>>
>> So, who is this directed to?
>> If this is to anybody who uses Gentoo,
>> then at best this should be a place to hash out the contents of the
>> news item. We don't expect Gentoo users to read -dev.
>
> users will be informed of the problem when the ebuild fails and then can
> trivially resolve it at that point. this should impact very few (if
> any) users, so i don't think a news item makes sense.
/This/ user would have been affected. I guess the GID bit wasn't in the
shipped fstab back in 2004 when I setup the system, or in any case, it
wasn't there until I just added it last nite, based on this thread.
Of course, /this/ user reads dev, too, exactly because it does give me a
heads-up on such things, as well as a bit of the reasoning (and often
some discussion) behind it.
I'd argue that any gentooer that takes their gentooing sysadmin
responsibilities seriously really should read -dev for exactly that
reason, but I suppose in practice we're actually lucky that most don't,
or the list would either be too busy to follow (and get anything else
done) or would have to be read-only for ordinary users.
But you're right in that if I hadn't read it here, the die and I assume a
reasonable die message would have informed me what action I needed to
take to fix the problem.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-dev] glibc: pt_chown setuid going away by default
2013-04-10 19:32 ` Mike Frysinger
2013-04-11 2:27 ` [gentoo-dev] " Duncan
@ 2013-04-11 15:43 ` James Cloos
2013-04-11 16:49 ` Mike Frysinger
1 sibling, 1 reply; 22+ messages in thread
From: James Cloos @ 2013-04-11 15:43 UTC (permalink / raw
To: Mike Frysinger; +Cc: gentoo-dev
>>>>> "MF" == Mike Frysinger <vapier@gentoo.org> writes:
MF> this should impact very few (if any)
MF> users, so i don't think a news item makes sense.
It will impact everyone who has /dev/pts in fstab(5).
I doubt that any say gid=5.
I don't remember why this box has it in fstab; it looks like it always did.
The backup of my (now dead) laptop also has such an entry. The rcs log
for that one shows that it got added in late '03, and not manually.
I imagine therefore that it is not all that uncommon.
-JimC
--
James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-dev] glibc: pt_chown setuid going away by default
2013-04-11 15:43 ` [gentoo-dev] " James Cloos
@ 2013-04-11 16:49 ` Mike Frysinger
2013-04-12 2:19 ` [gentoo-dev] " Duncan
2013-04-12 19:41 ` [gentoo-dev] " James Cloos
0 siblings, 2 replies; 22+ messages in thread
From: Mike Frysinger @ 2013-04-11 16:49 UTC (permalink / raw
To: James Cloos; +Cc: gentoo-dev
[-- Attachment #1: Type: Text/Plain, Size: 1231 bytes --]
On Thursday 11 April 2013 11:43:59 James Cloos wrote:
> >>>>> "MF" == Mike Frysinger <vapier@gentoo.org> writes:
> MF> this should impact very few (if any)
> MF> users, so i don't think a news item makes sense.
>
> It will impact everyone who has /dev/pts in fstab(5).
don't do that. delete the line.
> I doubt that any say gid=5.
>
> I don't remember why this box has it in fstab; it looks like it always did.
>
> The backup of my (now dead) laptop also has such an entry. The rcs log
> for that one shows that it got added in late '03, and not manually.
baselayout has not included devpts in /etc/fstab since 26 Nov 2001 and even
then, it was commented out
http://sources.gentoo.org/baselayout/branches/baselayout-1_12/etc/fstab?view=log
http://sources.gentoo.org/baselayout/branches/rc-
scripts-1_6/etc/fstab?view=log
the oldest tag we have is baselayout-1.11.15 (released 22 Apr 2006), and it
doesn't include it.
the oldest tarball i have is baselayout-1.11.8 (released 15 Dec 2004) as
that's when i took over releasing things, and it doesn't include it either.
it hasn't been added since that release.
so i stand by my statement that very few people will be impacted by this.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* [gentoo-dev] Re: glibc: pt_chown setuid going away by default
2013-04-11 16:49 ` Mike Frysinger
@ 2013-04-12 2:19 ` Duncan
2013-04-12 20:05 ` Mike Frysinger
2013-04-12 19:41 ` [gentoo-dev] " James Cloos
1 sibling, 1 reply; 22+ messages in thread
From: Duncan @ 2013-04-12 2:19 UTC (permalink / raw
To: gentoo-dev
Mike Frysinger posted on Thu, 11 Apr 2013 12:49:00 -0400 as excerpted:
> On Thursday 11 April 2013 11:43:59 James Cloos wrote:
>> >>>>> "MF" == Mike Frysinger <vapier@gentoo.org> writes:
>> MF> this should impact very few (if any)
>> MF> users, so i don't think a news item makes sense.
>>
>> It will impact everyone who has /dev/pts in fstab(5).
>
> don't do that. delete the line.
I wonder if I added my devpts fstab entry (if as you say it wasn't an
automated add) some time ago, when there was some security related hubbub
over it, as significantly, my fstab entry has nosuid, noexec, while the
default for it in /etc/init.d/devfs does not.
My fstab devpts entry also has noauto, but that's likely simply due to it
being an fstab entry...
Regardless, that's at least two gentooers with installations dating from
the early 00s that have reported having the (GID-less) entry in fstab
now, so I strongly suspect it's going to affect more users, at least long-
time users, than you thought. It may in fact affect the majority of
users from that era... anyone who hasn't manually removed that entry from
fstab over the years.
You mention it wasn't in the old baselayout/openrc tarballs. What about
the early stages? Perhaps that's where it came from? Anyone with 2004.x
vintage stage tarballs around to check?
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-dev] glibc: pt_chown setuid going away by default
2013-04-10 5:15 [gentoo-dev] glibc: pt_chown setuid going away by default Mike Frysinger
2013-04-10 16:26 ` "Paweł Hajdan, Jr."
2013-04-10 18:56 ` Rich Freeman
@ 2013-04-12 6:50 ` Maxim Kammerer
2013-04-12 16:22 ` Mike Frysinger
2 siblings, 1 reply; 22+ messages in thread
From: Maxim Kammerer @ 2013-04-12 6:50 UTC (permalink / raw
To: gentoo-dev
On Wed, Apr 10, 2013 at 8:15 AM, Mike Frysinger <vapier@gentoo.org> wrote:
> i plan on updating the latest glibc to add USE=suid. in pkg_preinst and
> ROOT==/, the ebuild will read /proc/mounts for a devpts line with gid=5. if
> it doesn't find one, i'll have it call `die`.
What about chroot builds? I have /dev/pts bind-mounted from the (old)
host filesystem into chroot, yet pt_chown has its suid bit happily
disabled in deployed build since long time ago.
--
Maxim Kammerer
Liberté Linux: http://dee.su/liberte
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-dev] glibc: pt_chown setuid going away by default
2013-04-12 6:50 ` Maxim Kammerer
@ 2013-04-12 16:22 ` Mike Frysinger
2013-04-12 17:20 ` Maxim Kammerer
0 siblings, 1 reply; 22+ messages in thread
From: Mike Frysinger @ 2013-04-12 16:22 UTC (permalink / raw
To: gentoo-dev; +Cc: Maxim Kammerer
[-- Attachment #1: Type: Text/Plain, Size: 756 bytes --]
On Friday 12 April 2013 02:50:20 Maxim Kammerer wrote:
> On Wed, Apr 10, 2013 at 8:15 AM, Mike Frysinger <vapier@gentoo.org> wrote:
> > i plan on updating the latest glibc to add USE=suid. in pkg_preinst and
> > ROOT==/, the ebuild will read /proc/mounts for a devpts line with gid=5.
> > if it doesn't find one, i'll have it call `die`.
>
> What about chroot builds? I have /dev/pts bind-mounted from the (old)
> host filesystem into chroot, yet pt_chown has its suid bit happily
> disabled in deployed build since long time ago.
i don't know what you mean. if the ebuild detects devpts being mounted and
the mount is incorrect, it will die. if you don't have devpts mounted at all,
then it assumes you know what you're doing.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-dev] glibc: pt_chown setuid going away by default
2013-04-12 16:22 ` Mike Frysinger
@ 2013-04-12 17:20 ` Maxim Kammerer
2013-04-12 18:54 ` Mike Gilbert
2013-04-12 19:56 ` Mike Frysinger
0 siblings, 2 replies; 22+ messages in thread
From: Maxim Kammerer @ 2013-04-12 17:20 UTC (permalink / raw
To: gentoo-dev
On Fri, Apr 12, 2013 at 7:22 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> i don't know what you mean. if the ebuild detects devpts being mounted and
> the mount is incorrect, it will die. if you don't have devpts mounted at all,
> then it assumes you know what you're doing.
What I am saying is that you make no distinction between build
environment and deployment environment. Quite a few users build their
Gentoo systems in a chroot. In that case, whole /dev, or its portions
(including /dev/pts) can be bind-mounts from the host filesystem, and
/dev/pts does not need to have the correct permissions. However, you
*would* see such a bind-mount as a devpts mount in /proc/mounts. So
why not print a warning — what's the point of dying in pkg_preinst?
--
Maxim Kammerer
Liberté Linux: http://dee.su/liberte
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-dev] glibc: pt_chown setuid going away by default
2013-04-12 17:20 ` Maxim Kammerer
@ 2013-04-12 18:54 ` Mike Gilbert
2013-04-12 19:56 ` Mike Frysinger
1 sibling, 0 replies; 22+ messages in thread
From: Mike Gilbert @ 2013-04-12 18:54 UTC (permalink / raw
To: Gentoo Dev
On Fri, Apr 12, 2013 at 1:20 PM, Maxim Kammerer <mk@dee.su> wrote:
> On Fri, Apr 12, 2013 at 7:22 PM, Mike Frysinger <vapier@gentoo.org> wrote:
>> i don't know what you mean. if the ebuild detects devpts being mounted and
>> the mount is incorrect, it will die. if you don't have devpts mounted at all,
>> then it assumes you know what you're doing.
>
> What I am saying is that you make no distinction between build
> environment and deployment environment. Quite a few users build their
> Gentoo systems in a chroot. In that case, whole /dev, or its portions
> (including /dev/pts) can be bind-mounts from the host filesystem, and
> /dev/pts does not need to have the correct permissions. However, you
> *would* see such a bind-mount as a devpts mount in /proc/mounts. So
> why not print a warning — what's the point of dying in pkg_preinst?
>
Do you have a reason for not having /dev/pts mounted with gid=5 on the
system hosting the chroot environment?
Calling die is much more likely to save users systems than an ewarn.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-dev] glibc: pt_chown setuid going away by default
2013-04-11 16:49 ` Mike Frysinger
2013-04-12 2:19 ` [gentoo-dev] " Duncan
@ 2013-04-12 19:41 ` James Cloos
2013-04-12 20:08 ` Mike Frysinger
1 sibling, 1 reply; 22+ messages in thread
From: James Cloos @ 2013-04-12 19:41 UTC (permalink / raw
To: Mike Frysinger; +Cc: gentoo-dev
>>>>> "MF" == Mike Frysinger <vapier@gentoo.org> writes:
>> It will impact everyone who has /dev/pts in fstab(5).
MF> don't do that.
*I* didn't.
I don't know /what/ added it, but something did. With noauto, just like
the other reported case.
It shouldn't matter how rare it is though. A general announcement won't
hurt anyone.
-JimC
--
James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-dev] glibc: pt_chown setuid going away by default
2013-04-12 17:20 ` Maxim Kammerer
2013-04-12 18:54 ` Mike Gilbert
@ 2013-04-12 19:56 ` Mike Frysinger
1 sibling, 0 replies; 22+ messages in thread
From: Mike Frysinger @ 2013-04-12 19:56 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: Text/Plain, Size: 1197 bytes --]
On Friday 12 April 2013 13:20:11 Maxim Kammerer wrote:
> On Fri, Apr 12, 2013 at 7:22 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> > i don't know what you mean. if the ebuild detects devpts being mounted
> > and the mount is incorrect, it will die. if you don't have devpts
> > mounted at all, then it assumes you know what you're doing.
>
> What I am saying is that you make no distinction between build
> environment and deployment environment. Quite a few users build their
> Gentoo systems in a chroot. In that case, whole /dev, or its portions
> (including /dev/pts) can be bind-mounts from the host filesystem, and
> /dev/pts does not need to have the correct permissions. However, you
> *would* see such a bind-mount as a devpts mount in /proc/mounts. So
> why not print a warning — what's the point of dying in pkg_preinst?
unless you have a good reason for having the host devpts being mounted wrong,
i'm not inclined to support this. every major distro that matters that i know
of does it this way and has for a long time: Debian, Ubuntu, Fedora, Gentoo.
if it encourages people to fix their host distro to also not suck, well that's
just a bonus.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-dev] Re: glibc: pt_chown setuid going away by default
2013-04-12 2:19 ` [gentoo-dev] " Duncan
@ 2013-04-12 20:05 ` Mike Frysinger
0 siblings, 0 replies; 22+ messages in thread
From: Mike Frysinger @ 2013-04-12 20:05 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: Text/Plain, Size: 1869 bytes --]
On Thursday 11 April 2013 22:19:40 Duncan wrote:
> Mike Frysinger posted on Thu, 11 Apr 2013 12:49:00 -0400 as excerpted:
> > On Thursday 11 April 2013 11:43:59 James Cloos wrote:
> >> >>>>> "MF" == Mike Frysinger <vapier@gentoo.org> writes:
> >> MF> this should impact very few (if any)
> >> MF> users, so i don't think a news item makes sense.
> >>
> >> It will impact everyone who has /dev/pts in fstab(5).
> >
> > don't do that. delete the line.
>
> I wonder if I added my devpts fstab entry (if as you say it wasn't an
> automated add) some time ago, when there was some security related hubbub
> over it, as significantly, my fstab entry has nosuid, noexec, while the
> default for it in /etc/init.d/devfs does not.
>
> My fstab devpts entry also has noauto, but that's likely simply due to it
> being an fstab entry...
>
> Regardless, that's at least two gentooers with installations dating from
> the early 00s that have reported having the (GID-less) entry in fstab
> now, so I strongly suspect it's going to affect more users, at least long-
> time users, than you thought. It may in fact affect the majority of
> users from that era... anyone who hasn't manually removed that entry from
> fstab over the years.
>
> You mention it wasn't in the old baselayout/openrc tarballs. What about
> the early stages? Perhaps that's where it came from? Anyone with 2004.x
> vintage stage tarballs around to check?
stages get their files from baselayout/openrc. they don't generate them
themselves.
Robin found even older baselayout releases for me. baselayout-1.8.6.12
(released Nov 2011) and newer don't contain any mention of devpts.
i don't know about 2004 releases, but i have stage tarballs i built in Oct
2005 using gcc-2.95 and they're exactly what i expect -- they match the
baselayout install.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-dev] glibc: pt_chown setuid going away by default
2013-04-12 19:41 ` [gentoo-dev] " James Cloos
@ 2013-04-12 20:08 ` Mike Frysinger
2013-04-13 17:06 ` Jeroen Roovers
0 siblings, 1 reply; 22+ messages in thread
From: Mike Frysinger @ 2013-04-12 20:08 UTC (permalink / raw
To: James Cloos; +Cc: gentoo-dev
[-- Attachment #1: Type: Text/Plain, Size: 863 bytes --]
On Friday 12 April 2013 15:41:55 James Cloos wrote:
> >>>>> "MF" == Mike Frysinger <vapier@gentoo.org> writes:
> >> It will impact everyone who has /dev/pts in fstab(5).
>
> MF> don't do that.
>
> *I* didn't.
that you remember. i think it's more likely you copy & pasted some line a
long time ago than baselayout modified it for you.
two people who have installs that are a decade old doesn't incline me to write
a news entry. not when the ebuild itself contains a sanity check that
triggers exactly as needed and includes an error message explaining things.
we aren't talking about an upgrade here that will silently & accidentally
break your box on next boot (like udev & friends), or will break running
programs (like SONAME bumps, although that's a much less of a problem now that
portage handles things automatically).
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-dev] glibc: pt_chown setuid going away by default
2013-04-12 20:08 ` Mike Frysinger
@ 2013-04-13 17:06 ` Jeroen Roovers
2013-04-14 23:02 ` James Cloos
2013-04-17 18:35 ` Mike Frysinger
0 siblings, 2 replies; 22+ messages in thread
From: Jeroen Roovers @ 2013-04-13 17:06 UTC (permalink / raw
To: gentoo-dev
On Fri, 12 Apr 2013 16:08:10 -0400
Mike Frysinger <vapier@gentoo.org> wrote:
> that you remember. i think it's more likely you copy & pasted some
> line a long time ago than baselayout modified it for you.
Exactly, but where did that come from?
> two people who have installs that are a decade old doesn't incline me
> to write a news entry. not when the ebuild itself contains a sanity
> check that triggers exactly as needed and includes an error message
> explaining things. we aren't talking about an upgrade here that will
> silently & accidentally break your box on next boot (like udev &
> friends), or will break running programs (like SONAME bumps, although
> that's a much less of a problem now that portage handles things
> automatically). -mike
I have been looking through old copies of the Handbook in the last
hour, assuming the fstab entry may have been included there at some
point. I haven't done anything like a thorough search, but I assume it
may have slipped into the handbook at some point and was later removed
(as some CVS log entries from 2004 seem to suggest).
jer
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-dev] glibc: pt_chown setuid going away by default
2013-04-13 17:06 ` Jeroen Roovers
@ 2013-04-14 23:02 ` James Cloos
2013-04-17 18:35 ` Mike Frysinger
1 sibling, 0 replies; 22+ messages in thread
From: James Cloos @ 2013-04-14 23:02 UTC (permalink / raw
To: Jeroen Roovers; +Cc: gentoo-dev
>>>>> "JR" == Jeroen Roovers <jer@gentoo.org> writes:
JR> On Fri, 12 Apr 2013 16:08:10 -0400
JR> Mike Frysinger <vapier@gentoo.org> wrote:
>> that you remember. i think it's more likely you copy & pasted some
>> line a long time ago than baselayout modified it for you.
JR> Exactly, but where did that come from?
If it didn't come from baselayout or openrc, the most likely scenario is
some gui crud.
I probably looked through the list of apps once I got a menu tree based
on .desktop files added to my wm. And with sudo(8) configured for
convenience, if I ran an app which edits fstab(5), it would not have
needed to ask for my sudo passwd to work.
And gnome seems to prefer fully to rewrite files in their own quirky
style. Rather than just making changes.
(Rewrites like that are why I tend to chattr+i a lot of files in /etc.)
-JimC
--
James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-dev] glibc: pt_chown setuid going away by default
2013-04-13 17:06 ` Jeroen Roovers
2013-04-14 23:02 ` James Cloos
@ 2013-04-17 18:35 ` Mike Frysinger
2013-04-17 18:36 ` Rich Freeman
2013-04-20 6:55 ` [gentoo-dev] " Sergei Trofimovich
1 sibling, 2 replies; 22+ messages in thread
From: Mike Frysinger @ 2013-04-17 18:35 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: Text/Plain, Size: 1423 bytes --]
On Saturday 13 April 2013 13:06:04 Jeroen Roovers wrote:
> On Fri, 12 Apr 2013 16:08:10 -0400 Mike Frysinger wrote:
> > that you remember. i think it's more likely you copy & pasted some
> > line a long time ago than baselayout modified it for you.
>
> Exactly, but where did that come from?
probably worthwhile to track down to better understand, but i don't think the
answer will change the result
> > two people who have installs that are a decade old doesn't incline me
> > to write a news entry. not when the ebuild itself contains a sanity
> > check that triggers exactly as needed and includes an error message
> > explaining things. we aren't talking about an upgrade here that will
> > silently & accidentally break your box on next boot (like udev &
> > friends), or will break running programs (like SONAME bumps, although
> > that's a much less of a problem now that portage handles things
> > automatically).
>
> I have been looking through old copies of the Handbook in the last
> hour, assuming the fstab entry may have been included there at some
> point. I haven't done anything like a thorough search, but I assume it
> may have slipped into the handbook at some point and was later removed
> (as some CVS log entries from 2004 seem to suggest).
it's at times like this i wish we had a git repo. `git log -p -C -M` is great
at tracking this sort of stuff down.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-dev] glibc: pt_chown setuid going away by default
2013-04-17 18:35 ` Mike Frysinger
@ 2013-04-17 18:36 ` Rich Freeman
2013-04-17 20:43 ` [gentoo-dev] " Duncan
2013-04-20 6:55 ` [gentoo-dev] " Sergei Trofimovich
1 sibling, 1 reply; 22+ messages in thread
From: Rich Freeman @ 2013-04-17 18:36 UTC (permalink / raw
To: gentoo-dev
On Wed, Apr 17, 2013 at 2:35 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> it's at times like this i wish we had a git repo. `git log -p -C -M` is great
> at tracking this sort of stuff down.
I don't want to hijack this thread, but I don't believe we have a
tracker for the migration of docs / website / etc to git. Is there
simply not interest? I'm not sure what complexities exist compared to
the portage migration.
Rich
^ permalink raw reply [flat|nested] 22+ messages in thread
* [gentoo-dev] Re: glibc: pt_chown setuid going away by default
2013-04-17 18:36 ` Rich Freeman
@ 2013-04-17 20:43 ` Duncan
0 siblings, 0 replies; 22+ messages in thread
From: Duncan @ 2013-04-17 20:43 UTC (permalink / raw
To: gentoo-dev
Rich Freeman posted on Wed, 17 Apr 2013 14:36:59 -0400 as excerpted:
> On Wed, Apr 17, 2013 at 2:35 PM, Mike Frysinger <vapier@gentoo.org>
> wrote:
>> it's at times like this i wish we had a git repo. `git log -p -C -M`
>> is great at tracking this sort of stuff down.
>
> I don't want to hijack this thread, but I don't believe we have a
> tracker for the migration of docs / website / etc to git. Is there
> simply not interest? I'm not sure what complexities exist compared to
> the portage migration.
I'd guess that would be upto the docs team, etc. And while they might
conceivably be interested, it's evidently not a priority or (as
individual projects lack the complicating issues of the tree in general)
they'd probably have it done by now, just as the various other projects
already running git-based overlays or whatever.
The main tree is the big one, tho. With many projects already running
git internally, once the tree switches over, it's probably pretty safe to
assume everything else (possibly with an occasional exception) will as
well.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [gentoo-dev] glibc: pt_chown setuid going away by default
2013-04-17 18:35 ` Mike Frysinger
2013-04-17 18:36 ` Rich Freeman
@ 2013-04-20 6:55 ` Sergei Trofimovich
1 sibling, 0 replies; 22+ messages in thread
From: Sergei Trofimovich @ 2013-04-20 6:55 UTC (permalink / raw
To: gentoo-dev; +Cc: vapier
[-- Attachment #1: Type: text/plain, Size: 4000 bytes --]
On Wed, 17 Apr 2013 14:35:27 -0400
Mike Frysinger <vapier@gentoo.org> wrote:
> On Saturday 13 April 2013 13:06:04 Jeroen Roovers wrote:
> > On Fri, 12 Apr 2013 16:08:10 -0400 Mike Frysinger wrote:
> > > that you remember. i think it's more likely you copy & pasted some
> > > line a long time ago than baselayout modified it for you.
> >
> > Exactly, but where did that come from?
>
> probably worthwhile to track down to better understand, but i don't think the
> answer will change the result
>
> > > two people who have installs that are a decade old doesn't incline me
> > > to write a news entry. not when the ebuild itself contains a sanity
> > > check that triggers exactly as needed and includes an error message
> > > explaining things. we aren't talking about an upgrade here that will
> > > silently & accidentally break your box on next boot (like udev &
> > > friends), or will break running programs (like SONAME bumps, although
> > > that's a much less of a problem now that portage handles things
> > > automatically).
> >
> > I have been looking through old copies of the Handbook in the last
> > hour, assuming the fstab entry may have been included there at some
> > point. I haven't done anything like a thorough search, but I assume it
> > may have slipped into the handbook at some point and was later removed
> > (as some CVS log entries from 2004 seem to suggest).
>
> it's at times like this i wish we had a git repo. `git log -p -C -M` is great
> at tracking this sort of stuff down.
> -mike
I usually rsync locally cvs tree and then convert it to git:
rsync://anonvcs.gentoo.org/vcs-public-cvsroot/{CVSROOT,gentoo/xml/}
cvsps --root :local:/path/to/ --fast-export gentoo/xml/htdocs | git fast-import
Takes around 5 minutes to convert.
$ git log --stat -S ' devpts ' # shows that 'devpts' suggestion comes from an LVM guide:
commit 658b3ab06b4919f102efaffe756b8b6c1d378fd0
Author: drobbins <drobbins>
Date: Sat Nov 9 18:47:44 2002 +0000
try #10030
doc/cz/altinstall.xml | 360 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
doc/en/altinstall.xml | 350 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 710 insertions(+)
and it is still there.
$ git grep devpts:
doc/ca/altinstall.xml:none on /dev/pts type devpts (rw,gid=5,mode=620)
doc/da/altinstall.xml:none on /dev/pts type devpts (rw,gid=5,mode=620)
doc/de/altinstall.xml:none on /dev/pts type devpts (rw,gid=5,mode=620)
doc/en/altinstall.xml:none on /dev/pts type devpts (rw,gid=5,mode=620)
doc/en/articles/lvm-p2.xml:none /dev/pts devpts mode=620 0 0
doc/es/altinstall.xml:none on /dev/pts type devpts (rw,gid=5,mode=620)
doc/es/articles/lvm-p2.xml:none /dev/pts devpts mode=620 0 0
doc/fr/altinstall.xml:none on /dev/pts type devpts (rw,gid=5,mode=620)
doc/fr/selinux-uml-guide.xml:none /dev/pts devpts gid=5,mode=620 0 0
doc/id/altinstall.xml:none on /dev/pts type devpts (rw,gid=5,mode=620)
doc/it/altinstall.xml:none on /dev/pts type devpts (rw,gid=5,mode=620)
doc/it/articles/lvm-p2.xml:none /dev/pts devpts mode=620 0 0
doc/ja/altinstall.xml:none on /dev/pts type devpts (rw,gid=5,mode=620)
doc/nl/altinstall.xml:none on /dev/pts type devpts (rw,gid=5,mode=620)
doc/pl/altinstall.xml:none on /dev/pts type devpts (rw,gid=5,mode=620)
doc/pt_br/altinstall.xml:none on /dev/pts type devpts (rw,gid=5,mode=620)
doc/ru/altinstall.xml:none on /dev/pts type devpts (rw,gid=5,mode=620)
doc/vi/altinstall.xml:none on /dev/pts type devpts (rw,gid=5,mode=620)
doc/zh_cn/articles/lvm-p2.xml:none /dev/pts devpts mode=620 0 0
Looks like many are incorrect including this:
http://www.gentoo.org/doc/en/articles/lvm-p2.xml
HTH
--
Sergei
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~2013-04-20 6:56 UTC | newest]
Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-10 5:15 [gentoo-dev] glibc: pt_chown setuid going away by default Mike Frysinger
2013-04-10 16:26 ` "Paweł Hajdan, Jr."
2013-04-10 18:56 ` Rich Freeman
2013-04-10 19:32 ` Mike Frysinger
2013-04-11 2:27 ` [gentoo-dev] " Duncan
2013-04-11 15:43 ` [gentoo-dev] " James Cloos
2013-04-11 16:49 ` Mike Frysinger
2013-04-12 2:19 ` [gentoo-dev] " Duncan
2013-04-12 20:05 ` Mike Frysinger
2013-04-12 19:41 ` [gentoo-dev] " James Cloos
2013-04-12 20:08 ` Mike Frysinger
2013-04-13 17:06 ` Jeroen Roovers
2013-04-14 23:02 ` James Cloos
2013-04-17 18:35 ` Mike Frysinger
2013-04-17 18:36 ` Rich Freeman
2013-04-17 20:43 ` [gentoo-dev] " Duncan
2013-04-20 6:55 ` [gentoo-dev] " Sergei Trofimovich
2013-04-12 6:50 ` Maxim Kammerer
2013-04-12 16:22 ` Mike Frysinger
2013-04-12 17:20 ` Maxim Kammerer
2013-04-12 18:54 ` Mike Gilbert
2013-04-12 19:56 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox