libsmack: merge rules with the same subject and object before applying them
authorRafal Krypa <r.krypa@samsung.com>
Thu, 13 Feb 2014 16:32:29 +0000 (17:32 +0100)
committerRafal Krypa <r.krypa@samsung.com>
Thu, 13 Feb 2014 16:32:29 +0000 (17:32 +0100)
commit8875482c88c4c92b49dbcc4fcb31b651061088b5
treedf61b9da3dd629301431c68fe9b4e1714b60b502
parentb7ba239e723680ab9c86fd5564d4464e48fa154d
libsmack: merge rules with the same subject and object before applying them

All rules with the same subject and object will be merged into a single one
before applying rules to kernel or writing them to a file. The result will
consist of smaller number of rules, but they will have the same semantics.
This enhances performance greatly when there are a lot of rules to merge.
The merging code has negligible overhead when there are no merges to
perform.

Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
libsmack/libsmack.c