Security
sysctl:無法統計 /proc/sys/kernel/exec-shield:沒有這樣的文件或目錄
啟用 ExecShield 保護 - ExecShield 是用於避免蠕蟲和其他問題的安全 Linux 核心更新檔。
添加到後
/etc/sysctl kernel.exec-shield = 1
收到此錯誤 sysctl: cannot
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
我能知道什麼是錯的嗎?
c4f4t0r 已經在評論中提供了直接問題的答案,但並不完全準確。
exec-shield 繼續存在;實際刪除的是通過 sysctl 設置禁用它的選項
https://access.redhat.com/solutions/974563(連結需要 RedHat 訂閱。由於版權問題,未提供該連結的確切引用)。