Add implementation for check_privilege_by_pid in security server 2