System and method for identifying a file path using tree data structure
First Claim
1. A method for identifying a path in a tree data structure having a plurality of levels, the method comprising:
- receiving a request from a software application to access a resource in a computer file system using a requested path to the resource;
identifying, by a hardware processor, a first element in the requested path to the resource;
comparing, by the hardware processor, the first element with a plurality of nodes in a first level of the tree data structure to identify an exact match, wherein the tree data structure comprises a nested listing of paths in the computer file system, the listing corresponding to paths permissible to access by the software application;
when the hardware processor does not identify an exact match between the first element and one of the plurality of nodes in the first level of the tree data structure, comparing the first element with at least one mask node in the first level of the tree data structure to identify a match by mask and wherein during comparing, narrower masks are compared with the first element before broader and recursive masks;
the hardware processor does not identify a match by mask between the first element and one of the at least one mask nodes in the first level of the tree data structure, determining that the requested path is not in the tree data structure;
granting the software application access to the resource in the computer file system using the requested path only when the requested path is in the tree data structure.
1 Assignment
0 Petitions
Accused Products
Abstract
Disclosed is a system and method for identifying a path in a tree data structure having a plurality of levels. An example method includes receiving a request from a software application to access a resource in a computer file system using a requested path; identifying a first element in the requested path; comparing the first element with nodes in a first level of the tree data structure to identify an exact match; if the first element does not have an exact match, comparing the first element with at least one mask node in the first level of the tree data structure to identify a match by mask; and if the first element does not match one of mask nodes in the first level of the tree data structure, determining that the requested path is not in the tree data structure.
-
Citations
21 Claims
-
1. A method for identifying a path in a tree data structure having a plurality of levels, the method comprising:
- receiving a request from a software application to access a resource in a computer file system using a requested path to the resource;
identifying, by a hardware processor, a first element in the requested path to the resource;
comparing, by the hardware processor, the first element with a plurality of nodes in a first level of the tree data structure to identify an exact match, wherein the tree data structure comprises a nested listing of paths in the computer file system, the listing corresponding to paths permissible to access by the software application;
when the hardware processor does not identify an exact match between the first element and one of the plurality of nodes in the first level of the tree data structure, comparing the first element with at least one mask node in the first level of the tree data structure to identify a match by mask and wherein during comparing, narrower masks are compared with the first element before broader and recursive masks;
the hardware processor does not identify a match by mask between the first element and one of the at least one mask nodes in the first level of the tree data structure, determining that the requested path is not in the tree data structure;
granting the software application access to the resource in the computer file system using the requested path only when the requested path is in the tree data structure. - View Dependent Claims (2, 3, 4, 5, 6, 7)
- receiving a request from a software application to access a resource in a computer file system using a requested path to the resource;
-
8. A system for identifying a path in a tree data structure having a plurality of levels, the system comprising:
- a hardware processor configured to;
receive a request from a software application to access a resource in a computer file system using a requested path to the resource;
identify a first element in the requested path to the resource;
compare the first element with a plurality of nodes in a first level of the tree data structure to identify an exact match, wherein the tree data structure comprises a nested listing of paths in the computer file system, the listing corresponding to paths permissible to access by the software application, wherein, when the hardware processor does not identify an exact match between the first element and one of the plurality of nodes in the first level of the tree data structure, the hardware processor is further configured to compare the first element with at least one mask node in the first level of the tree data structure to identify a match by mask and wherein during comparing, narrower masks are compared with the first element before broader and recursive masks, wherein, when the hardware processor does not identify a match by mask between the first element and one of the at least one mask nodes in the first level of the tree data structure, the hardware processor is further configured to determine that the requested path is not in the tree data structure; and
wherein the hardware processor is further configured to grant the software application access to the resource in the computer file system using the requested path only when the requested path is in the tree data structure. - View Dependent Claims (9, 10, 11, 12, 13, 14)
- a hardware processor configured to;
-
15. A non-transitory computer readable medium storing computer executable instructions for identifying a path in a tree data structure having a plurality of levels, including instructions for:
- receiving a request from a software application to access a resource in a computer file system using a requested path to the resource;
identifying, by a hardware processor, a first element in the requested path to the resource;
comparing, by the hardware processor, the first element with a plurality of nodes in a first level of the tree data structure to identify an exact match, wherein the tree data structure comprises a nested listing of paths in the computer file system, the listing corresponding to paths permissible to access by the software application;
when the hardware processor does not identify an exact match between the first element and one of the plurality of nodes in the first level of the tree data structure, comparing the first element with at least one mask node in the first level of the tree data structure to identify a match by mask and wherein during comparing, narrower masks are compared with the first element before broader and recursive masks;
when the hardware processor does not identify a match by mask between the first element and one of the at least one mask nodes in the first level of the tree data structure, determining that the requested path is not in the tree data structure; and
granting the software application access to the resource in the computer file system using the requested path only when the requested path is in the tree data structure. - View Dependent Claims (16, 17, 18, 19, 20, 21)
- receiving a request from a software application to access a resource in a computer file system using a requested path to the resource;
Specification