Adding SetPermissions

Signed-off-by: Alex Rydzak <alex@rydzak.me>