commit | fb237459c84ef843828988a953e06826435dfcae | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <nicolas.iooss@m4x.org> | Mon Nov 28 22:34:44 2016 +0100 |
committer | Stephen Smalley <sds@tycho.nsa.gov> | Tue Nov 29 08:43:41 2016 -0500 |
tree | f2411c2345930b4a88ccb90648ba6b9483539bd4 | |
parent | 9872b04a8020417664143e35925f81d4ecc5ee96 [diff] |
libsepol: detect duplicated symbol IDs A valid policy would not have two symbols (classes, roles, users...) sharing the same unique identifier. Make policydb_read() rejects such policy files. When ..._val_to_name translation tables were allocated with malloc(), change to calloc() in order to initialize the tables with NULLs. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>