Executor error in custom driver plugin

I’m attempting to build a small Nomad plugin that will run an app using flatpak, but I keep getting an “operation not permitted” error, and I’m having trouble determining how the process is ultimately executed. Can someone help me understand why I’m seeing this error?

For reference, here is where I’m seeing the error in my code.

Hi @me11; taking an initial look it seems this could be a permissions problem with the user damien accessing the flatpack binary. Are you able to confirm that this user has permissions to execute the application binary?

Additionally what permissions does the Nomad client have? As a test, it would be worth trying to run this with root permissions.

Thanks,
jrasell and the Nomad team

Yeah, the command works when I execute it normally.