Re: [gentoo-dev] glibc: pt_chown setuid going away by default

2013-04-19 Thread Sergei Trofimovich
On Wed, 17 Apr 2013 14:35:27 -0400 Mike Frysinger 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 mod

Re: [gentoo-dev] glibc: pt_chown setuid going away by default

2013-04-17 Thread Rich Freeman
On Wed, Apr 17, 2013 at 2:35 PM, Mike Frysinger 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

Re: [gentoo-dev] glibc: pt_chown setuid going away by default

2013-04-17 Thread Mike Frysinger
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? prob

Re: [gentoo-dev] glibc: pt_chown setuid going away by default

2013-04-14 Thread James Cloos
> "JR" == Jeroen Roovers writes: JR> On Fri, 12 Apr 2013 16:08:10 -0400 JR> 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. JR> Exactly, but where did that come from? If it didn't com

Re: [gentoo-dev] glibc: pt_chown setuid going away by default

2013-04-13 Thread Jeroen Roovers
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? > two people who have installs that are a decade old doesn't incline

Re: [gentoo-dev] glibc: pt_chown setuid going away by default

2013-04-12 Thread Mike Frysinger
On Friday 12 April 2013 15:41:55 James Cloos wrote: > > "MF" == Mike Frysinger 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

Re: [gentoo-dev] glibc: pt_chown setuid going away by default

2013-04-12 Thread Mike Frysinger
On Friday 12 April 2013 13:20:11 Maxim Kammerer wrote: > On Fri, Apr 12, 2013 at 7:22 PM, Mike Frysinger 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

Re: [gentoo-dev] glibc: pt_chown setuid going away by default

2013-04-12 Thread James Cloos
> "MF" == Mike Frysinger 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

Re: [gentoo-dev] glibc: pt_chown setuid going away by default

2013-04-12 Thread Mike Gilbert
On Fri, Apr 12, 2013 at 1:20 PM, Maxim Kammerer wrote: > On Fri, Apr 12, 2013 at 7:22 PM, Mike Frysinger 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 y

Re: [gentoo-dev] glibc: pt_chown setuid going away by default

2013-04-12 Thread Maxim Kammerer
On Fri, Apr 12, 2013 at 7:22 PM, Mike Frysinger 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

Re: [gentoo-dev] glibc: pt_chown setuid going away by default

2013-04-12 Thread Mike Frysinger
On Friday 12 April 2013 02:50:20 Maxim Kammerer wrote: > On Wed, Apr 10, 2013 at 8:15 AM, 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'l

Re: [gentoo-dev] glibc: pt_chown setuid going away by default

2013-04-11 Thread Maxim Kammerer
On Wed, Apr 10, 2013 at 8:15 AM, 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`. What about chroot builds? I have /dev/pt

Re: [gentoo-dev] glibc: pt_chown setuid going away by default

2013-04-11 Thread Mike Frysinger
On Thursday 11 April 2013 11:43:59 James Cloos wrote: > > "MF" == Mike Frysinger 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 tha

Re: [gentoo-dev] glibc: pt_chown setuid going away by default

2013-04-11 Thread James Cloos
> "MF" == Mike Frysinger 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

Re: [gentoo-dev] glibc: pt_chown setuid going away by default

2013-04-10 Thread Mike Frysinger
On Wednesday 10 April 2013 14:56:26 Rich Freeman wrote: > On Wed, Apr 10, 2013 at 1:15 AM, Mike Frysinger 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

Re: [gentoo-dev] glibc: pt_chown setuid going away by default

2013-04-10 Thread Rich Freeman
On Wed, Apr 10, 2013 at 1:15 AM, Mike Frysinger 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

Re: [gentoo-dev] glibc: pt_chown setuid going away by default

2013-04-10 Thread Paweł Hajdan, Jr.
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

[gentoo-dev] glibc: pt_chown setuid going away by default

2013-04-09 Thread Mike Frysinger
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 kn