Skip to content

selinux: policydb - fix memory leak and do some cleanup

Ondrej Mosnacek selinux 2 versions – Applied

Status from this message: Merged into selinux/next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 8 repliesApplied
  2. v11 patch 3 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3selinux: policydb - fix memory leak in policydb_init()security/selinux/ss/policydb.c+489 -4876 replies
2/3selinux: policydb - fix some checkpatch.pl warningssecurity/selinux/ss/policydb.c+8 -41 reply
3/3selinux: policydb - rename type_val_to_struct_arraysecurity/selinux/ss/policydb.c security/selinux/ss/policydb.h security/selinux/ss/services.c+11 -111 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] selinux: policydb - fix memory leak and do some cleanup

Cahnges in v2:
- move code around to avoid a forward declaration
- add two patches to clean up checpatch.pl warnings detected in the moved code
v1: https://lore.kernel.org/selinux/[email protected]/T/

Ondrej Mosnacek (3):
selinux: policydb - fix memory leak in policydb_init()
selinux: policydb - fix some checkpatch.pl warnings
selinux: policydb - rename type_val_to_struct_array

 security/selinux/ss/policydb.c | 980 +++++++++++++++++----------------
 security/selinux/ss/policydb.h |   2 +-
 security/selinux/ss/services.c |   6 +-
 3 files changed, 497 insertions(+), 491 deletions(-)
Signature · 1 line
2.21.0