issues
search
a13xp0p0v
/
kernel-hardening-checker
A tool for checking the security hardening options of the Linux kernel
GNU General Public License v3.0
1.67k
stars
152
forks
source link
Simplify a bit the detect_arch function
#148
Closed
jvoisin
closed
2 months ago
jvoisin
commented
2 months ago
Use a regex to extract the arch instead of doing the extraction "by hand".
Reduce nested indentation.
Reduce the amount of code in the loop.
Remove a forceful
re.compile
: python will cache regex in a compiled form if necessary.
a13xp0p0v
commented
2 months ago
Looks good to me. Thanks, @jvoisin. Merged!
re.compile
: python will cache regex in a compiled form if necessary.