smack-team / smack

Smack userspace
GNU Lesser General Public License v2.1
41 stars 33 forks source link

smack_cipso_apply() fails when applying multiple rules #69

Closed rafal-krypa closed 11 years ago

rafal-krypa commented 11 years ago

A typo in f47b9c90 caused invalid buffer handling between output rules. This manifests itself when there are at least two rules and a rule with shorter subject comes first:

# smackcipso <<END
test1 250/2,3,4,6,10,11,14,16,18,19,20,23,24,26,27,28,30,35,36,40
test12 250/2,3,4,6,10,11,14,16,18,19,20,23,24,26,27,28,30,35,36,40,43,44,47
END
Applying CIPSO failed.