smack-team/smack — pull request #53 by jsakkine (2013-11-21 19:06:25+00:00)
Title: utils: apply access rules to load/load2 in one shot

Open load/load2 before calling `nftw()`. Inside the callback only collect rules using `smack_accessed_add_from_file()`. Finally, after returning from `nftw()`, call `smack_accesses_save()` or `smack_accesses_clear()`.