Project

General

Profile

Bug #21904 » technique.json

Félix DALLIDET, 2022-10-05 11:36

 
{
"type": "ncf_technique",
"version": "3.0",
"data": {
"id": "Disable_Firewall",

"version": "1.0",

"name": "Disable SELINUX and Firewall Daemon",

"description": "",

"category": "ncf_techniques",

"parameter": [],

"calls": [

{

"component": "Service disabled at boot",

"id": "f42ac268-3c39-4799-93a0-0956c7c99f6a",

"method": "service_disabled",

"condition": "linux.(systemd)",

"parameters": [

{

"name": "name",

"value": "firewalld"

}

],

"disableReporting": false

},

{

"component": "Service stopped",

"id": "e0dac87c-48eb-41b3-9d18-152270460070",

"method": "service_stopped",

"condition": "linux.(systemd)",

"parameters": [

{

"name": "name",

"value": "firewalld"

}

],

"disableReporting": false

},

{

"component": "File replace lines",

"id": "4da8af1f-fa0e-4366-9236-a08e981d1230",

"method": "file_replace_lines",

"condition": "linux.(systemd)",

"parameters": [

{

"name": "path",

"value": "/etc/selinux/config"

},

{

"name": "line",

"value": "SELINUX=enforcing"

},

{

"name": "replacement",

"value": "SELINUX=disabled"

}

],

"disableReporting": false

},

{

"component": "Command execution",

"id": "c51520b4-3189-4760-9fc7-26ff740b2b86",

"method": "command_execution",

"condition": "linux.(file_replace_lines__etc_selinux_config_repaired|file_replace_lines__etc_selinux_config_error)",

"parameters": [

{

"name": "command",

"value": "sudo setenforce 0"

}

],

"disableReporting": false

},

{

"id": "50c9ae33-6cab-4cf2-9f79-883dfbf7abef",

"method": "condition_from_command",

"condition": "",

"parameters": [

{

"name": "condition",

"value": ""

},

{

"name": "command",

"value": ""

},

{

"name": "true_codes",

"value": ""

},

{

"name": "false_codes",

"value": ""

}

],

"disableReporting": false

}

],

"resources": []

}

}
(1-1/2)