How devopstem/plna_os works
PLNA OS is a security-focused OS for retail, smart-home, and Game Club devices. The principal user flow is an installed app launched in a sandbox, which uses the SDK to request mediated services; ipcd checks capability permissions and routes requests to brokers that access device or system resources. The planogram app syncs aisle and beacon data, then presents it through the shell’s Wayland UI, with a headless mode. The graph preserves documented package, update, hardware, and security capabilities. Some subsystem links are documented or inferred rather than shown in sampled call sites, and are marked dashed or left out.
Main entry points: src/main.cpp IPC permission router · src/main.cpp Planogram app · manifest.cpp Package manifest · sysfs.cpp Hardware abstraction
Components 24
Apps and UI
- Planogram app
apps/retail_planogram/src/main.cpp - PLNA SDK
libs/plna_sdk/src/client.cpp - System shell
system/plna-shell/src/wayland_shell.cpp
Package and security
- Package tools
tools/mkplna/src/main.cpp - Package manifest
libs/plna_manifest/src/manifest.cpp - Package installer
system/packaged/src/main.cpp - App launcher
system/plna-spawn/src/main.cpp - Sandbox controls
libs/plna_sandbox/src/spawn.cpp - Security service
system/securityd/src/main.cpp - Signing and hashes
libs/plna_crypto/src/ed25519.cpp
IPC and brokers
- IPC permission router
system/ipcd/src/main.cpp - IPC protocol
libs/plna_ipc/include/plna/ipc/protocol.hpp - Data broker
system/datad/src/main.cpp - Database store
system/datad/src/db_store.cpp - Notification broker
system/notifd/src/main.cpp - Network broker
system/netd/src/main.cpp - Camera broker
system/camerad/src/main.cpp - MQTT broker
system/mqttd/src/main.cpp
Hardware services
- Hardware abstraction
libs/plna_hal/src/sysfs.cpp - Device brokers
system
Platform services
- Update service
system/updated/src/main.cpp - System initialization
system/plna-init/src/main.cpp - Power service
system/powerd/src/main.cpp
Other components
- Device user
Connections 27
- Device user → Planogram app: uses
README.md - Planogram app → PLNA SDK: calls
apps/retail_planogram/src/main.cpp - PLNA SDK → IPC permission router: requests services
- IPC permission router → IPC protocol: parses and forwards
system/ipcd/src/main.cpp - IPC permission router → Data broker: routes requests
system/ipcd/src/main.cpp - IPC permission router → Network broker: routes requests
system/ipcd/src/main.cpp - IPC permission router → Camera broker: routes requests
system/ipcd/src/main.cpp - IPC permission router → Notification broker: routes requests
system/ipcd/src/main.cpp - IPC permission router → MQTT broker: routes requests
system/ipcd/src/main.cpp - Data broker → Database store: uses store
system/datad/src/main.cpp - Planogram app → Data broker: syncs aisle data
apps/retail_planogram/src/main.cpp - Planogram app → Notification broker: sends notification
apps/retail_planogram/src/main.cpp - Planogram app → System shell: presents UI
README.md - Package tools → Package manifest: creates package metadata
tools/mkplna/src/main.cpp - Package installer → Package manifest: parses metadata
system/packaged/src/main.cpp - Package installer → Signing and hashes: verifies package
system/packaged/src/main.cpp - App launcher → Package manifest: loads app manifest
system/plna-spawn/src/main.cpp - App launcher → Sandbox controls: launches sandbox
system/plna-spawn/src/main.cpp - App launcher → Planogram app: launches installed app
README.md - Security service → Package manifest: reads permissions
system/securityd/src/main.cpp - Security service → Signing and hashes: mints signed claims
- System initialization → Security service: runs self-check
system/plna-init/src/main.cpp - Device brokers → Hardware abstraction: probes devices
README.md - Power service → Hardware abstraction: reads battery state
system/powerd/src/main.cpp - Network broker → Hardware abstraction: probes interfaces
system/netd/src/main.cpp - Camera broker → Hardware abstraction: probes video devices
system/camerad/src/main.cpp - Update service → IPC permission router: uses service IPC