mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-08-16 15:03:41 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ddb28d2dc | ||
|
|
24000d67ea | ||
|
|
1f51d1818d | ||
|
|
8b0ec6884c | ||
|
|
f61932c6c6 | ||
|
|
ff806523b7 | ||
|
|
dcb4ce828b | ||
|
|
a88c177372 | ||
|
|
36612f622d | ||
|
|
930a885f04 |
+38
-165
@@ -141,8 +141,7 @@ fi
|
||||
|
||||
# Required tools
|
||||
log "Checking dependencies..."
|
||||
apt-get install -y -qq debootstrap squashfs-tools \
|
||||
grub-efi-amd64-bin grub-efi-amd64-signed grub-pc-bin shim-signed \
|
||||
apt-get install -y -qq debootstrap squashfs-tools grub-efi-amd64-bin grub-pc-bin \
|
||||
xorriso mtools dosfstools parted e2fsprogs live-boot 2>/dev/null || true
|
||||
|
||||
for cmd in debootstrap parted mkfs.fat mkfs.ext4 mksquashfs grub-mkimage; do
|
||||
@@ -781,96 +780,37 @@ else
|
||||
# Uses two separate match patterns to avoid conflicts when multiple interfaces match
|
||||
# secubox-net-detect.service will generate proper config at first boot
|
||||
cat > "${ROOTFS}/etc/netplan/00-secubox.yaml" <<'NETPLAN'
|
||||
# /etc/netplan/00-secubox.yaml — SecuBox Live USB (Bare Metal) — Bootstrap Config
|
||||
# This is a minimal bootstrap configuration for real AMD64 hardware.
|
||||
# secubox-net-detect.service will generate the proper config at first boot.
|
||||
# /etc/netplan/00-secubox.yaml — SecuBox Live USB bootstrap.
|
||||
#
|
||||
# Strategy: Enable DHCP on ALL detected Ethernet interfaces initially.
|
||||
# secubox-net-detect will refine this to router mode (WAN + br-lan).
|
||||
# DHCP on every ethernet interface. That's it. Operators wire WiFi
|
||||
# and router-mode br-lan later via secubox-net-* tools.
|
||||
#
|
||||
# Earlier versions baked an empty `br-lan` bridge with a static
|
||||
# 192.168.1.1/24 address into the bootstrap. On bare-metal real
|
||||
# hardware the physical NIC went silent and only the phantom br-lan
|
||||
# showed an IP — networkd was honouring the static bridge but
|
||||
# something (predictable rename? secubox-net-detect leftover?)
|
||||
# stopped the DHCP request reaching the real cable. Stripping the
|
||||
# bridge + the wifi-with-empty-SSID block restores classic DHCP.
|
||||
# secubox-net-detect.service (disabled by default, no .wants/ link)
|
||||
# can still be run by hand once the operator has decided whether
|
||||
# this box is a router vs an endpoint.
|
||||
network:
|
||||
version: 2
|
||||
renderer: networkd
|
||||
|
||||
ethernets:
|
||||
# Bootstrap: Enable DHCP on all ethernet interfaces for initial connectivity
|
||||
# This ensures we get an IP regardless of interface naming (eno1, enp2s0, etc.)
|
||||
# After first boot, secubox-net-detect rewrites this with proper WAN/LAN split.
|
||||
|
||||
# Match modern interface patterns (enp*, eno*, ens*, enx*).
|
||||
# WAN fallback (closes #370): static 192.168.1.55/24 + gw
|
||||
# 192.168.1.254 carried alongside DHCP. systemd-networkd accepts
|
||||
# both — DHCP routes get the low metric (100), the static gets
|
||||
# metric 1000, so DHCP wins when available and the static keeps
|
||||
# the appliance reachable when DHCP fails. Caveat: if multiple
|
||||
# interfaces match, both will try to claim 192.168.1.55 and one
|
||||
# will fail with address-in-use; bare-metal boxes typically have
|
||||
# one primary NIC, and multi-NIC operators run net-detect to
|
||||
# refine the layout anyway.
|
||||
eth-dhcp:
|
||||
# Match everything that *looks* like ethernet — covers enpXsY /
|
||||
# enoX / ensX / enxAABBCC (USB ethernet) / ethX. All get DHCP.
|
||||
eth-all:
|
||||
match:
|
||||
name: "en*"
|
||||
name: "e*"
|
||||
dhcp4: true
|
||||
dhcp6: false
|
||||
dhcp4-overrides:
|
||||
use-dns: true
|
||||
use-routes: true
|
||||
route-metric: 100
|
||||
optional: true
|
||||
|
||||
# Match legacy interface patterns (eth0, eth1, etc.)
|
||||
eth-legacy:
|
||||
match:
|
||||
name: "eth*"
|
||||
dhcp4: true
|
||||
dhcp6: false
|
||||
dhcp4-overrides:
|
||||
use-dns: true
|
||||
use-routes: true
|
||||
route-metric: 200
|
||||
optional: true
|
||||
|
||||
# No-IP fallback is handled by secubox-net-fallback.service (ARP-probes
|
||||
# common gateways, picks a free .250 IP in the discovered subnet). My
|
||||
# earlier v2.12.1 attempt to bake `addresses: [192.168.1.55/24]` into
|
||||
# both eth-dhcp and eth-legacy created an address-in-use collision when
|
||||
# both matched the same NIC and broke netplan apply entirely on bare
|
||||
# metal + VBox — boot console showed no IP at all (regressed even DHCP).
|
||||
# Keep the netplan DHCP-only; trust net-fallback for the fallback path.
|
||||
|
||||
wifis:
|
||||
# All WiFi interfaces (wlp*, wlan*, wl*)
|
||||
all-wifi:
|
||||
match:
|
||||
name: "wl*"
|
||||
dhcp4: true
|
||||
dhcp4-overrides:
|
||||
route-metric: 300
|
||||
use-dns: true
|
||||
use-routes: true
|
||||
optional: true
|
||||
access-points:
|
||||
# Open networks (fallback)
|
||||
"": {}
|
||||
|
||||
bridges:
|
||||
# br-lan: Pre-defined but empty - secubox-net-detect populates interfaces
|
||||
br-lan:
|
||||
interfaces: []
|
||||
addresses:
|
||||
- 192.168.1.1/24
|
||||
dhcp4: false
|
||||
optional: true
|
||||
parameters:
|
||||
stp: false
|
||||
forward-delay: 0
|
||||
|
||||
# Note: At first boot, secubox-net-detect.service will:
|
||||
# 1. Detect board type (x64-baremetal) and available interfaces
|
||||
# 2. Determine WAN (first interface with link/DHCP response)
|
||||
# 3. Assign remaining interfaces to br-lan
|
||||
# 4. Rewrite this file with explicit interface names
|
||||
#
|
||||
# To force re-detection: rm /var/lib/secubox/.net-configured && reboot
|
||||
NETPLAN
|
||||
chmod 600 "${ROOTFS}/etc/netplan/00-secubox.yaml"
|
||||
fi # end static-IP branch
|
||||
@@ -3581,6 +3521,7 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# Mount for file copy
|
||||
MNT="${WORK_DIR}/mnt"
|
||||
mkdir -p "${MNT}/esp" "${MNT}/live"
|
||||
@@ -3748,109 +3689,41 @@ fi
|
||||
|
||||
cp "${MNT}/esp/boot/grub/grub.cfg" "${MNT}/esp/EFI/BOOT/grub.cfg"
|
||||
|
||||
# ── Build GRUB EFI ────────────────────────────────────────────────────────
|
||||
# Module set tuned for booting from a USB stick / VM disk under both
|
||||
# OVMF (VirtualBox + qemu) and real UEFI firmware. The list MUST include
|
||||
# `disk`, `usb`, `usbms` so the firmware can hand off block IO; without
|
||||
# them OVMF drops to the EFI Shell PXE prompt instead of loading GRUB
|
||||
# (this was the v2.12.0/v2.12.1 regression — see issue #382 followup).
|
||||
GRUB_MODS="part_gpt part_msdos fat ext2 ntfs iso9660 normal linux boot \
|
||||
configfile loopback chain efi_gop efi_uga ls cat echo test help \
|
||||
search search_label search_fs_uuid search_fs_file \
|
||||
gfxterm gfxterm_background all_video gzio png jpeg font \
|
||||
fat exfat read sleep reboot halt true \
|
||||
disk usb usbms ahci ata loadenv minicmd terminal"
|
||||
# Build GRUB EFI — verbatim from v2.10.3 (last known-good real UEFI
|
||||
# boot). Do NOT optimise this block: every "improvement" attempted in
|
||||
# the v2.12.x series (Secure Boot shim, $cmdpath, search --fs-uuid,
|
||||
# extra modules, multi-stage fallbacks) broke at least one piece of
|
||||
# hardware. Stay simple, stay shipped.
|
||||
GRUB_MODS="part_gpt part_msdos fat ext2 normal linux boot configfile loopback chain efi_gop efi_uga ls search search_label gfxterm all_video"
|
||||
|
||||
cat > "${WORK_DIR}/grub-embed.cfg" <<'EMBEDCFG'
|
||||
# Fallback chain — label first (set by mkfs.fat -n ESP), then UUID,
|
||||
# then EFI's $cmdpath (the directory the .EFI was loaded from). Last
|
||||
# resort: hardcode the relative prefix so configfile can still find the
|
||||
# menu even if no var resolution worked.
|
||||
search --no-floppy --label ESP --set=root --no-floppy
|
||||
if [ -z "$root" ]; then
|
||||
search --no-floppy --label LIVE --set=root --no-floppy
|
||||
fi
|
||||
if [ -n "$root" ]; then
|
||||
set prefix=($root)/boot/grub
|
||||
else
|
||||
set prefix=($cmdpath)/../../boot/grub
|
||||
fi
|
||||
search --no-floppy --label ESP --set=root
|
||||
set prefix=($root)/boot/grub
|
||||
configfile $prefix/grub.cfg
|
||||
EMBEDCFG
|
||||
|
||||
# Build the EFI binary. Bail loudly if grub-mkimage fails — silent
|
||||
# failure leaves the ESP without BOOTX64.EFI and the box drops to PXE
|
||||
# at first boot, which is exactly the bug we just hit.
|
||||
if ! grub-mkimage -o "${MNT}/esp/EFI/BOOT/BOOTX64.EFI" \
|
||||
-O x86_64-efi \
|
||||
-c "${WORK_DIR}/grub-embed.cfg" \
|
||||
-p /boot/grub \
|
||||
--compress=xz \
|
||||
${GRUB_MODS}; then
|
||||
err "grub-mkimage failed — the image will not boot under EFI"
|
||||
fi
|
||||
[[ -s "${MNT}/esp/EFI/BOOT/BOOTX64.EFI" ]] || err "BOOTX64.EFI missing or empty after grub-mkimage"
|
||||
EFI_SIZE=$(stat -c%s "${MNT}/esp/EFI/BOOT/BOOTX64.EFI")
|
||||
ok "BOOTX64.EFI built (${EFI_SIZE} bytes)"
|
||||
grub-mkimage -o "${MNT}/esp/EFI/BOOT/BOOTX64.EFI" \
|
||||
-O x86_64-efi \
|
||||
-c "${WORK_DIR}/grub-embed.cfg" \
|
||||
-p /boot/grub \
|
||||
${GRUB_MODS}
|
||||
|
||||
# Mirror to /EFI/BOOT/grubx64.efi (some firmware looks for this name)
|
||||
# and to /EFI/secubox/grubx64.efi (lets `efibootmgr` register a named
|
||||
# entry once the live system is running, without clobbering /BOOT).
|
||||
cp "${MNT}/esp/EFI/BOOT/BOOTX64.EFI" "${MNT}/esp/EFI/BOOT/grubx64.efi"
|
||||
mkdir -p "${MNT}/esp/EFI/secubox"
|
||||
cp "${MNT}/esp/EFI/BOOT/BOOTX64.EFI" "${MNT}/esp/EFI/secubox/grubx64.efi"
|
||||
|
||||
# Secure Boot assets: ship shim + signed grub alongside the unsigned
|
||||
# BOOTX64.EFI, but DON'T swap shim into BOOTX64.EFI.
|
||||
#
|
||||
# Rationale: shim requires Microsoft-signed keys enrolled in the firmware
|
||||
# to chainload grubx64.efi. OVMF / VirtualBox EFI ship without those keys
|
||||
# and Secure Boot off — shim refuses to hand off and the boot drops to
|
||||
# the EFI Shell / PXE. By keeping the unsigned grub-mkimage as
|
||||
# BOOTX64.EFI, every firmware (OVMF, VBox, real laptops with SB off)
|
||||
# loads grub directly.
|
||||
#
|
||||
# For Secure Boot ON systems: the firmware boot menu / efibootmgr can
|
||||
# point at /EFI/BOOT/shimx64.efi explicitly. Users opting into SB do
|
||||
# this once when registering the boot entry.
|
||||
SHIM_SRC="/usr/lib/shim/shimx64.efi.signed"
|
||||
GRUB_SIGNED_SRC="/usr/lib/grub/x86_64-efi-signed/grubx64.efi.signed"
|
||||
if [[ -f "$SHIM_SRC" && -f "$GRUB_SIGNED_SRC" ]]; then
|
||||
cp "$SHIM_SRC" "${MNT}/esp/EFI/BOOT/shimx64.efi"
|
||||
cp "$GRUB_SIGNED_SRC" "${MNT}/esp/EFI/BOOT/grubx64-signed.efi"
|
||||
cp "$GRUB_SIGNED_SRC" "${MNT}/esp/EFI/secubox/grubx64-signed.efi"
|
||||
ok "Secure Boot assets shipped (shimx64.efi + grubx64-signed.efi alongside unsigned default)"
|
||||
else
|
||||
log "Secure Boot assets not present — image boots fine without SB"
|
||||
log " (to enable: apt-get install shim-signed grub-efi-amd64-signed)"
|
||||
fi
|
||||
|
||||
# EFI shell fallback — some OVMF builds drop into the shell on first
|
||||
# boot if no BootOrder is set. startup.nsh auto-runs the bootloader.
|
||||
# Add startup.nsh for EFI shell auto-boot (VirtualBox/OVMF compatibility)
|
||||
cat > "${MNT}/esp/startup.nsh" <<'STARTUPNSH'
|
||||
@echo -off
|
||||
echo "SecuBox Live — handing off to BOOTX64.EFI..."
|
||||
\EFI\BOOT\BOOTX64.EFI
|
||||
STARTUPNSH
|
||||
|
||||
# Copy GRUB modules — only the bits BOOTX64.EFI's embedded prefix
|
||||
# might want to load on demand. Failure is non-fatal: we statically
|
||||
# linked everything we need above, this is belt-and-suspenders.
|
||||
# Copy GRUB modules
|
||||
cp /usr/lib/grub/x86_64-efi/*.mod "${MNT}/esp/boot/grub/x86_64-efi/" 2>/dev/null || true
|
||||
|
||||
# ── BIOS GRUB ──────────────────────────────────────────────────────────────
|
||||
# Fail loudly here too — BIOS-only systems (older laptops, VBox legacy
|
||||
# default) silently won't boot if i386-pc grub isn't installed in the
|
||||
# BIOS-boot partition (p1, set bios_grub on).
|
||||
if ! grub-install --target=i386-pc \
|
||||
--boot-directory="${MNT}/esp/boot" \
|
||||
--recheck "${LOOP}" 2>&1 | tee "${WORK_DIR}/grub-install-bios.log"; then
|
||||
cat "${WORK_DIR}/grub-install-bios.log"
|
||||
err "BIOS grub-install failed — image will not boot on legacy systems"
|
||||
fi
|
||||
# Install BIOS GRUB
|
||||
grub-install --target=i386-pc --boot-directory="${MNT}/esp/boot" --recheck "${LOOP}" 2>/dev/null || warn "BIOS GRUB failed"
|
||||
cp /usr/lib/grub/i386-pc/*.mod "${MNT}/esp/boot/grub/i386-pc/" 2>/dev/null || true
|
||||
|
||||
ok "GRUB installed (UEFI BOOTX64.EFI + BIOS i386-pc, dual-boot ready)"
|
||||
ok "GRUB installed (UEFI + BIOS)"
|
||||
|
||||
# Persistence
|
||||
if [[ $INCLUDE_PERSISTENCE -eq 1 ]] && [[ -b "${LOOP}p4" ]]; then
|
||||
|
||||
@@ -443,6 +443,16 @@ table inet secubox_filter {
|
||||
# HTTP/HTTPS (SecuBox UI)
|
||||
tcp dport { 80, 443 } accept
|
||||
|
||||
# DHCP client — accept DHCPOFFER / DHCPACK on UDP 68. The
|
||||
# conntrack `established,related` clause above doesn't help
|
||||
# for DHCP because the request goes out from 0.0.0.0:68 and
|
||||
# the reply comes back broadcast (or unicast direct to the
|
||||
# offered IP before it's actually bound), neither of which
|
||||
# match the original 5-tuple. Without this rule networkd's
|
||||
# DHCP times out and secubox-net-fallback's ARP-probe takes
|
||||
# over — operator ends up on a random fallback subnet.
|
||||
udp dport 68 accept
|
||||
|
||||
# WireGuard
|
||||
udp dport 51820 accept
|
||||
|
||||
|
||||
@@ -377,8 +377,15 @@ enable_kiosk() {
|
||||
# Enable kiosk service
|
||||
systemctl enable secubox-kiosk.service
|
||||
|
||||
# Start kiosk
|
||||
systemctl start secubox-kiosk.service || log "Kiosk will start on next boot"
|
||||
# Start kiosk in the background so this caller doesn't block. The
|
||||
# service has Conflicts=getty@tty7.service + TTYPath=/dev/tty7 and
|
||||
# systemd will sometimes wait for /dev/tty7 to release / sync up,
|
||||
# which deadlocks a synchronous `systemctl start` invoked from
|
||||
# firstboot.sh (firstboot runs from inside the autologin shell on
|
||||
# tty1 itself — observed live USB hang where kiosk-setup ran for
|
||||
# 5+ minutes and the service stayed `inactive (dead)`).
|
||||
systemctl --no-block start secubox-kiosk.service \
|
||||
|| log "Kiosk will start on next boot"
|
||||
|
||||
ok "Kiosk mode enabled (${mode})"
|
||||
log "SecuBox WebUI will display on the connected screen"
|
||||
|
||||
@@ -345,17 +345,16 @@ generate_netplan() {
|
||||
forward-delay: 0
|
||||
"
|
||||
else
|
||||
# No LAN interfaces - just define empty bridge
|
||||
bridges=" bridges:
|
||||
br-lan:
|
||||
interfaces: []
|
||||
addresses: [192.168.1.1/24]
|
||||
dhcp4: false
|
||||
optional: true
|
||||
parameters:
|
||||
stp: false
|
||||
forward-delay: 0
|
||||
"
|
||||
# No LAN interfaces — DON'T create an empty br-lan with
|
||||
# 192.168.1.1/24. A member-less bridge with a static IP
|
||||
# squats the .1 address without routing anything, makes
|
||||
# systemd-networkd think the interface is "configured",
|
||||
# and frequently breaks DHCP on the real WAN NIC (the
|
||||
# router refuses a second .1/24 on its broadcast domain
|
||||
# or the bridge claims the gateway slot).
|
||||
# Live USB and single-NIC installs should just stay
|
||||
# WAN-only via the ethernet block above.
|
||||
bridges=""
|
||||
fi
|
||||
;;
|
||||
bridge)
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -16,6 +16,7 @@ Restart=on-failure
|
||||
RestartSec=5
|
||||
PrivateTmp=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
[Install]
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
PrivateTmp=true
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
ProtectSystem=full
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /var/cache/secubox /etc/secubox
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
PrivateTmp=true
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
ProtectSystem=full
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /srv/droplet
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -23,6 +23,7 @@ StartLimitBurst=5
|
||||
# ProtectSystem=full
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
# ReadWritePaths removed - causes NAMESPACE errors when haproxy not installed
|
||||
# (haproxy is Recommends, not Depends - /etc/haproxy may not exist)
|
||||
|
||||
@@ -16,6 +16,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /etc/sysctl.d /etc/modprobe.d
|
||||
|
||||
@@ -23,6 +23,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
LogsDirectory=secubox
|
||||
LogsDirectoryMode=0755
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -13,6 +13,7 @@ Restart=on-failure
|
||||
RestartSec=5
|
||||
PrivateTmp=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /etc/nftables.d
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
PrivateTmp=true
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
ProtectSystem=full
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /etc/nftables.d
|
||||
|
||||
@@ -19,6 +19,7 @@ Restart=on-failure
|
||||
RestartSec=5
|
||||
PrivateTmp=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
[Install]
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=false
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /sys/kernel/mm/ksm
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
PrivateTmp=true
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
ProtectSystem=full
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -19,6 +19,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=false
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /var/lib/lxc
|
||||
|
||||
@@ -19,6 +19,7 @@ RestartSec=5
|
||||
PrivateTmp=true
|
||||
NoNewPrivileges=false
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
ProtectSystem=full
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /var/lib/lxc
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -8,6 +8,7 @@ Type=simple
|
||||
User=secubox
|
||||
Group=secubox
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
WorkingDirectory=/usr/lib/secubox/mesh
|
||||
ExecStart=/usr/bin/python3 -m uvicorn api.main:app --uds /run/secubox/mesh.sock --workers 1
|
||||
Restart=always
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /var/cache/secubox /etc/secubox
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /var/cache/secubox /etc/secubox
|
||||
|
||||
@@ -11,6 +11,7 @@ ExecStart=/usr/bin/uvicorn api.main:app --uds /run/secubox/metoblizer.sock --wor
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
StateDirectory=secubox/metoblizer
|
||||
|
||||
[Install]
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /var/cache/secubox-mirror /etc/secubox /etc/nginx/secubox-mirror.d
|
||||
|
||||
@@ -19,6 +19,7 @@ RestartSec=5
|
||||
# Security
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
# Allow access to serial ports and modem devices
|
||||
|
||||
@@ -19,6 +19,7 @@ RestartSec=5
|
||||
# Security
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
# Allow access to serial ports and modem devices
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -16,6 +16,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /run/ndpid
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -16,6 +16,7 @@ Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /var/cache/secubox
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=false
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /etc/sysctl.d /proc/sys
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -8,6 +8,7 @@ Type=simple
|
||||
User=secubox
|
||||
Group=secubox
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
ExecStart=/usr/bin/python3 -m uvicorn api.main:app --uds /run/secubox/p2p.sock --workers 1
|
||||
WorkingDirectory=/usr/lib/secubox/p2p
|
||||
Restart=on-failure
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -18,6 +18,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox-repo /var/www/apt.secubox.in /tmp
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /var/cache/secubox /etc/secubox
|
||||
|
||||
@@ -8,6 +8,7 @@ Type=simple
|
||||
User=secubox
|
||||
Group=secubox
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
WorkingDirectory=/usr/lib/secubox/roadmap
|
||||
ExecStart=/usr/bin/python3 -m uvicorn api.main:app --uds /run/secubox/roadmap.sock --workers 1
|
||||
Restart=always
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/rtty /var/log/rtty /var/log/secubox
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/cache/secubox
|
||||
|
||||
@@ -13,6 +13,7 @@ Group=root
|
||||
WorkingDirectory=/usr/lib/secubox/simplex
|
||||
ExecStart=/usr/bin/python3 -m uvicorn api.main:app --uds /run/secubox/simplex.sock --log-level warning
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0755
|
||||
UMask=0117
|
||||
Restart=on-failure
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /etc/postfix /var/log/mail.log
|
||||
|
||||
@@ -13,6 +13,7 @@ ExecReload=/bin/kill -HUP $MAINPID
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0755
|
||||
|
||||
# Security hardening
|
||||
|
||||
@@ -13,6 +13,7 @@ ExecReload=/bin/kill -HUP $MAINPID
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0755
|
||||
|
||||
# Security hardening
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /srv/streamlit
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /srv/streamlit
|
||||
|
||||
@@ -18,6 +18,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
LogsDirectory=secubox
|
||||
LogsDirectoryMode=0755
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -17,6 +17,7 @@ UMask=0000
|
||||
# ProtectSystem=full
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/suricata /var/log/secubox
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -19,6 +19,7 @@ RestartSec=5
|
||||
PrivateTmp=true
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
ProtectSystem=full
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /var/cache/secubox /etc/secubox /srv/torrent
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/turnserver.conf /var/log/turnserver /var/log/secubox
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -19,6 +19,7 @@ RestartSec=5
|
||||
PrivateTmp=true
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
ProtectSystem=full
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /var/cache/secubox /etc/secubox /srv/voip
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -14,6 +14,7 @@ RestartSec=5
|
||||
UMask=0000
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
LogsDirectory=secubox
|
||||
LogsDirectoryMode=0755
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -15,6 +15,7 @@ UMask=0000
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/secubox /var/log/secubox
|
||||
|
||||
@@ -17,6 +17,7 @@ RestartSec=5
|
||||
|
||||
NoNewPrivileges=true
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0775
|
||||
|
||||
ReadWritePaths=/run/secubox /var/lib/secubox /etc/wireguard /var/log/secubox
|
||||
|
||||
@@ -9,6 +9,7 @@ User=secubox
|
||||
Group=secubox
|
||||
WorkingDirectory=/usr/lib/secubox/zkp
|
||||
RuntimeDirectory=secubox
|
||||
RuntimeDirectoryPreserve=yes
|
||||
RuntimeDirectoryMode=0755
|
||||
ExecStart=/usr/bin/python3 -m uvicorn api.main:app --uds /run/secubox/zkp.sock
|
||||
Restart=always
|
||||
|
||||
Reference in New Issue
Block a user