瀏覽代碼

Disable dccp

Bob Mottram 8 年之前
父節點
當前提交
c9f6fbd54f
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7
    0
      src/freedombone-utils-setup

+ 7
- 0
src/freedombone-utils-setup 查看文件

@@ -428,6 +428,10 @@ function disable_ctrl_alt_del {
428 428
     ln -sf /dev/null /etc/systemd/system/ctrl-alt-del.target
429 429
 }
430 430
 
431
+function disable_dccp {
432
+    echo "install dccp /bin/true" > /etc/modprobe.d/dccp.conf
433
+}
434
+
431 435
 function lockdown_permissions {
432 436
     # All commands owned by root
433 437
     if [ -d /bin ]; then
@@ -545,6 +549,9 @@ function setup_utils {
545 549
     read_config_param "PROJECT_REPO"
546 550
     write_config_param "PROJECT_REPO" "$PROJECT_REPO"
547 551
 
552
+    function_check disable_dccp
553
+    disable_dccp
554
+
548 555
     function_check disable_ctrl_alt_del
549 556
     disable_ctrl_alt_del
550 557