启用 ExecShield 保护 - ExecShield 是安全 Linux 内核补丁,可避免蠕虫和其他问题。
添加后
/etc/sysctl
kernel.exec-shield = 1
收到此错误 sysctl: 无法stat /proc/sys/kernel/exec-shield: No such file or directory
输出 :
root@ashishk:/home/ashish/MyScripts# sysctl -p
sysctl: cannot stat /proc/sys/kernel/exec-shield: No such file or directory
kernel.randomize_va_space = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_max_syn_backlog = 2048
net.ipv4.tcp_synack_retries = 2
net.ipv4.tcp_syn_retries = 5
net.ipv4.conf.all.log_martians = 1
net.ipv4.icmp_ignore_bogus_error_responses = 1
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.icmp_echo_ignore_all = 1
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
我可以知道哪里出了问题吗?
答案1
c4f4t0r 已经在评论中对当前问题给出了答案,但并不完全准确。
exec-shield 继续存在;实际上被删除的是通过 sysctl 设置禁用它的选项
https://access.redhat.com/solutions/974563(链接需要 RedHat 订阅。由于版权问题,不提供该链接的确切引用)。