projects
/
kconfig-hardened-check.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the / symbol to the sysctl parsing pattern
[kconfig-hardened-check.git]
/
kconfig_hardened_check
/
__init__.py
diff --git
a/kconfig_hardened_check/__init__.py
b/kconfig_hardened_check/__init__.py
index 0502785b893b321796c6034720dad33df3b7d827..ee0babe223e0cc3977b2ac1ee29a1ce011fb32a8 100644
(file)
--- a/
kconfig_hardened_check/__init__.py
+++ b/
kconfig_hardened_check/__init__.py
@@
-201,7
+201,7
@@
def parse_cmdline_file(mode, parsed_options, fname):
def parse_sysctl_file(mode, parsed_options, fname):
with open(fname, 'r', encoding='utf-8') as f:
def parse_sysctl_file(mode, parsed_options, fname):
with open(fname, 'r', encoding='utf-8') as f:
- sysctl_pattern = re.compile("[a-zA-Z0-9\._-]+ =.*$")
+ sysctl_pattern = re.compile("[a-zA-Z0-9
/
\._-]+ =.*$")
for line in f.readlines():
line = line.strip()
if not sysctl_pattern.match(line):
for line in f.readlines():
line = line.strip()
if not sysctl_pattern.match(line):