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)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 18 Nov 2013 16:22:26 +0000 (18:22 +0200)
commit8efabf3d97a9040c522054df7bf06634804a5953
tree9a164dc03b983ace7fe404fc29bcc2ba53286b74
parent62f1c068a8020d222c5eb0696d1ad71cb917f644
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.
(cherry picked from commit 74f5b5c21a2ed9c0576c3c3ab3802d11d66098a9)
libsmack/libsmack.c