[apparmor] [PATCH] Update parser/policy_cache.c to consistently use defines

Jamie Strandboge jamie at canonical.com
Fri Aug 25 15:16:36 UTC 2017


I was looking at valid_cached_file_version() and noticed a mixture of hardcoded
values (16, 12 and 4) and a define (HEADER_STRING_SIZE (12)).

This is a small cleanup patch to add VERSION_STRING_SIZE and use only it and
HEADER_STRING_SIZE in valid_cached_file_version().

-- 
Jamie Strandboge             | http://www.canonical.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-parser-consistently-use-defines-with-cache-version.patch
Type: text/x-patch
Size: 1387 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20170825/34d53416/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20170825/34d53416/attachment.pgp>


More information about the AppArmor mailing list