Add support for specifying read-only and read/write permissions