[Pkg-openldap-devel] Bug#597704: On upgrade to 2.4.23-5 an rm -f /* has been executed and crashed my whole system!

Matthijs Mohlmann matthijs at cacholong.nl
Wed Sep 22 12:39:55 UTC 2010


tag 597704 - moreinfo
thanks

On Sep 22, 2010, at 2:25 PM, Bernd Zeimetz wrote:

> On 09/22/2010 01:41 PM, Matthijs Mohlmann wrote:
>> Can you supply a configuration file (/etc/ldap/slapd.conf) ?
>> Make sure there is no confidential information in that file.
> 
> Although it might make sense to check *why* the variable was empty, you need to
> make sure never to call something like rm $foo/* when you're not sure that $foo
> is not empty. You should add an extra check here to ensure this. Also you should
> check if the slapd user actually owns the files (or at least the directory)
> before deleting them.
> 
> -- 
> Bernd Zeimetz                            Debian GNU/Linux Developer
> http://bzed.de                                http://www.debian.org
> GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F

This shouldn't happen in the first place, because the ldap backend is
not a supported backend to upgrade from.

I'm investigating why this is happening.

Regards,

Matthijs Möhlmann






More information about the Pkg-openldap-devel mailing list