Skip to content

Commit a40fbb2

Browse files
committed
Remove unnecessary check
1 parent d4ac300 commit a40fbb2

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

modules/exploits/linux/local/cve_2023_0386_overlayfs_priv_esc.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,6 @@ def check
8787
return CheckCode::Safe("Linux kernel version #{kernel_version} is not vulnerable")
8888
end
8989

90-
unless kernel_config && kernel_config.include?('CONFIG_USER_NS=y')
91-
return CheckCode::Safe('Kernel config does not include CONFIG_USER_NS=y')
92-
end
93-
94-
vprint_good('Kernel config has CONFIG_USER_NS enabled')
95-
9690
unless userns_enabled?
9791
return CheckCode::Safe('Unprivileged user namespaces are not permitted')
9892
end

0 commit comments

Comments
 (0)