Updated the find and update functions to do access checking

Signed-off-by: license2e <ilya@shindyapin.com>