Skip to content

What the agent does

Agent loop

Each cycle (default every 5 minutes) the agent renews certificates when due, applies the declarations, runs the compliance checks, collects inventory and checks in; the steps are in Agent cycle. In addition it

  • asks the server every minute whether a command or an agent update waits (Command delivery),
  • serves the desktop app, the tray and limdm on /run/limdm/agent.sock,
  • installs missing tools it needs once a day (Dependencies),
  • starts the desktop helper in graphical sessions that did not start it themselves,
  • keeps enforcing the stored declarations while the server is unreachable, and locks the device after offline_lock_hours without contact when that is set.

The agent runs with lower CPU and I/O priority (systemd Nice=10, CPUWeight=20, IOSchedulingClass=best-effort with priority 7; on OpenRC nice 10 and ionice 2:7), so its background work yields to users on laptops and to workloads on servers. Package installs it starts inherit that priority.

Privacy options

Two features send data to third parties. Both are off by default and switched on in Settings, Security, Privacy:

  • Look up the location of device public addresses: the server sends a device's public address to LIMDM_GEOIP_URL (default ipwho.is) when it changes. The device page shows the location. The agent is not involved.
  • Agents may ask public DNS over HTTPS resolvers (Cloudflare, Google) when the system resolver fails: when the system resolver cannot resolve the server name, the agent asks 1.1.1.1, 8.8.8.8, 1.0.0.1 and 8.8.4.4 over HTTPS. The agent remembers the setting for its next start. "no_fallback_dns": true in /etc/limdm/agent.json keeps the fallback off on one device, whatever the server says.

The agent uses the declared proxy (com.limdm.proxy) for its own connections.

Tamper protection

  • limdm-agent.service refuses systemctl stop (RefuseManualStop) and restarts after a kill (Restart=always).
  • limdm-watchdog.timer runs limdm-agent watchdog every 5 minutes: it unmasks, enables and starts the agent when needed. The agent in turn keeps the watchdog timer enabled.
  • Removing the package needs a release from the console (More actions, Agent, Allow uninstall for 1 hour); otherwise the package manager stops with an error. Upgrades are not affected.
  • Everything found and fixed, and every removal attempt, is reported as a tamper event: the device page shows a notice, the audit log has an agent.tamper entry and the notification event device.tamper goes out.

A root user can still defeat this, for example by deleting the binaries or overriding the units. The goal is detection and self healing, not an absolute barrier: a device whose agent was removed stops checking in, turns stale and, with offline_lock_hours, locks itself.