add test script

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
may_access: allow root on host all perms

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
remove bogus test

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
make sure to always raise an error before returning -1

Else daemon will exit with an assert.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>