Security

Raw memory access is, by its nature, bad for security. The platform may refuse to permit raw access to any memory. It may set aside a pool of memory for raw memory access, or it may find some set of conditions that would qualify a thread for read or write access to memory-mapped devices or even internal operating system data structures.

The operating system (if any) and the JVM (if any) together must ensure that malicious or buggy code cannot damage anything but itself. This doesn't mean that the security system has to prevent bugs. A defective device driver will still be able to bring down the entire computer. The security system only isolates the problems. A defective device driver will not be able to cause a protection violation in ...

Get Real-Time Java™ Platform Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.