I am running C++ program from user with sudo access rights. Binary was started with ./binName command.
./binName
From it i can execute sudo ls with
sudo ls