FPolicy receives a notification from the storage system for file open operations.
When a file open request is made by a CIFS or NFSv4 client to the storage system, the storage system conducts all the relevant checks on the file. The relevant checks include checking permissions, file availability, and whether the file is being accessed by another client. After the file passes the checks, if the file extension is included in the file policy extension include list, the request is forwarded to the FPolicy server. The FPolicy server receives this request and allows or blocks the file open request, based on the configuration of the policies.
If the storage system reboots, NFSv4 clients can reclaim file handles for files that were open before shutdown. After the storage system is functional again, if the FPolicy server connects to the storage system before the NFS clients, the storage system forwards the reclaim file as an open request to the FPolicy server.
If the FPolicy server connects to the storage system after the NFS clients, the storage system does not forward the open reclaim request as an open request to the FPolicy server. In this case, the NFS client gets the file handle using the NFSv4 reclaim operation.
To enable file extension-based screening for NFS operations, set the no_i2p option to off on the volume. This enables inode-to-path file name translation on the volume.
If you are running an FPolicy for Data ONTAP based application in NFSv4 environments, you must upgrade the FPolicy application to support NFSv4.
NFSv4 adds support for file OPEN and CLOSE events. Therefore, in applications based on previous releases of FPolicy, these file operations might appear as UNKNOWN event errors to the FPolicy application.
The file open operation should be added to the monitored operations list for the FPolicy server to receive a notification from the storage system. The file open operation can be monitored through CLI or ONTAPI. It can also be set by the FPolicy server using a bitmask.