Root acess

Matthias Klumpp matthias at tenstral.net
Mon Apr 17 09:44:41 UTC 2023


Am Mo., 17. Apr. 2023 um 11:11 Uhr schrieb Alexander Larsson <alexl at redhat.com>:
>
> In general flatpak cannot support privilege escalation. However, you
> can run a flatpak app as root. So, the only way to do this really is
> to create a flatpak app, install it (system-wide) and then run it as
> root, for example using sudo.

Could you maybe also try to call out to the host's pkexec (using
flatpak-spawn) if it exists to change settings? You couldn't call any
binary in the bundle that way, but you could execute shell scripts on
the host with elevated privileges.
It's a hack and requires a bit of host cooperation, but might also work...

Cheers,
    Matthias

-- 
I welcome VSRE emails. See http://vsre.info/


More information about the Flatpak mailing list