Using Managed Directories to Control Access to File System Content
Illustrative systems and methods use managed directories to control access to file system content. For example, in accordance with some embodiments, a data storage system establishes, in a file system, a managed directory as metadata referenced by all files and directories in a path set and establishes an access policy for the managed directory, wherein the metadata serves as a common shared data structure for associating the access policy with all files and directories in the path set.
1 . A data storage system comprising:
a memory storing instructions; and
a processor communicatively coupled to the memory and configured to execute the instructions to:
establish, in a file system, a managed directory as metadata referenced by all files and directories in a path set; and
establish an access policy for the managed directory, wherein the metadata serves as a common shared data structure for associating the access policy with all files and directories in the path set.
2 . The data storage system of claim 1 , wherein the access policy comprises a view policy.
3 . The data storage system of claim 2 , wherein the view policy comprises an access-based enumeration (ABE) policy.
4 . The data storage system of claim 2 , wherein the view policy defines a restriction based on an attribute of a source of a request to view files and subdirectories of the managed directory.
5 . The data storage system of claim 4 , wherein the restriction is based on an Internet Protocol (IP) address.
6 . The data storage system of claim 4 , wherein the restriction is based on a range of Internet Protocol (IP) addresses.
7 . The data storage system of claim 4 , wherein the restriction is based on a geographic region.
8 . The data storage system of claim 2 , wherein the view policy defines a restriction based on a file attribute.
9 . The data storage system of claim 2 , wherein the view policy defines a restriction based on at least one of a user attribute or a group attribute.
10 . The data storage system of claim 2 , wherein the view policy defines a restriction based on file content and is configured to obfuscate data in files that satisfies the restriction.
11 . The data storage system of claim 2 , wherein the view policy defines a restriction based on file content and is configured to filter out files including file content that satisfies the restriction.
12 . The data storage system of claim 1 , wherein the access policy is configured to encrypt content of files being accessed.
13 . The data storage system of claim 1 , wherein the access policy is configured to restrict creation of files and directories in the managed directory based on an attribute of a requestor.
14 . The data storage system of claim 1 , wherein the access policy is configured to restrict writing of files in the managed directory based on an attribute of a requestor.
15 . The data storage system of claim 1 , wherein establishing the access policy for the managed directory comprises associating the access policy with a pseudo-directory mapped to the managed directory.
16 . The data storage system of claim 1 , wherein establishing the access policy for the managed directory comprises associating the access policy with a secondary share of the managed directory.
17 . The data storage system of claim 1 , wherein the processor is configured to execute the instructions to:
receive a request to access files and subdirectories of the managed directory;
filter, based on the request and the access policy, the files and subdirectories of the managed directory; and
provide, in response to the request, access to a subset of the files and subdirectories of the managed directory, wherein the subset excludes one or more files or subdirectories that are filtered out based on the access policy.
18 . A computer-implemented method comprising:
establishing, in a file system, a managed directory as metadata referenced by all files and directories in a path set; and
establishing an access policy for the managed directory, wherein the metadata serves as a unified common shared data structure for associating the access policy with all files and directories in the path set.
19 . The computer-implemented method of claim 18 , further comprising:
receiving a request to access files and subdirectories of the managed directory;
filtering, based on the request and the access policy, the files and subdirectories of the managed directory; and
providing, in response to the request, access to a subset of the files and subdirectories of the managed directory, wherein the subset excludes one or more files or subdirectories that are filtered out based on the access policy.
20 . A non-transitory computer-readable medium storing instructions executable by a processor to:
establish, in a file system, a managed directory as metadata referenced by all files and directories in a path set; and
establish an access policy for the managed directory, wherein the metadata serves as a common shared data structure for associating the access policy with all files and directories in the path set.