* Is the client *potentially* able to access this path? Actual * permission will depend on uids/modes in the full is_capable. */
| 210 | * permission will depend on uids/modes in the full is_capable. |
| 211 | */ |
| 212 | bool MDSAuthCaps::path_capable(string_view inode_path) const |
| 213 | { |
| 214 | for (const auto &i : grants) { |
| 215 | if (i.match.match_path(inode_path)) { |
| 216 | return true; |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | return false; |
| 221 | } |
| 222 | |
| 223 | /** |
| 224 | * For a given filesystem path, query whether this capability carries` |
no test coverage detected