Atomic ruleset update through libnftables

Subham Pal <[email protected]> Tue, 24 Feb 2026 16:24:10 +0530
Newsgroups gmane.comp.security.firewalls.netfilter.general
Message-ID <CAHeizqEqDQYVs6mBOC4GPhBT6h9ikfkhYD455jUDXvjfQQ-ZRA@mail.gmail.com>
I am writing a firewall program and intending to configure nftables
using libnftables userspace library. The plan is to use
nft_run_cmd_from_buffer function call, passing JSOn input to its
buffer.

If I provide a set of rule updates to this function, will they be
applied atomically? The manpage does not seem to elaborate on this.