MCPcopy Create free account
hub / github.com/F-Stack/f-stack / audit_pipe_preselect_get

Function audit_pipe_preselect_get

freebsd/security/audit/audit_pipe.c:290–306  ·  view source on GitHub ↗

* Query the per-pipe mask for a specific auid. */

Source from the content-addressed store, hash-verified

288 * Query the per-pipe mask for a specific auid.
289 */
290static int
291audit_pipe_preselect_get(struct audit_pipe *ap, au_id_t auid,
292 au_mask_t *maskp)
293{
294 struct audit_pipe_preselect *app;
295 int error;
296
297 AUDIT_PIPE_LOCK(ap);
298 app = audit_pipe_preselect_find(ap, auid);
299 if (app != NULL) {
300 *maskp = app->app_mask;
301 error = 0;
302 } else
303 error = ENOENT;
304 AUDIT_PIPE_UNLOCK(ap);
305 return (error);
306}
307
308/*
309 * Set the per-pipe mask for a specific auid. Add a new entry if needed;

Callers 1

audit_pipe_ioctlFunction · 0.85

Calls 1

Tested by

no test coverage detected