Re: [systemd-devel] Mounting /dev/pts

2011-01-03 Thread Wulf C. Krueger
Hello Lennart, > OK, commited a patch now which semi-hardcodes tty=5. It can be overriden > with --with-tty-gid= on compile time. However, at this point given that > all distros use tty=5 somebody doing this for tty!=5 is a nasty boy, and > I'll tell his mom. > This should fix your issues. Please

Re: [systemd-devel] Mounting /dev/pts

2011-01-03 Thread Lennart Poettering
On Tue, 04.01.11 01:23, Wulf C. Krueger (philant...@exherbo.org) wrote: > > Hmm, I normally would be happy to do that, but I am a bit concerned > > about the gid=tty parameter. Before we pass that off to the kernel we'd > > have to look that up and pass a numeric gid on. > > Yes, that's what I f

Re: [systemd-devel] Mounting /dev/pts

2011-01-03 Thread Lennart Poettering
On Tue, 04.01.11 01:33, Lennart Poettering (lenn...@poettering.net) wrote: > On Mon, 03.01.11 22:24, Gustavo Sverzut Barbieri (barbi...@profusion.mobi) > wrote: > > > > Anybody has a good reason why we shouldn't solve this with a > > > compile-time NSS lookup? > > > > don't complicate things, l

Re: [systemd-devel] Mounting /dev/pts

2011-01-03 Thread Lennart Poettering
On Mon, 03.01.11 22:24, Gustavo Sverzut Barbieri (barbi...@profusion.mobi) wrote: > > Anybody has a good reason why we shouldn't solve this with a > > compile-time NSS lookup? > > don't complicate things, let's keep our regular "do the simple way, > let's people report corner cases". It was done

Re: [systemd-devel] Mounting /dev/pts

2011-01-03 Thread Gustavo Sverzut Barbieri
On Mon, Jan 3, 2011 at 10:22 PM, Lennart Poettering wrote: > On Tue, 04.01.11 01:14, Michael Biebl (mbi...@gmail.com) wrote: > >> > Hmm, I normally would be happy to do that, but I am a bit concerned >> > about the gid=tty parameter. Before we pass that off to the kernel we'd >> > have to look tha

Re: [systemd-devel] Mounting /dev/pts

2011-01-03 Thread Wulf C. Krueger
> > noexec,nosuid,gid=tty,mode=0620. [...] > > I guess Wulf's point isn't, that options in /etc/fstab are not applied > > but rather that systemd should mount /dev/pts with those options. Indeed. Thanks for point it out, Michael. > Hmm, I normally would be happy to do that, but I am a bit concern

Re: [systemd-devel] Mounting /dev/pts

2011-01-03 Thread Lennart Poettering
On Tue, 04.01.11 01:14, Michael Biebl (mbi...@gmail.com) wrote: > > Hmm, I normally would be happy to do that, but I am a bit concerned > > about the gid=tty parameter. Before we pass that off to the kernel we'd > > have to look that up and pass a numeric gid on. But doing NSS queries > > from PID

Re: [systemd-devel] [PATCH] systemctl: implement auto-pager a la git

2011-01-03 Thread Lennart Poettering
On Sun, 02.01.11 14:07, Miklos Vajna (vmik...@frugalware.org) wrote: > On Sun, Jan 02, 2011 at 08:24:02AM +0100, Tollef Fog Heen > wrote: > > | + if (!pager) > > | + pager = "less"; > > > > Doesn't other distributions have sensible-pager(1) or pager(1)? Also, > > at least on Debian, les

Re: [systemd-devel] [PATCH] systemctl: implement auto-pager a la git

2011-01-03 Thread Miklos Vajna
On Tue, Jan 04, 2011 at 01:10:48AM +0100, Lennart Poettering wrote: > I had merged this already shortly after you posted it and made some > minor changes to it before you sent the updated patch, but I think I > added everything you changed later on, too. Tollef, Miklos, could you > please check i

