Robert Watson
738824ad6c
As new objects begin to support new labels, start to generalize
...
the default label support in /etc/mac.conf. Rather than maintain
each default label type in an explicit global variable in mac.c,
keep a list of defaults loaded from the configuration file.
Generalize the parsing so that we support both the older:
default_file_labels foo
default_ifnet_labels foo
default_process_labels foo
And also a new:
default_labels file foo
default_labels ifnet foo
default_labels process foo
We now accept arbitrary object classes in the first argument. If
the same object is specified more than once, we discard the
earlier definition in favor of the later one.
Add a new API, mac_prepare_type(), which accepts a mac_t to
prepare, as well as an object name in the second argument, which
will pull a default label set for the object out of the
configuration loaded by mac_init_internal(). This permits the libc
to adapt to new objects known about by applications but not by libc
at compile-time.
Also liberalize the error handling a bit: if we're using implicit
initialization (i.e., the application didn't explicitly initialize
the MAC code), ignore syntax errors and only use valid lines. In
the future, we may want to add explicit warnings and do this a
bit more consistently.
While here, add support for a MAC_CONFFILE environmental variable,
which may be used to specify an alternative mac.conf configuration
file if the application isn't running with modified privilege
(issetugid()).
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
2003-08-22 17:36:23 +00:00
Bruce A. Mah
e006178ab7
Use manpage entities for hme(4) and gem(4).
2003-08-22 17:36:14 +00:00
Mark Murray
a272cd3af0
Warns fixes. Mainly unused headers/params/vars removal, but also
...
some malloc cleanup.
2003-08-22 17:32:07 +00:00
Nate Lawson
b842ac21d6
Add a section on maintaining a local branch in CVS.
...
MFC after: 1 day
2003-08-22 17:12:55 +00:00
Nate Lawson
72c5c840ff
Add the DA_Q_NO_PREVENT quirk which keeps da(4) from sending PREVENT/ALLOW
...
commands. Add a quirk for the Creative Nomad MuVo USB device that uses
it as well as NO_SYNCHRONIZE_CACHE.
PR: kern/53094
Submitted by: Richard Nyberg <rnyberg@it.su.se>
MFC after: 3 days
2003-08-22 16:35:53 +00:00
Warner Losh
74455e5526
Now that the pci include file location migration has been completed,
...
remove the -I$S/dev and -I@/dev which were there only for pci.
# If I've broken something, please let me know.
2003-08-22 15:41:44 +00:00
Warner Losh
f2e618d5b2
fix reference to pci/pcireg.h
2003-08-22 15:35:37 +00:00
Warner Losh
5ccace6f2c
Prefer new location of pci include files (which have only been in the
...
tree for two or more years now), except in a few places where there's
code to be compatible with older versions of FreeBSD.
2003-08-22 15:28:22 +00:00
Warner Losh
2eeb7c30dc
Prefer new location of pci include files (which have only been in the
...
tree for two or more years now), except in a few places where there's
code to be compatible with older versions of FreeBSD.
2003-08-22 15:06:24 +00:00
Robert Watson
2b6e83104c
Correct typo introduced during manual merge: hook up the reflect_tcp
...
test to the reflect_tcp entry point, rather than the reflect_icmp
entry point.
Submitted by: naddy
2003-08-22 12:32:07 +00:00
Paul Saab
e65b213768
Change the the size fields to daddr_t to support greater than 2TB ccd volumes.
...
Reviewed by: phk
2003-08-22 11:21:06 +00:00
Poul-Henning Kamp
f63679713e
Make CCD unloadable.
2003-08-22 11:04:47 +00:00
Poul-Henning Kamp
1f75de94ea
Don't panic over the fact that unloading failed if we already knew that.
2003-08-22 11:00:54 +00:00
Poul-Henning Kamp
e30b2eda02
Block all GETATTR calls hitting the CCD, we wouldn't know which child
...
device should handle them.
This prevents for instance GEOM::ioctl requests from reaching a
lower BSDlabel node, which ps@ found would confuse newfs(8).
2003-08-22 10:28:19 +00:00
Poul-Henning Kamp
92b5e86ebf
Check for null softc pointers, these happens when a ccd is withering.
...
Found by: David Schultz <dschultz@OCF.Berkeley.EDU>
2003-08-22 10:22:46 +00:00
Warner Losh
572e53c2ac
Add newly discovered ENE Technologies CardBus bridges to the list:
...
CB710, CB720, CB1211, CB1225, CB1410 and CB1420
These are likely licensed designed from TI, and the Linux PCMCIA code
treats them as TI chips.
Add comment, but no ID for the 711E1 from O2Micro.
2003-08-22 08:49:56 +00:00
Warner Losh
d2c5276d96
Prefer new location of pci include files (which have only been in the
...
tree for two or more years now), except in a few places where there's
code to be compatible with older versions of FreeBSD.
2003-08-22 07:39:05 +00:00
Hidetoshi Shimokawa
2109dbc4e5
Make this compiled on RELENG_4.
2003-08-22 07:33:20 +00:00
Hidetoshi Shimokawa
1a75370022
Comment out verbose debug messages.
2003-08-22 07:30:41 +00:00
Warner Losh
19b7ffd1b8
Prefer new location of pci include files (which have only been in the
...
tree for two or more years now), except in a few places where there's
code to be compatible with older versions of FreeBSD.
2003-08-22 07:20:27 +00:00
Warner Losh
90cf0136c4
Prefer new location of pci include files (which have only been in the
...
tree for two or more years now), except in a few places where there's
code to be compatible with older versions of FreeBSD.
2003-08-22 07:08:17 +00:00
Warner Losh
38d8c9940b
Prefer new location of pci include files (which have only been in the
...
tree for two or more years now), except in a few places where there's
code to be compatible with older versions of FreeBSD.
2003-08-22 06:42:59 +00:00
Warner Losh
51d3b6d1cc
Define a module version.
2003-08-22 06:28:45 +00:00
Warner Losh
b63ff62456
Prefer new location of pci include files (which have only been in the
...
tree for two or more years now), except in a few places where there's
code to be compatible with older versions of FreeBSD.
2003-08-22 06:17:16 +00:00
Warner Losh
cace7a2a4d
Prefer new location of pci include files (which have only been in the
...
tree for two or more years now), except in a few places where there's
code to be compatible with older versions of FreeBSD.
2003-08-22 06:06:16 +00:00
Warner Losh
77e6a3b2dd
Prefer new location of pci include files (which have only been in the
...
tree for two or more years now), except in a few places where there's
code to be compatible with older versions of FreeBSD.
2003-08-22 06:00:27 +00:00
Nate Lawson
6c3bdd6dee
Quirk for Jungsoft NEXDISK USB flash key. Fails to mount without
...
NO_SYNCHRONIZE_CACHE.
PR: kern/54737
Submitted by: David Thiel <lx@redundancy.redundancy.org>
MFC after: 3 days
2003-08-22 05:58:23 +00:00
Nate Lawson
f6681bd6f0
SHUTTLE_INIT quirk for EXATELECOM i-Bead mp3 player
2003-08-22 05:54:57 +00:00
Warner Losh
4fbd232c86
Prefer new location of pci include files (which have only been in the
...
tree for two or more years now), except in a few places where there's
code to be compatible with older versions of FreeBSD.
2003-08-22 05:54:52 +00:00
Alan Cox
3c5a69f7d0
Eliminate the last (direct) use of vm_page_lookup() on the pte object.
2003-08-22 05:49:29 +00:00
Nate Lawson
e1dca0e939
Add quirks for the EXATELECOM i-Bead mp3 player.
...
PR: kern/51675
Submitted by: Nicolas Jombart <ecu@ipv42.net>
MFC after: 3 days
2003-08-22 05:43:30 +00:00
Warner Losh
42495c979e
Prefer new location for dev/pci/pci*.h
2003-08-22 05:11:30 +00:00
Warner Losh
dc5f7dd01b
Prefer the new location of dev/pci/pci*.h.
2003-08-22 05:09:35 +00:00
Alexander Kabaev
b82f80cdc5
Enable warn_system_heders by default.
2003-08-22 03:31:54 +00:00
Alexander Kabaev
7a4310c825
Merge FreeBSD modifications into gcc 3.3.1-prerelease:
...
1.2 don't let gcc(1) hide warnings in system headers.
Don't disable warning suppression unconditionally, but rather
make in dependent on warn_system_headers flag, one should be
able to use -Wno-system-headers flag if warnings from system
headers are not desired.
2003-08-22 03:26:30 +00:00
Alexander Kabaev
6ff1e7b00d
Merge FreeBSD modifications into gcc 3.3.1-release:
...
1.8 printf format error fixes.
2003-08-22 03:18:02 +00:00
Alexander Kabaev
d3a52ac3e0
Merge FreeBSD modifications into gcc 3.3.1-release:
...
1.2 Localize the version string.
2003-08-22 03:16:37 +00:00
Alexander Kabaev
63cde6278d
Merge FreeBSD modifications into gcc 3.3.1-release:
...
1.3 suppress warnings on K&R main.
2003-08-22 03:14:37 +00:00
Alexander Kabaev
5f020c09b4
Merge FreeBSD modifications into gcc 3.3.1-release:
...
1.2 -fformat-extensions.
1.7 FORCE_OPTIMIZATION_DOWNGRADE knob for Alpha.
1.14 -O0 -O1 optimize alignment for time, not size.
2003-08-22 03:13:20 +00:00
Warner Losh
b0cb115fb7
Prefer the uintXX_t to the u_intXX_t names.
2003-08-22 03:11:53 +00:00
Alexander Kabaev
d586a2745c
Stock files.
2003-08-22 03:10:47 +00:00
Alexander Kabaev
eaec871476
This commit was generated by cvs2svn to compensate for changes in r119262,
...
which included commits to RCS files with non-trunk default branches.
2003-08-22 02:57:17 +00:00
Alexander Kabaev
006ca56045
Gcc 3.3.1-release libf2c bits.
2003-08-22 02:57:17 +00:00
Alexander Kabaev
6a3139c3b5
This commit was generated by cvs2svn to compensate for changes in r119260,
...
which included commits to RCS files with non-trunk default branches.
2003-08-22 02:57:15 +00:00
Alexander Kabaev
211015e8b9
Gcc 3.3.1-release Objective C support bits.
2003-08-22 02:57:15 +00:00
Alexander Kabaev
af48dc19f9
This commit was generated by cvs2svn to compensate for changes in r119258,
...
which included commits to RCS files with non-trunk default branches.
2003-08-22 02:57:05 +00:00
Alexander Kabaev
6da669e5d1
Gcc 3.3.1-release C++ support bits.
2003-08-22 02:57:05 +00:00
Alexander Kabaev
eae42ca5bc
This commit was generated by cvs2svn to compensate for changes in r119256,
...
which included commits to RCS files with non-trunk default branches.
2003-08-22 02:56:07 +00:00
Alexander Kabaev
50ebf00d84
Gcc 3.3.1-release.
2003-08-22 02:56:07 +00:00
Warner Losh
566ef09073
Very minor style nit: sort include files alphabetically.
2003-08-22 02:22:59 +00:00