[systemd-devel] [PATCH] rm_rf_children_dangerous: delete all descendants dangerously
Lennart Poettering
lennart at poettering.net
Mon Sep 10 17:57:55 PDT 2012
On Mon, 03.09.12 15:40, Tom Gundersen (teg at jklm.no) wrote:
> Call rm_rf_children_dangerous() recursively rather than falling back to
> rm_rf_children(). This fixes a bug in systemd-tmpfiles.
>
> The problem can easily be reproduced by:
>
> # mount /dev/sda1 /mnt
> # mkdir /mnt/test
> # echo "D /mnt" > /root/test.conf
> # systemd-tmpfiles --remove /root/test.conf
> Attempted to remove disk file system, and we can't allow that.
> rm_rf(/root/test): Operation not permitted
Applied! Thanks!
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list