Re: [systemd-devel] [PATCH] systemctl: implement auto-pager a la git

2011-01-03 Thread Lennart Poettering
On Sun, 02.01.11 08:24, Tollef Fog Heen (tfh...@err.no) wrote: > > ]] Miklos Vajna > > Hi, > > | I hope the subjects describes the patch enough - though I would like to > | point out one detail. I guess there can be great flames about the > | default value of LESS if it's unset - I took FRSX a

Re: [systemd-devel] Mounting /dev/pts

2011-01-03 Thread Michael Biebl
2011/1/4 Lennart Poettering : > On Tue, 04.01.11 01:01, Michael Biebl (mbi...@gmail.com) wrote: > >> >> 2011/1/4 Lennart Poettering : >> > On Tue, 04.01.11 00:24, Wulf C. Krueger (philant...@exherbo.org) wrote: >> > >> >> Hello, >> >> >> >> currently, /dev/pts is mounted without the usual options b

Re: [systemd-devel] [PATCH] systemctl: implement auto-pager a la git

2011-01-03 Thread Lennart Poettering
On Sun, 02.01.11 00:25, Miklos Vajna (vmik...@frugalware.org) wrote: > I hope the subjects describes the patch enough - though I would like to > point out one detail. I guess there can be great flames about the > default value of LESS if it's unset - I took FRSX as that's what git > uses right now

Re: [systemd-devel] Mounting /dev/pts

2011-01-03 Thread Lennart Poettering
On Tue, 04.01.11 01:01, Michael Biebl (mbi...@gmail.com) wrote: > > 2011/1/4 Lennart Poettering : > > On Tue, 04.01.11 00:24, Wulf C. Krueger (philant...@exherbo.org) wrote: > > > >> Hello, > >> > >> currently, /dev/pts is mounted without the usual options by systemd. > > > > Normally, additional

Re: [systemd-devel] Mounting /dev/pts

2011-01-03 Thread Michael Biebl
2011/1/4 Wulf C. Krueger : > > I have tried to come up with a patch myself but failed disgracefully, I'm > afraid. FWIW, the options are hard coded in src/mount-setup.c [1] { "devpts", "/dev/pts", "devpts", NULL, MS_NOSUID|MS_NOEXEC, false }, [1] htt

Re: [systemd-devel] Mounting /dev/pts

2011-01-03 Thread Michael Biebl
2011/1/4 Lennart Poettering : > On Tue, 04.01.11 00:24, Wulf C. Krueger (philant...@exherbo.org) wrote: > >> Hello, >> >> currently, /dev/pts is mounted without the usual options by systemd. > > Normally, additional parameters listed in /etc/fstab should be applied > on boot with remount-api-vfs.se

Re: [systemd-devel] Mounting /dev/pts

2011-01-03 Thread Lennart Poettering
On Tue, 04.01.11 00:24, Wulf C. Krueger (philant...@exherbo.org) wrote: > Hello, > > currently, /dev/pts is mounted without the usual options by systemd. > > If /dev/pts is not mounted with the GID of the tty group, glibc (it assumes > tty as the group name, too) runs pt_chown which is generall

[systemd-devel] Mounting /dev/pts

2011-01-03 Thread Wulf C. Krueger
Hello, currently, /dev/pts is mounted without the usual options by systemd. If /dev/pts is not mounted with the GID of the tty group, glibc (it assumes tty as the group name, too) runs pt_chown which is generally undesirable since it needs to be setuid (and is owned by root) and according to gr

Re: [systemd-devel] Mandriva support for systemd

2011-01-03 Thread Guilherme Moro
On 01/01/2011 05:09 PM, Lennart Poettering wrote: On Tue, 28.12.10 19:48, Guilherme Moro (guilhe...@mandriva.com.br) wrote: Heya, I'm a developer from Mandriva and I wanna let you all now about the news from Mandriva. We decided to use systemd as the default init for our next release 201