PERFORCE change 141996 for review
Vincenzo Iozzo
snagg at FreeBSD.org
Wed May 21 22:09:30 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=141996
Change 141996 by snagg at snagg_macosx on 2008/05/21 22:09:21
style fixes
Affected files ...
.. //depot/projects/soc2008/snagg-audit/sys/security/audit/audit_pipe.c#14 edit
Differences ...
==== //depot/projects/soc2008/snagg-audit/sys/security/audit/audit_pipe.c#14 (text) ====
@@ -257,7 +257,8 @@
struct audit_pipe_preselect_event *event;
struct audit_pipe_preselect_event *ev_a;
- ev_a = malloc(sizeof(struct audit_pipe_preselect_event), M_AUDIT_PIPE_PRESELECT_EVENT, M_WAITOK);
+ ev_a = malloc(sizeof(struct audit_pipe_preselect_event),
+ M_AUDIT_PIPE_PRESELECT_EVENT, M_WAITOK);
ev_a->app_event = app_event;
ev_a->app_flag = event_flag;
@@ -265,7 +266,8 @@
TAILQ_FOREACH(app, &ap->ap_preselect_list, app_list) {
if(app->app_pid == app_pid) {
- if(app_event != -1) { /* Just skip if we are interested only in the pid*/
+ /* Just skip if we are interested only in the pid. */
+ if(app_event != -1) {
event = bsearch(ev_a, (app->app_auevents), app->app_event_len,
sizeof(struct audit_pipe_preselect_event),
audit_pipe_compare_preselect_event);
@@ -595,10 +597,12 @@
app = audit_pipe_preselect_find_event(ap, event, app_pid, sorf);
if(app != NULL)
return (1);
+
case AUDITPIPE_PRESELECT_MODE_PID:
app = audit_pipe_preselect_find_event(ap, -1, app_pid, -1);
if(app != NULL)
return (1);
+
default:
panic("audit_pipe_preselect_check: mode %d",
ap->ap_preselect_mode);
More information about the p4-projects
mailing list