[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-users] gpsd/udev behavior
From: |
Eric S. Raymond |
Subject: |
Re: [gpsd-users] gpsd/udev behavior |
Date: |
Thu, 24 May 2012 17:24:42 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Paul Fox <address@hidden>:
> manually changing the device permissions from 660 to 666 makes
> everything work.
>
> the machine is an OLPC XO laptop, so it's entirely possible that it's
> a problem with our version of F17, but we don't really touch udev
> much. (i say "we", because my work address is @laptop.org.) any tips
> how this _should_ be working?
This is probably a distro-specific issue brought about by the choice
of default ownership or default permissions on the TTY devices. Or it
could be the result of a minor packaging error. See the code near the
the following comment in gpsd.c
/*
* Drop privileges. Up to now we've been running as root. Instead,
* set the user ID to 'nobody' (or whatever the --enable-gpsd-user
* is) and the group ID to the owning group of a prototypical TTY
* device. This limits the scope of any compromises in the code.
* It requires that all GPS devices have their group read/write
* permissions set.
*/
I'd explain in detail, but I think the comment and code are clear enough.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
- [gpsd-users] gpsd/udev behavior, Paul Fox, 2012/05/21
- Re: [gpsd-users] gpsd/udev behavior,
Eric S. Raymond <=
- Re: [gpsd-users] gpsd/udev behavior, Paul Fox, 2012/05/25
- Re: [gpsd-users] gpsd/udev behavior, Eric S. Raymond, 2012/05/29
- Re: [gpsd-users] gpsd/udev behavior, Paul Fox, 2012/05/29
- Re: [gpsd-users] gpsd/udev behavior, Eric S. Raymond, 2012/05/29
- Re: [gpsd-users] gpsd/udev behavior, Paul Fox, 2012/05/29
- Re: [gpsd-users] gpsd/udev behavior, Eric S. Raymond, 2012/05/29
- Re: [gpsd-users] gpsd/udev behavior, Paul Fox, 2012/05/29