On Fri, Jul 01, 2011 at 07:52:55PM +0200, Lennart Poettering wrote: > On Fri, 01.07.11 13:30, Jeff Licquia ([email protected]) wrote: > > > - "It is valid to implement /var/run as a symlink to /run." True? > > Too bold? Too specific? > > On Fedora /var/run is now a symlink to /run. So it's definitely true... ;-)
This is also the case for Debian. > > - /var/run/utmp is explicitly mentioned in FHS 2.3. After looking at > > Fedora 15, I decided it should stay there, since there's no /run/utmp > > there. I figure that having /run/utmp via symlinking /var/run to /run > > is OK, even though not explicitly mentioned, so there should be no > > issues. OTOH, do we want to encourage people to move utmp? > > Hmm? On F15 there is a /run/utmp. Same here. This does depend upon having a /var/run symlink/bind mount, so if you're missing that then that's probably the reason. > > - I've added explicit rules forbidding use of both /run and /var/run > > by programs, to prevent confusion. My thought is that a program should > > either use /run or /var/run. Can anyone think of a good reason why a > > program would want to use both? > > Well, for example because they use /run for all its own uses but to > access utmp it uses _PATH_UTMPX, which will most likely still point to > /var/run/utmp. Such a use of both /run and /var/run should definitely be > acceptable. And also a requirement for smooth migration. That said, a single program should use /var/run or /run, not both. It can transition by just making the change for as long as /var/run is kept (which will be for the foreseeable future). > Other comments: > > "... should be unwritable for unprivileged users (root or users running > daemons)" ← that's easy to misunderstand? This could use rewording. I'm not sure why root is considered unprivileged here, so maybe could be made a bit clearer? There was also the issue with /run/lock being missing, and /var/lock being moved, which I mentioned in bugzilla. Regards, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/ `- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
signature.asc
Description: Digital signature
_______________________________________________ fhs-discuss mailing list [email protected] https://lists.linux-foundation.org/mailman/listinfo/fhs-discuss
