Skip to content

libsepol: Grow hashtab dynamically

Ondrej Mosnacek selinux 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2libsepol,newrole: remove unused hashtab functionslibsepol/include/sepol/policydb/hashtab.h libsepol/src/hashtab.c policycoreutils/newrole/hashtab.c +1 more+0 -2260 replies
2/2libsepol: grow hashtab dynamicallylibsepol/src/hashtab.c+41 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchStephen Smalley
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] libsepol: Grow hashtab dynamically

The first patch is just a cleanup to have a single hashtab function that can add elements, simplifying slightly the second patch, which implements the actual auto-growing of hash tables.

Please see the log messages of the patches for more details.

v2: simplify entry insertion in hashtab_check_resize()

Ondrej Mosnacek (2):
libsepol,newrole: remove unused hashtab functions
libsepol: grow hashtab dynamically

 libsepol/include/sepol/policydb/hashtab.h |  28 -----
 libsepol/src/hashtab.c                    | 126 +++++++---------------
 policycoreutils/newrole/hashtab.c         |  85 ---------------
 policycoreutils/newrole/hashtab.h         |  28 -----
 4 files changed, 41 insertions(+), 226 deletions(-)
Signature · 1 line
2.24.1