From aaf2889aebc817485f1cf6d835a28d0eec2b969d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D0=B5=D0=BC=D0=B8=D0=B9?= Date: Sun, 20 Jun 2021 15:49:16 +0300 Subject: [PATCH] add desktop --- desktop/auditd.desktop | 10 ++++++++++ desktop/pwquality.desktop | 10 ++++++++++ front_auditd.sh | 5 ++--- 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 desktop/auditd.desktop create mode 100644 desktop/pwquality.desktop diff --git a/desktop/auditd.desktop b/desktop/auditd.desktop new file mode 100644 index 0000000..3a89524 --- /dev/null +++ b/desktop/auditd.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Auditd Setup +Name[ru]=Настройка Auditd +Categories=GTK;Settings; +Exec=/usr/bin/linux-infosec-setupper-auditd-gui +Icon=security-medium +Terminal=false +Type=Application +StartupNotify=true diff --git a/desktop/pwquality.desktop b/desktop/pwquality.desktop new file mode 100644 index 0000000..8900044 --- /dev/null +++ b/desktop/pwquality.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=pwquality setup +Name[ru]=Настройка pwquality +Categories=GTK;Settings; +Exec=/usr/bin/linux-infosec-setupper-auditd-gui +Icon=gcr-key +Terminal=false +Type=Application +StartupNotify=true diff --git a/front_auditd.sh b/front_auditd.sh index 9100734..1bd3e75 100644 --- a/front_auditd.sh +++ b/front_auditd.sh @@ -95,9 +95,9 @@ yad --plug=$_NUMBER --tabnum=2 --form \ --image=security-medium \ --scroll \ --field=$"Tcp listen port::LBL" "!" \ - --field=$"${_tag1}(Value) Tcp listen port${_tag2}::NUM" "${tcp_listen_port:-1}!1..65535!1" \ + --field=$"${_tag1}(Value) Tcp listen port${_tag2}::NUM" "${tcp_listen_port:--}!1..65535!1" \ --field=$"Tcp max per addr::LBL" "!" \ - --field=$"${_tag1}(Value) Tcp max per addr${_tag2}::NUM" "${tcp_max_per_addr_port:-1}!1..65535!1" \ + --field=$"${_tag1}(Value) Tcp max per addr${_tag2}::NUM" "${tcp_max_per_addr_port:--}!1..65535!1" \ --field=$"Systemd firewalling params:LBL" "!" \ --field=$"${_tag1}(Value) Allowed IPs${_tag2}::TXT" "$(if [ -z "$systemd_allowed_ips" ]; then echo "-"; else echo -e "${systemd_allowed_ip_list// /\\n}"; fi)" \ --field=$"${_tag1}(Value) Denied IPs${_tag2}::TXT" "$(if [ -z "$systemd_allowed_ips" ]; then echo "-"; else echo -e "${systemd_denied_ip_list// /\\n}"; fi)" &>"$_temp_file2" & @@ -113,7 +113,6 @@ yad --key=$_NUMBER --notebook --stack --expand --tab=$"Audit" --tab=$"Network" \ # The exit code after clicking on this button is 3. We restore the config if we clicked on this button if [ "$_status" == 3 ]; then _mk_auditd_config || { _yad_error $"Unable to read file %s" "${VAR_DIR_AUDIT}/auditd-conf.sh"; exit 1; } - fi var="$(<"$_temp_file1")$(<"$_temp_file2")"