Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
T
Tidal
  • Overview
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • PLN
  • Tidal
  • Repository

Switch branch/tag
  • Tidal
  • tools
  • install-protect.sh
Find file
BlameHistoryPermalink
  • PLN (Algolia)'s avatar
    fix(protect): the installer was not idempotent, so the fix did not take · 4f125e14
    Reinstalled after adding CAP_DAC_OVERRIDE and nothing changed: the unit on disk
    was correct, daemon-reload had run, NeedDaemonReload said no — and the running
    process still held the old three capabilities, same PID and start time as before
    the install.
    
    `systemctl enable --now` starts a STOPPED unit and does nothing to a RUNNING
    one. So every re-install silently kept the previous daemon, with the previous
    unit's capabilities and the previous script's inode, while printing success.
    
    - restart instead of enable --now (it holds no ports and makes no sound)
    - assert the LIVE /proc capability set after restart, and say plainly that
      protection is decoration until that line reads ok
    
    Third layer of one lesson tonight: a correct file on disk is not a correct
    process in memory.
    PLN (Algolia) authored Sep 06, 2026
    4f125e14
install-protect.sh 3.84 KB
EditWeb IDE
×

Replace install-protect.sh

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.