diff options
author | Brian Behlendorf <[email protected]> | 2011-07-01 11:25:07 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-07-01 12:23:46 -0700 |
commit | e2e7aa2df88708cdcae87688a69ba3f5d1cc43ed (patch) | |
tree | 392911d19bf1a0e0b1fd0e8862de029fa47e7be6 /lib/libspl | |
parent | f0b2486034f6a4d8cd1a139ff4604e6b9629a64e (diff) |
Add ZFS specific mmap() checks
Under Linux the VFS handles virtually all of the mmap() access
checks. Filesystem specific checks are left to be handled in
the .mmap() hook and normally there arn't any.
However, ZFS provides a few attributes which can influence the
mmap behavior and should be honored. Note, currently the code
to modify these attributes has not been implemented under Linux.
* ZFS_IMMUTABLE | ZFS_READONLY | ZFS_APPENDONLY: when any of these
attributes are set a file may not be mmaped with write access.
* ZFS_AV_QUARANTINED: when set a file file may not be mmaped with
read or exec access.
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'lib/libspl')
0 files changed, 0 insertions, 0 deletions