freebsd-skq/sys/security/audit
Ed Schouten 29d4cb241b Don't enforce unique device minor number policy anymore.
Except for the case where we use the cloner library (clone_create() and
friends), there is no reason to enforce a unique device minor number
policy. There are various drivers in the source tree that allocate unr
pools and such to provide minor numbers, without using them themselves.

Because we still need to support unique device minor numbers for the
cloner library, introduce a new flag called D_NEEDMINOR. All cdevsw's
that are used in combination with the cloner library should be marked
with this flag to make the cloning work.

This means drivers can now freely use si_drv0 to store their own flags
and state, making it effectively the same as si_drv1 and si_drv2. We
still keep the minor() and dev2unit() routines around to make drivers
happy.

The NTFS code also used the minor number in its hash table. We should
not do this anymore. If the si_drv0 field would be changed, it would no
longer end up in the same list.

Approved by:	philip (mentor)
2008-06-11 18:55:19 +00:00
..
audit_arg.c When auditing state from an IPv4 or IPv6 socket, use read locks on the 2008-04-19 18:37:08 +00:00
audit_bsm_klib.c Use __FBSDID() for $FreeBSD$ IDs in the audit code. 2008-04-13 22:06:56 +00:00
audit_bsm_token.c Use __FBSDID() for $FreeBSD$ IDs in the audit code. 2008-04-13 22:06:56 +00:00
audit_bsm.c Use __FBSDID() for $FreeBSD$ IDs in the audit code. 2008-04-13 22:06:56 +00:00
audit_ioctl.h
audit_pipe.c Don't enforce unique device minor number policy anymore. 2008-06-11 18:55:19 +00:00
audit_private.h
audit_syscalls.c Use __FBSDID() for $FreeBSD$ IDs in the audit code. 2008-04-13 22:06:56 +00:00
audit_trigger.c Use __FBSDID() for $FreeBSD$ IDs in the audit code. 2008-04-13 22:06:56 +00:00
audit_worker.c When the file-system containing the audit log file is running low on 2008-06-10 20:05:32 +00:00
audit.c Add an XXX comment regarding a bug I introduced when modifying the behavior 2008-06-03 11:06:34 +00:00
audit.h When testing whether to enter the audit argument gathering code, rather 2008-05-06 00:32:23 +00:00