{"version":"2.1.273","anchor":"dangerous-rm-check-gains-a-pluggable-extra-deny-hook","canonical_anchor":"dangerous-rm-check-gains-a-pluggable-extra-deny-hook","heading":"Dangerous-rm check gains a pluggable extra-deny hook","tier":"internal","area":"Bash Safety","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.273\/e\/dangerous-rm-check-gains-a-pluggable-extra-deny-hook","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.273","markdown":"### Dangerous-rm check gains a pluggable extra-deny hook\n\nThe dangerous-rm safety check for bash commands can now be extended with an extra custom check\n\n**What**\n\nThe function that screens bash commands for dangerous `rm`\/`rmdir` patterns (like recursive deletes) now accepts an extra callback function as a parameter. This callback runs early, and if it returns a denial, that denial is used immediately.\n\n**Why**\n\nThis makes the dangerous-`rm` check pluggable, allowing additional deny rules to be layered in without changing the core check itself.\n\n- Area: Bash Safety\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}