• ReversalHatchery@beehaw.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    8 months ago

    Ok, then a bad actor could enumerate all the subdirs and delete them one by one.

    Even if going down this path would be a good solution, I don’t think this is rm’s job to do. This should be done by an antivirus a security suite. I think I have read that for the past few years the kernel now has a better API than inotify to get notified by file operations. I don’t remember it’s name, but I think it was even mentioned in the docs that security software is a use case of it