LordOS — a free, fast and secure GNU/Linux distribution based on Debian, with its own desktop environment: display server and Wayland compositor in C, a React UI engine on QuickJS, and private native apps.
C cdebiandesktop-environmentebpffirewalllandlocklinuxlinux-distributionopen-sourceprivacyquickjsraspberry-pi-5reactsecuritywaylandwayland-compositor
/* appid.h — which app a process belongs to, by its cgroup (the launcher's root-owned scopes,
* sec/cgroup.h): ".../lordos-session-<uid>/app-lordos-<id>.scope[/...]" → "desktop:<id>",
* "app-lordos-lpk-<id>.scope" → "lpk:<id>" (fw_app_canon). Used by the notification server and the
* PipeWire guard to apply the firewall's restrictions to Linux apps. */
#ifndef LORD_SEC_APPID_H
#define LORD_SEC_APPID_H
#include <stddef.h>
/* From a cgroup path (the "0::" line of /proc/<pid>/cgroup, without "0::"). 0 ok, -1 not an app's scope. */
int appid_of_cgroup(const char *path, char *out, size_t n);
/* From a PID. 0 ok, 1 the process is in no app's scope, -1 it can't be read (gone). */
int appid_of_pid(unsigned pid, char *out, size_t n);
#endif