FreeBSD/sys/security/audit/audit_pipe.c
/*
 * Query the per-pipe mask for a specific auid.
 */
Query the per-pipe mask for a specific auid.
Query the per - pipe mask for a specific auid .
static int
audit_pipe_preselect_get(struct audit_pipe *ap, au_id_t auid,
    au_mask_t *maskp)
{
	struct audit_pipe_preselect *app;
	int error;
	AUDIT_PIPE_LOCK(ap);
	app = audit_pipe_preselect_find(ap, auid);
	if (app != NULL) {
		*maskp = app->app_mask;
		error = 0;
	} else
		error = ENOENT;
	AUDIT_PIPE_UNLOCK(ap);
	return (error);
}
static int audit_pipe_preselect_get ( struct audit_pipe * ap , au_id_t auid , au_mask_t * maskp ) { struct audit_pipe_preselect * app ; int error ; AUDIT_PIPE_LOCK ( ap ) ; app = audit_pipe_preselect_find ( ap , auid ) ; if ( app != NULL ) { * maskp = app -> app_mask ; error = 0 ; } else error = ENOENT ; AUDIT_PIPE_UNLOCK ( ap ) ; return ( error ) ; }
Query the per-pipe mask for a specific auid.
Query the per - pipe mask for a specific auid .