]> err.no Git - linux-2.6/blobdiff - kernel/auditsc.c
deny partial write for loop dev fd
[linux-2.6] / kernel / auditsc.c
index 3401293359e82f7bff1c9b3beb3d87e3e23707ae..0ae703c157ba3033a4e34c0ed012ca8812ba2e54 100644 (file)
@@ -1525,6 +1525,7 @@ add_names:
                        context->names[idx].ino = (unsigned long)-1;
        }
 }
+EXPORT_SYMBOL_GPL(__audit_inode_child);
 
 /**
  * auditsc_get_stamp - get local copies of audit_context values
@@ -2023,7 +2024,7 @@ int __audit_signal_info(int sig, struct task_struct *t)
                axp->d.next = ctx->aux_pids;
                ctx->aux_pids = (void *)axp;
        }
-       BUG_ON(axp->pid_count > AUDIT_AUX_PIDS);
+       BUG_ON(axp->pid_count >= AUDIT_AUX_PIDS);
 
        axp->target_pid[axp->pid_count] = t->tgid;
        selinux_get_task_sid(t, &axp->target_sid[axp->pid_count]);