* Query the per-pipe mask for a specific auid. */
| 288 | * Query the per-pipe mask for a specific auid. |
| 289 | */ |
| 290 | static int |
| 291 | audit_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; |
no test coverage detected