public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Policy violation possible (concerns openldap/nss_ldap)
@ 2003-06-18 17:36 Martin Lesser
  2003-06-18 18:18 ` Donny Davies
  2003-06-19 17:55 ` [gentoo-dev] " paul
  0 siblings, 2 replies; 4+ messages in thread
From: Martin Lesser @ 2003-06-18 17:36 UTC (permalink / raw
  To: gentoo-dev

Yesterday we upgraded net-libs/nss_ldap/nss_ldap-207.ebuild to
net-libs/nss_ldap/nss_ldap-207-r1.ebuild and encountered an IMO fatal
error concerning writing into /etc *without* respecting the protection
of conf-files.

The relevant lines from src_install() of the different ebuilds are:

nss_ldap-202.ebuild:
  dosym /etc/openldap/ldap.conf /etc/ldap.conf
(That's ok)

nss_ldap-207.ebuild:
  insinto /etc/openldap
  doins ldap.conf
  dosym /etc/openldap/ldap.conf /etc/ldap.conf
(That's ok)

Until here /etc/ldap.conf was a symlink which was created or maintained
also by at least one other package (openldap itself), but

nss_ldap-207-r1.ebuild changed it totally:
  insinto /etc
  doins ldap.conf

So the symlink was overwritten with the vanilla configuration what - in
our case - caused several applications which depend on ldap to not work
properly any longer. That was really bad.

How can one prevent such an IMO unacceptable behavior of overwriting
config-files which are symlinks? Should this be seen as bug in
gentoo/emerge?

Have the changes described above to be reported as bug in nss_ldap?

How can we ensure the integrity of conf-files used by more than one
package when different packages use different locations for the *same*
configuration (a bad thing anyway)?

Martin

--
gentoo-dev@gentoo.org mailing list


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

end of thread, other threads:[~2003-06-19 15:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-18 17:36 [gentoo-dev] Policy violation possible (concerns openldap/nss_ldap) Martin Lesser
2003-06-18 18:18 ` Donny Davies
2003-06-19 17:55 ` [gentoo-dev] " paul
2003-06-19 15:42   ` Donny Davies

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox