[opensuse-security] ACLs, HAL and serial devices (was: HAL and serial devices)
Hello, inspired by the thread "Want to could use /dev/ttyS0 as user" on the opensuse-factory maling list, I tried to figure out whether access to /dev/ttyS0 can be granted by HAL/resmgr (since this works fine with the alsa devices). According to /etc/hal/fdi/policy/90osvendor/80-resmgr.fdi, access to serial devices should be granted to "members" of the resmgr modem class (desktop users are not "member" of this class by default). But using 10.3, I cannot even find any serial device via HAL: jan@karl:~> hal-find-by-capability --capability serial jan@karl:~> Obviously, udev recognizes my /dev/ttyS0: jan@karl:~> udevinfo --query=all --name=/dev/ttyS0 P: /devices/platform/serial8250/tty/ttyS0 N: ttyS0 I do not need access to /dev/ttyS0, but I do want to learn more about HAL. :) Gruß Jan -- A fail-safe circuit will destroy all others. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-security+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-security+help@opensuse.org
Jan Ritzerfeld wrote:
inspired by the thread "Want to could use /dev/ttyS0 as user" on the opensuse-factory maling list, I tried to figure out whether access to /dev/ttyS0 can be granted by HAL/resmgr (since this works fine with the alsa devices). According to /etc/hal/fdi/policy/90osvendor/80-resmgr.fdi, access to serial devices should be granted to "members" of the resmgr modem class (desktop users are not "member" of this class by default).
See /usr/share/doc/packages/resmgr/README, section "How do I grant users permanent access to serial ports like ttyS0, ttyACM0?"
But using 10.3, I cannot even find any serial device via HAL: jan@karl:~> hal-find-by-capability --capability serial jan@karl:~> Obviously, udev recognizes my /dev/ttyS0: jan@karl:~> udevinfo --query=all --name=/dev/ttyS0 P: /devices/platform/serial8250/tty/ttyS0 N: ttyS0
That's weird. Normally hal should list that port indeed. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-security+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-security+help@opensuse.org
Am Dienstag, 19. August 2008 schrieb Ludwig Nussel:
Jan Ritzerfeld wrote: [...] See /usr/share/doc/packages/resmgr/README, section "How do I grant users permanent access to serial ports like ttyS0, ttyACM0?"
Many thanks. I mistakenly thought that resmgr is somewhat deprecated and thus I did not look into the most obvious documentation. X-)
But using 10.3, I cannot even find any serial device via HAL: jan@karl:~> hal-find-by-capability --capability serial jan@karl:~> Obviously, udev recognizes my /dev/ttyS0: jan@karl:~> udevinfo --query=all --name=/dev/ttyS0 P: /devices/platform/serial8250/tty/ttyS0 N: ttyS0
That's weird. Normally hal should list that port indeed.
This happens with 11.0, too. Should I file a bug report? Gruß Jan -- Every solution breeds new problems. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-security+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-security+help@opensuse.org
Jan Ritzerfeld wrote:
Am Dienstag, 19. August 2008 schrieb Ludwig Nussel:
Jan Ritzerfeld wrote:
But using 10.3, I cannot even find any serial device via HAL: jan@karl:~> hal-find-by-capability --capability serial jan@karl:~> Obviously, udev recognizes my /dev/ttyS0: jan@karl:~> udevinfo --query=all --name=/dev/ttyS0 P: /devices/platform/serial8250/tty/ttyS0 N: ttyS0
That's weird. Normally hal should list that port indeed.
This happens with 11.0, too. Should I file a bug report?
Sure. Don't mention device permissions though otherwise the bug ends up at my desk ;-) If ttyS0 isn't known to hal it's likely a bug in hal. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-security+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-security+help@opensuse.org
Am Freitag, 29. August 2008 schrieb Ludwig Nussel:
Jan Ritzerfeld wrote:
Am Dienstag, 19. August 2008 schrieb Ludwig Nussel:
Jan Ritzerfeld wrote:
But using 10.3, I cannot even find any serial device via HAL: jan@karl:~> hal-find-by-capability --capability serial jan@karl:~> Obviously, udev recognizes my /dev/ttyS0: jan@karl:~> udevinfo --query=all --name=/dev/ttyS0 P: /devices/platform/serial8250/tty/ttyS0 N: ttyS0
That's weird. Normally hal should list that port indeed.
This happens with 11.0, too. Should I file a bug report?
Sure. Don't mention device permissions though otherwise the bug ends up at my desk ;-)
:-D
If ttyS0 isn't known to hal it's likely a bug in hal.
Does it matter that this happens using a not-docked ThinkPad whose ttyS0 is physically only available when docked? I do not think so since it is recognized by udev, though ... Anyway, I first wanted to check this using a 11.1 Beta, but my ThinkPad has got a 82566MC Gigabit Network controller. Thus, I will try Beta3 if there were no more reports of bricked notebooks. Gruß Jan -- The first rule of intelligent tinkering is to save all the parts. -- To unsubscribe, e-mail: opensuse-security+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-security+help@opensuse.org
participants (2)
-
Jan Ritzerfeld
-
Ludwig Nussel