Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
criu: add nftables connection locking/unlocking
This adds nftables based connection locking as an alernative for iptables. This avoid the external dependency of iptables-restore. It works by creating a 'connection set', which is a set of connection identifying tuples. Rules are added to drop packets that match the connection tuples in the set. Locking is now reduced to just adding the connection identifying tuple to the set. Unlocking is just as simple as deleteing the CRIU table. v2: split ip string conversion into two if conditions v3: add better message when CRIU is build without libnftables support v4: fix indentation in nftables_lock_connection_raw() v5: move 'ret = -1' below err: lable to avoid redundancy v6: add better error message on lock failure v7: run make indent Signed-off-by: Zeyad Yasser <zeyady98@gmail.com>
- Loading branch information
1 parent
3b932c0
commit 9756526
Showing
4 changed files
with
142 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters