If cockpit-desktop is invoked as the root user, having a root cockpit desktop inside the browser is fine. But it should not start the browser itself (webkit, firefox, etc.) as root. Instead, detect this and run the browser as an unprivileged user (perhaps adm?) with a temporary home directory.
If cockpit-desktop is invoked as the root user, having a root cockpit desktop inside the browser is fine. But it should not start the browser itself (webkit, firefox, etc.) as root. Instead, detect this and run the browser as an unprivileged user (perhaps
adm
?) with a temporary home directory.