From: Lindsay Haisley <fmouse-gentoo@fmp.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: Bug#286040: please allow permissions.d to follow symlinks
Date: Mon, 20 Dec 2004 17:56:11 +0000 [thread overview]
Message-ID: <20041220175611.GC25934@fmp.com> (raw)
In-Reply-To: <20041217083115.GA4050@wonderland.linux.it>
Thus spake martin f krafft on Mon, Dec 20, 2004 at 03:39:50AM CST
> Answering multiple mails in one... scroll down...
>
>
>
> also sprach Lindsay Haisley <fmouse-gentoo@fmp.com> [2004.12.18.0518 +0100]:
> > I really don't give a rip about "policy-based approaches".
>
> I hope for your sake that you will never have more users, or that
> you have plenty of time available to make sure that you keep the
> system running consistently and securly.
Thanks for your concern, Martin ;-) I actually appreciate sensible policy
design, and use and recommend Debian to people because, among other things,
it's very solid in this regard. My point, which perhaps I made overly
blunt, is that it's very easy from a developer's point of view to get away
from the needs of real-life in-the-trenches system administration. I've
seen this happen too often in otherwise excellent FOSS projects.
> > What I _can_ tell you, is that when I encounter a new technology
> > that I need to use, I approach it in a pretty logical fashion, and
> > expect the implementation and documentation for it to be free of
> > needless redundancies.
>
> What is not logical about a line
>
> flash:root:flash:0660
>
> in permissions.d? If you would not know about what permissions.d is,
> what could you induce from
>
> - the directory name
> - the syntax
> - the name "flash"
> - the actual stat() data?
This point is well made, but pretty much the same could be said about a
rules file. The question that comes to my mind is, what is the most common
reason that anyone would want to change the device data structure in the
first place. Generally, in my experience, it's because a new device has
been added to the system. The first place one will probably want to go is
to an appropriate udev rules file to set up something sensible in /dev for
the new device, and for this, one-stop shopping is a plus. I would guess
that adjusting owner/permissions on existing device nodes is a secondary
task.
> > I see no problem with having owner, group and mode spec'd in udev rules
> > files.
>
> I wasn't saying it's a problem. Just that it's better and easier to
> administer if you separate naming and permissions. We run a couple
> system with separate sysadmins and policy people. It's *much* easier
> to be able to give the first group write-access to the rules and the
> second group access to the permissions.
There are two problems. The first is that, in the current udev
implementation, OWNER, GROUP, MODE in a rules file override settings in
permissions.d. The second is the issue of following symlinks, which has
been discussed at length. There should be no need to run ls -l on /dev to
find out if a device node is a symlink or not, but that discussion is
closed, I believe.
> > Certainly this furthers the the purpose of centralization.
>
> uh, and centralisation is what we should all strive for blindly,
> right?
Well the best of all possible worlds would be to make the use of
permissions.d optional. Ideal design would be such that commenting out
udev_permissions in udev.conf would take it out of the config logic, but
putting it in would cause udev to use it. The simpler, stricter syntax of
permissions.d files make them much easier to manage via scripting in higher
level tools. This would make everyone happy, but given the issues already
raised, taking it out of the mix altogether may be the wisest choice.
> > Like you, I was reasonably impressed with the elegance and usefulness of the
> > facility in /etc/udev/permissions.d, however I also see problems with it.
>
> Care to elaborate?
See above :-)
Thanks to all, and season's greetings!
--
Lindsay Haisley | "Fighting against human | PGP public key
FMP Computer Services | creativity is like | available at
512-259-1190 | trying to eradicate | <http://pubkeys.fmp.com>
http://www.fmp.com | dandelions" |
| (Pamela Jones) |
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2004-12-20 17:56 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-17 8:31 Bug#286040: please allow permissions.d to follow symlinks Marco d'Itri
2004-12-17 10:11 ` Stefan Schweizer
2004-12-17 10:48 ` martin f krafft
2004-12-17 13:24 ` Kay Sievers
2004-12-17 13:38 ` martin f krafft
2004-12-17 13:40 ` Marco d'Itri
2004-12-17 13:45 ` Kay Sievers
2004-12-17 13:47 ` Kay Sievers
2004-12-17 13:49 ` Marco d'Itri
2004-12-17 13:56 ` Kay Sievers
2004-12-17 13:58 ` martin f krafft
2004-12-17 14:13 ` Kay Sievers
2004-12-17 14:19 ` martin f krafft
2004-12-17 14:20 ` Kay Sievers
2004-12-17 14:35 ` martin f krafft
2004-12-17 14:36 ` Stefan Schweizer
2004-12-17 14:42 ` martin f krafft
2004-12-17 14:45 ` Kay Sievers
2004-12-17 14:52 ` martin f krafft
2004-12-17 15:50 ` Greg KH
2004-12-17 16:14 ` martin f krafft
2004-12-17 16:45 ` Greg KH
2004-12-17 17:10 ` martin f krafft
2004-12-17 17:45 ` Stefan Schweizer
2004-12-17 18:33 ` Greg KH
2004-12-17 18:40 ` martin f krafft
2004-12-17 23:25 ` Kay Sievers
2004-12-17 23:41 ` martin f krafft
2004-12-18 0:25 ` Lindsay Haisley
2004-12-18 0:53 ` martin f krafft
2004-12-18 1:18 ` martin f krafft
2004-12-18 3:04 ` Greg KH
2004-12-18 4:18 ` Lindsay Haisley
2004-12-18 4:21 ` martin f krafft
2004-12-18 9:48 ` Stefan Schweizer
2004-12-18 12:33 ` Tobias Klauser
2004-12-18 13:04 ` Marco d'Itri
2004-12-19 4:34 ` Randy.Dunlap
2004-12-20 9:39 ` martin f krafft
2004-12-20 17:56 ` Lindsay Haisley [this message]
2004-12-20 18:04 ` martin f krafft
2004-12-20 19:05 ` Lindsay Haisley
2004-12-21 8:04 ` martin f krafft
2004-12-21 16:11 ` Lindsay Haisley
2004-12-21 16:31 ` Lindsay Haisley
2004-12-21 16:38 ` martin f krafft
2004-12-21 16:48 ` Tobias Klauser
2004-12-21 16:54 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041220175611.GC25934@fmp.com \
--to=fmouse-gentoo@fmp.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).