Re: permissions of /proc/tty/driver

2005-01-19 Thread Christoph Hellwig
On Sun, Jan 16, 2005 at 02:13:46PM +0100, Thomas Viehmann wrote: > Hi. > > Christoph Hellwig wrote: > >Counter-question: What information is available in > >/proc/tty/driver/usbserial but not in sysfs? > > Thanks for this hint, is there a way of finding vendor and product ids > of all ttyUSB de

Re: permissions of /proc/tty/driver

2005-01-17 Thread Alan Cox
On Llu, 2005-01-17 at 08:14, Arjan van de Ven wrote: > On Sun, 2005-01-16 at 23:26 +0100, Christoph Hellwig wrote: > > I know. But that doesn't explain why we don't keep strict permissions > > only on that file but on the directory. > > ls -la on the file gives you the size maybe ? I went for a

Re: permissions of /proc/tty/driver

2005-01-17 Thread Arjan van de Ven
On Sun, 2005-01-16 at 23:26 +0100, Christoph Hellwig wrote: > On Sun, Jan 16, 2005 at 09:11:03PM +, Alan Cox wrote: > > On Sul, 2005-01-16 at 12:04, Christoph Hellwig wrote: > > > > (where /proc/tty/driver/serial is mentioned as leaking sensitive > > > > information), to me the contents of usb

Re: permissions of /proc/tty/driver

2005-01-16 Thread Christoph Hellwig
On Sun, Jan 16, 2005 at 09:11:03PM +, Alan Cox wrote: > On Sul, 2005-01-16 at 12:04, Christoph Hellwig wrote: > > > (where /proc/tty/driver/serial is mentioned as leaking sensitive > > > information), to me the contents of usbserial look innocent enough. > > > Do you have any hints on what mig

Re: permissions of /proc/tty/driver

2005-01-16 Thread Alan Cox
On Sul, 2005-01-16 at 12:04, Christoph Hellwig wrote: > > (where /proc/tty/driver/serial is mentioned as leaking sensitive > > information), to me the contents of usbserial look innocent enough. > > Do you have any hints on what might be a good solution? > > The permissions on the directory look

Re: permissions of /proc/tty/driver

2005-01-16 Thread Sergey Vlasov
On Sun, 16 Jan 2005 14:13:46 +0100, Thomas Viehmann wrote: > Christoph Hellwig wrote: >> Counter-question: What information is available in >> /proc/tty/driver/usbserial but not in sysfs? > > Thanks for this hint, is there a way of finding vendor and product ids > of all ttyUSB devices better t

Re: permissions of /proc/tty/driver

2005-01-16 Thread Thomas Viehmann
Hi. Christoph Hellwig wrote: Counter-question: What information is available in /proc/tty/driver/usbserial but not in sysfs? Thanks for this hint, is there a way of finding vendor and product ids of all ttyUSB devices better than looking for /sys/bus/usb/devices/*-*/*-*:*/ttyUSB* and then ckeckin

Re: permissions of /proc/tty/driver

2005-01-16 Thread Christoph Hellwig
On Fri, Jan 14, 2005 at 06:45:25PM +0100, Thomas Viehmann wrote: > Hi. > > This may not be stritly on topic, but I couln't figure out a better > place to ask: > > During the packaging of an application, I have the following problem: > I would like to run a daemon as non-root. The daemon likes to