Regression fix: don't modify smack_accesses while applying the rules.
authorRafał Krypa <rafal@krypa.net>
Thu, 14 Nov 2013 23:58:22 +0000 (00:58 +0100)
committerRafał Krypa <rafal@krypa.net>
Thu, 14 Nov 2013 23:58:27 +0000 (00:58 +0100)
commit74f5b5c21a2ed9c0576c3c3ab3802d11d66098a9
treefdbc6148deecd724d5af66034ae6b2f9a39cbfa7
parente6f32e4403ad549102cfbdbd02b4dcd254da84d2
Regression fix: don't modify smack_accesses while applying the rules.

Regression introduced in eaf908fd caused access_type field to be modified,
when smack_accesses_apply() is called with clear set to true.

This patch reverts that, restoring invariant that smack_accessess_apply()
doesn't modify given rule set.
libsmack/libsmack.c