All operations can be monitored in three ways. They can be set using a bitmask while registering an FPolicy server, they can be configured by using an ONTAPI call, and they can be configured using a CLI.
You can use different keywords to configure monitoring of the different operations supported by FPolicy. The following table lists the keywords used for each of the operations, when you attempt to configure them with the three options.
| Operation name | CLI Keyword | ONTAPI keyword | Registration key words | |
|---|---|---|---|---|
| Bit | Value | |||
| File open | open | file-open | FS_OP_OPEN | 0x0001 |
| File create | create | file-create | FS_OP_CREATE | 0x0002 |
| File close | close | file-close | FS_OP_CLOSE | 0x0008 |
| File rename | rename | file-rename | FS_OP_RENAME | 0x0004 |
| File delete | delete | file-delete | FS_OP_DELETE | 0x0010 |
| File write | write | file-write | FS_OP_WRITE | 0x4000 |
| File read | read | file-read | FS_OP_READ | 0x2000 |
| File link | link | link | FS_OP_LINK | 0x0400 |
| File symlink | symlink | symlink | FS_OP_SYMLINK | 0x0800 |
| Directory delete | directory-delete | directory-delete | FS_OP_DELETE_DIR | 0x0020 |
| Directory rename | directory-rename | directory-rename | FS_OP_RENAME_DIR | 0x0040 |
| Directory create | directory-create | directory-create | FS_OP_CREATE_DIR | 0x0080 |
| File lookup | lookup | lookup | FS_OP_LOOKUP | 0x1000 |
| Get attribute | getattr | getattr | FS_OP_GETATTR | 0x0100 |
| Set attribute | setattr | setattr | FS_OP_SETATTR | 0x0200 |