fdroidserver.execute_sudo module

Read the “sudo:” field from the build metadata then remove sudo.

This assumes that the source code has not yet been pushed into the VM, since the sudo: script should not be able to touch the source code. Then after the sudo: script is run, sudo is removed and the root account is locked so the build job can no longer run anything as sudo/root.

For more info, see: https://f-droid.org/docs/Build_Metadata_Reference/#build_sudo

fdroidserver.execute_sudo.execute_sudo_wrapper(appid, vercode, virt_container_type, build)
fdroidserver.execute_sudo.main()
fdroidserver.execute_sudo.sudo_lock_root(appid, vercode, virt_container_type)
fdroidserver.execute_sudo.sudo_run(appid, vercode, virt_container_type, build)
fdroidserver.execute_sudo.sudo_uninstall(appid, vercode, virt_container_type)