in reply to Re^2: getting root permissions via program
in thread getting root permissions via program
If your program is owned by root, and only executable by root, then no one will be allowed to run it unless they are root, or use sudo, so you don't really need to check further.