Implement Access Checks

Implment access checks for DOS and POSIX.

Fixes #7
Fixes #8