FileIO Permission

Adds a FileIOPermission to the project. Controls the ability to access files and folders.

Recipe Description

The recipe adds a line for the permission to the Package.Template.xml (for VS 2010 projects) or to the file CASPolicy.txt (for HIVE projects). Warning: Existing permissions with the same name are replaced completely.

Arguments

Name Description
Read Optional text. Read access to the contents of the file or access to information about the file, such as its length or last modification time.
Write Optional text. Write access to the contents of the file or access to change information about the file, such as its name. Also allows for deletion and overwriting.
Append Optional text. Ability to write to the end of a file only. No ability to read.
Path Discovery Optional text. Access to the information in the path itself. This helps protect sensitive information in the path, such as user names, as well as information about the directory structure revealed in the path. This value does not grant access to files or folders represented by the path.
Unrestricted Optional Boolean. If Unrestricted is true, the other settings will be ignored.

Authors

  • Torsten Mandelkow

Version history

  • 1.0 Initial Recipe