process can obtain its session ID using getsid (2), and its process group ID using ... getpgrp (2), getpid (2), getppid (2), getsid (2), kill (2), setegid (2), seteuid (2), setfsgi…