[Linux] Use EnumSet for FilePermission
[Linux] Fix previous commit (use toBitSet instead of toSet with
FilePermission)