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: Philip Withnall <pwithnall@endlessos.org> Fixes: #4418
Loading
Please register or sign in to comment