aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorJacob Satterfield <[email protected]>2023-11-03 17:29:51 +0000
committerPaul Moore <[email protected]>2023-11-20 20:28:22 -0500
commit1712ed62153125e62d4d1e0ca68d35387e6a6993 (patch)
treebc83398d0bcd483172243a344ea10153126b918d /scripts/generate_rust_analyzer.py
parentf5364ecfd8c3ec81cf3350caa4629d98408101e5 (diff)
selinux: refactor avtab_node comparisons
In four separate functions within avtab, the same comparison logic is used. The only difference is how the result is handled or whether there is a unique specifier value to be checked for or used. Extracting this functionality into the avtab_node_cmp() function unifies the comparison logic between searching and insertion and gets rid of duplicative code so that the implementation is easier to maintain. Signed-off-by: Jacob Satterfield <[email protected]> Reviewed-by: Stephen Smalley <[email protected]> Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions