[SM-Commit] PERFORCE change 79110 by Juuso Alasuutari for review

Flavien Bridault vlaaad at sourcemage.org
Thu May 11 13:24:18 EDT 2006


Le jeudi 11 mai 2006 à 19:13 +0200, Arwed von Merkatz a écrit :
> On Thu, May 11, 2006 at 07:08:49PM +0200, Flavien Bridault wrote:
> [...]
> > > -# console
> > > -KERNEL=="console", 	NAME="%k", MODE="0600"
> > > -KERNEL=="ptmx", 	NAME="%k", MODE="0666"
> > > -KERNEL=="tty",		NAME="%k", MODE="0666"
> > > -
> > >  # tty devices
> > > -KERNEL=="ttyS[0-9]*", 	NAME="%k", SYMLINK="tts/%n"
> > > -KERNEL=="ttyUSB[0-9]*", NAME="%k", SYMLINK="tts/USB%n", MODE="0660"
> > > +KERNEL=="console", 	NAME="%k", GROUP="tty", MODE="0600"
> > > +KERNEL=="tty",		NAME="%k", GROUP="tty", MODE="0666"
> > > +KERNEL=="tty[0-9]*", 	NAME="vc/%n",  SYMLINK="%k", GROUP="tty"
> > > +KERNEL=="ttyS[0-9]*", 	NAME="tts/%n", SYMLINK="%k", GROUP="tty"
> > > +KERNEL=="ttyUSB[0-9]*", NAME="tts/USB%n", SYMLINK="%k", GROUP="tty", MODE="0660"
> > >  KERNEL=="ippp0", 	NAME="%k", GROUP="tty"
> > >  KERNEL=="isdn*", 	NAME="%k", GROUP="tty"
> > >  KERNEL=="dcbri*", 	NAME="%k", GROUP="tty"
> > >  KERNEL=="ircomm*", 	NAME="%k", GROUP="tty"
> > >  
> > > +# pty devices
> > > +KERNEL=="ptmx", 		NAME="%k", GROUP="tty", MODE="0666"
> > > +KERNEL=="pty[p-za-e][0-9a-f]*", NAME="pty/m%n", SYMLINK="%k", GROUP="tty"
> > > +KERNEL=="tty[p-za-e][0-9a-f]*", NAME="pty/s%n", SYMLINK="%k", GROUP="tty"
> > > +
> > It seems there is a problem here, I can't no longer open a graphical
> > console (even xterm, only xemacs shell works ;-) ). I put my user in the
> > tty group but that don't solve the problem.
> > Any idea ?
> 
> As long as you're in the tty group it should work. But I don't think
> ptmx should be limited there. The whole point of /dev/ptmx is that it
> provides a way for _users_ to create virtual terminal devices that will
> be owned by them.
> 
Here is the error I get (from xemacs shell...) :

[19:22:38]vlaaad at Frodon ~ $ xterm
xterm: Error 32, errno 2: Aucun fichier ou répertoire de ce type
Reason: get_pty: not enough ptys

This is maybe not a permission issue ?

> 
> > > +# vc devices
> > > +KERNEL=="vcs", 		NAME="vcc/0", 	SYMLINK="%k", GROUP="tty"
> > > +KERNEL=="vcs[0-9]*", 	NAME="vcc/%n", 	SYMLINK="%k", GROUP="tty"
> > > +KERNEL=="vcsa", 	NAME="vcc/a0", 	SYMLINK="%k", GROUP="tty"
> > > +KERNEL=="vcsa[0-9]*", 	NAME="vcc/a%n", SYMLINK="%k", GROUP="tty"
> > > +
> > > +# capi devices
> > > +KERNEL="capi",          NAME="capi20", SYMLINK="isdn/capi20"
> > > +KERNEL="capi*",         NAME="capi/%n"
> > > +
> > >  # cpu devices
> > >  KERNEL=="cpu[0-9]*", 	NAME="cpu/%n/cpuid"
> > >  KERNEL=="msr[0-9]*", 	NAME="cpu/%n/msr"
> > > @@ -150,12 +174,12 @@
> > >  # ls120 devices
> > >  KERNEL=="ls120", 	NAME="%k", GROUP="disk"
> > >  
> > > -# printer
> > > +# printer (usb printer rule must be before the rest)
> > > +BUS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k", GROUP="lp", MODE="0660"
> > >  KERNEL=="lp*", 		NAME="%k", GROUP="lp", MODE="0660"
> > >  KERNEL=="irlpt", 	NAME="%k", GROUP="lp", MODE="0660"
> > >  KERNEL=="usblp", 	NAME="%k", GROUP="lp", MODE="0660"
> > >  KERNEL=="parport*", 	NAME="%k", GROUP="lp", MODE="0660"
> > > -BUS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k", GROUP="lp", MODE="0660"
> > >  
> > >  # v4l devices
> > >  KERNEL=="video[0-9]*", 	NAME="v4l/video%n", SYMLINK="video%n", GROUP="video", MODE="0660"
> > > @@ -172,6 +196,9 @@
> > >  
> > >  # network devices
> > >  KERNEL=="tun", 		NAME="net/%k"
> > > +KERNEL=="ippp*", 	NAME="net/%k", SYMLINK="%k", MODE="0644"
> > > +KERNEL=="ipstate*", 	NAME="net/%k", SYMLINK="%k", MODE="0660"
> > > +KERNEL=="spx", 		NAME="net/%k", SYMLINK="%k", MODE="0644"
> > >  
> > >  # diskonkey devices
> > >  KERNEL=="diskonkey*", 	NAME="%k", GROUP="disk"
> > > _______________________________________________
> > > SM-Commit mailing list
> > > SM-Commit at lists.ibiblio.org
> > > http://lists.ibiblio.org/mailman/listinfo/sm-commit
> > > 
> > -- 
> > Flavien Bridault
> > 
> > Disk, Graphics, Graphics-libs sections Guru
> > Source Mage GNU/Linux - http://www.sourcemage.org
> > 
> > irc: vlaaad
> > jabber: vlaaad at amessage.be
> 
> 
> 
> > _______________________________________________
> > SM-Commit mailing list
> > SM-Commit at lists.ibiblio.org
> > http://lists.ibiblio.org/mailman/listinfo/sm-commit
> 
> 
-- 
Flavien Bridault

Disk, Graphics, Graphics-libs sections Guru
Source Mage GNU/Linux - http://www.sourcemage.org

irc: vlaaad
jabber: vlaaad at amessage.be
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://lists.ibiblio.org/pipermail/sm-commit/attachments/20060511/a3533947/attachment.bin 


More information about the SM-Commit mailing list