Put the proc_audit_appl privilege in the forced and allowed privilege sets of the executable file containing the example source code by executing setfpriv(1) from the profile shell with the file_setpriv privilege. "Assigning File Privileges using a Script" explains how to do this with a script.
phoenix% setfpriv -s -f proc_audit_appl -a proc_audit_appl executable.file |