public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/20138] /etc should be configurable by --sysconfdir
       [not found] <bug-20138-131@http.sourceware.org/bugzilla/>
@ 2023-09-14 16:26 ` sam at gentoo dot org
  2023-09-14 16:46 ` chewi at gentoo dot org
  1 sibling, 0 replies; 2+ messages in thread
From: sam at gentoo dot org @ 2023-09-14 16:26 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=20138

Sam James <sam at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at gentoo dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug libc/20138] /etc should be configurable by --sysconfdir
       [not found] <bug-20138-131@http.sourceware.org/bugzilla/>
  2023-09-14 16:26 ` [Bug libc/20138] /etc should be configurable by --sysconfdir sam at gentoo dot org
@ 2023-09-14 16:46 ` chewi at gentoo dot org
  1 sibling, 0 replies; 2+ messages in thread
From: chewi at gentoo dot org @ 2023-09-14 16:46 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=20138

James Le Cuirot <chewi at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chewi at gentoo dot org

--- Comment #1 from James Le Cuirot <chewi at gentoo dot org> ---
Hi Benda. I noticed we were doing this in Gentoo when I found that getent was
returning user/group entries from the prefix, rather than from /etc. I really
don't think that makes sense, at least for passwd, group, and shadow. Some of
the other files like services and resolv.conf are debatable.

For users and groups, the location of their names and other properties are
determined by the libc in use, not by where the file/directory you're
inspecting is. It would be really weird for "/path/to/prefix/bin/ls -l /home"
to return completely different ownership information to "/bin/ls -l /home".

In Gentoo's case, prefix is typically managed by a single user, so the
ownership of files within the prefix isn't that interesting. We also stub out
the user/group management functions in the eclasses under Prefix so these files
generally don't get populated anyway.

services is a typically static file and Gentoo Prefix is normally deployed on
older systems, so it may make sense to use the newer prefixed version in this
case.

I'm on the fence with resolv.conf. Having to configure DNS in two places is
strange, but if you don't have root access and you don't like the DNS
configuration you've been given, this gives you the power to change it.

Of course, you can always create a symlink, although the security around some
of these files may prevent that from working. I think we should draw a line at
passwd, group, and shadow in any case. What do you think?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-14 16:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-20138-131@http.sourceware.org/bugzilla/>
2023-09-14 16:26 ` [Bug libc/20138] /etc should be configurable by --sysconfdir sam at gentoo dot org
2023-09-14 16:46 ` chewi at gentoo dot org

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 read-only IMAP folder(s) and NNTP newsgroup(s).