Skip to content
Commit 8cb27763 authored by Philip Withnall's avatar Philip Withnall
Browse files

flatpak-dir: Fix parental controls checks for root



These checks were broken in commit d762a2f5, as the commit failed to
consider the fact that `flatpak_dir_check_parental_controls()` is run
both in the `flatpak` CLI process run by the user, but also in the
`flatpak-system-helper` process which always runs as root, and which
handles any installations done on the system repository.

As a result, parental controls were not working for the system
repository.

Fix that by limiting the scope of the check to only pass if running
without the system helper. flatpak calls from root never go through the
system helper.

Signed-off-by: default avatarPhilip Withnall <pwithnall@endlessos.org>

Fixes: #4418
parent b4e838a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment