# US 2008/0306954 A1 · Methods and systems for managing permissions data

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2008/0306954 A1
- Document ID: US20080306954A1
- Status: Published application
- Kind: A1
- Application number: 11/811,189
- Filed: 2007-06-07
- Published: 2008-12-11
- Earliest claimed: 2007-06-07
- Assignees: Apple Inc.
- Inventors: John M. Hornqvist
- Web page: https://patentgrep.com/patent/US20080306954A1

## CPC

- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F 16/144: {Query formulation}
- G06F 16/168: {Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs (query results presentation G06F16/156)}
- G06F 2221/2141: Access rights, e.g. capability lists, access control lists, access tables, access matrices
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems and computer readable media which use permissions checking when deciding whether to allow access to a file are described. In one exemplary embodiment, a method includes receiving a notification of a change of permissions of a directory in a hierarchical file system and determining, in response to the notification, whether to update partially a permissions cache which is used in screening access based on permissions, such as access to search results. The determining may include a comparison of an identifier of the directory to a data structure of cached directories which have files represented in the permissions cache.

## Claims

### Claim 1

A machine readable medium containing executable computer program instructions which cause a data processing system to perform a method comprising:
receiving a notification of a change of permissions of a directory in a hierarchical file system;
determining, in response to the notification, whether to update partially a permissions cache, wherein the permissions cache is used in screening search results based on permissions.

### Claim 2 (depends on 1)

The medium as in claim 1 wherein the determining comprises comparing the directory to a data structure for cached directories having files represented in the permissions cache, and wherein the directory is a subdirectory.

### Claim 3 (depends on 2)

The medium as in claim 2, wherein the method further comprises:
updating, for at least a period of time, at least a portion of the permissions cache, wherein the updating comprises at least one of setting invalidity data for the portion or removing the portion from the permissions cache, and wherein the updating is performed in response to determining to update partially the permissions cache.

### Claim 4 (depends on 3)

The medium as in claim 3, wherein the updating is performed in response to determining that the directory is one of the cached directories in the data structure.

### Claim 5 (depends on 2)

The medium as in claim 2, wherein the determining whether to update partially determines to not update the permission cache if the directory is not one of the cached directories in the data structure which stores representations of identifiers for the cached directories.

### Claim 6 (depends on 4)

The medium as in claim 4 wherein after the period of time, the updating is terminated automatically and if the updating is incomplete when terminated, the entire permissions cache is at least one of invalidated or flushed.

### Claim 7 (depends on 5)

The medium as in claim 5 wherein any updating performed in response to determining to update partially is performed for a first portion of the permissions cache while a second portion of the permissions cache is not updated.

### Claim 8 (depends on 6)

The medium as in claim 6 wherein the data structure is configured as a fixed size Bloom filter in which directory identifiers are hashed and stored in the data structure.

### Claim 9 (depends on 4)

The medium as in claim 4 wherein separate permission caches and data structures are maintained for each user and each permission cache and each data structure is stored as one or two files in the hierarchical file system.

### Claim 10 (depends on 4)

The medium as in claim 4 wherein the method further comprises:
receiving a notification of a change of permissions of a file in the hierarchical file system;
determining whether to update partially the permissions cache for permissions of the file in response to the receiving of the notification of the change of permissions of the file.

### Claim 11

A machine implemented method comprising:
receiving a notification of a change of permissions of a directory in a hierarchical file system;
determining, in response to the notification, whether to update partially a permissions cache, wherein the permissions cache is used in screening search results based on permissions.

### Claim 12 (depends on 11)

The method as in claim 11 wherein the determining comprises comparing the directory to a data structure for cached directories having files represented in the permissions cache, and wherein the directory is a subdirectory.

### Claim 13 (depends on 12)

The method as in claim 12, wherein the method further comprises:
updating, for at least a period of time, at least a portion of the permissions cache, wherein the updating comprises at least one of setting invalidity data for the portion or removing the portion from the permissions cache, and wherein the updating is performed in response to determining to update partially the permissions cache.

### Claim 14 (depends on 13)

The method as in claim 13, wherein the updating is performed in response to determining that the directory is one of the cached directories in the data structure.

### Claim 15 (depends on 12)

The method as in claim 12, wherein the determining whether to update partially determines to not update the permission cache if the directory is not one of the cached directories in the data structure which stores representations of identifiers for the cached directories.

### Claim 16 (depends on 14)

The method as in claim 14 wherein after the period of time, the updating is terminated automatically and if the updating is incomplete when terminated, the entire permissions cache is at least one of invalidated or flushed.

### Claim 17 (depends on 15)

The method as in claim 15 wherein any updating performed in response to determining to update partially is performed for a first portion of the permissions cache while a second portion of the permissions cache is not updated.

### Claim 18 (depends on 16)

The method as in claim 16 wherein the data structure is configured as a fixed size Bloom filter in which directory identifiers are hashed and stored in the data structure.

### Claim 19 (depends on 14)

The method as in claim 14 wherein separate permission caches and data structures are maintained for each user and each permission cache and each data structure is stored as one or two files in the hierarchical file system.

### Claim 20 (depends on 14)

The method as in claim 14 wherein the method further comprises:
receiving a notification of a change of permissions of a file in the hierarchical file system;
determining whether to update partially the permissions cache for permissions of the file in response to the receiving of the notification of the change of permissions of the file.

### Claim 21

A data processing system comprising:
means for receiving a notification of a change of permissions of a directory in a hierarchical file system
means for determining, in response to the notification, whether to update partially a permissions cache, wherein the permissions cache is used in screening search results based on permissions.

### Claim 22

A machine readable medium containing executable computer program instructions which cause a data processing system to perform a method comprising:
receiving a notification of a change of permissions of a directory in a hierarchical file system;
determining, in response to the notification and based on a comparison of the directory to a data structure for cached directories having files represented in a permissions cache, whether to update the permissions cache, wherein the permissions cache is used in determining whether to allow access to files.

### Claim 23 (depends on 22)

The medium as in claim 22 wherein the permissions cache is used in screening search results based on permissions, and wherein the determining whether to update determines to not update the permissions cache if the directory is not one of the cached directories in the data structure which stores representations of identifiers for the cached directories.

### Claim 24 (depends on 22)

The medium as in claim 22 wherein the determining determines that the directory is one of the cached directories, and wherein, in response to the determining, the entire permissions cache is at least one of invalidated or flushed.

### Claim 25 (depends on 24)

The medium as in claim 24 wherein the permissions cache is used in screening search results based on permission.

### Claim 26 (depends on 23)

The medium as in claim 23 wherein the method further comprises:
updating, for at least a period of time, at least a portion of the permissions cache, wherein the updating comprises at least one of setting invalidity data for the portion or removing the portion from the permissions cache, and wherein the updating is performed in response to determining to update the permissions cache.

### Claim 27 (depends on 26)

The medium as in claim 26, wherein the updating is performed in response to determining that the directory is one of the cached directories in the data structure.

### Claim 28 (depends on 27)

The medium as in claim 27, wherein after the period of time, the updating is terminated automatically and if the updating is incomplete when terminated, the entire permissions cache is at least one of invalidated or flushed.

### Claim 29 (depends on 28)

The medium as in claim 28, wherein the data structure stores hashed directory identifiers in a lossy manner.

### Claim 30 (depends on 23)

The medium as in claim 23, wherein the method further comprises:
receiving a notification of a change of permissions of a file in the hierarchical file system;
determining whether to update partially the permissions cache for permissions of the file in response to the receiving of the notification of the change of permissions of the file.

### Claim 31

A machine implemented method comprising:
receiving a notification of a change of permissions of a directory in a hierarchical file system;
determining, in response to the notification and based on a comparison of the directory to a data structure for cached directories having files represented in a permissions cache, whether to update the permissions cache, wherein the permissions cache is used in determining whether to allow access to files.

### Claim 32 (depends on 31)

The method as in claim 31 wherein the permissions cache is used in screening search results based on permissions, and wherein the determining whether to update determines to not update the permissions cache if the directory is not one of the cached directories in the data structure which stores representations of identifiers for the cached directories.

### Claim 33 (depends on 31)

The method as in claim 31 wherein the determining determines that the directory is one of the cached directories, and wherein, in response to the determining, the entire permissions cache is at least one of invalidated or flushed.

### Claim 34 (depends on 33)

The method as in claim 33 wherein the permissions cache is used in screening search results based on permission.

### Claim 35 (depends on 32)

The method as in claim 32 wherein the method further comprises:
updating, for at least a period of time, at least a portion of the permissions cache, wherein the updating comprises at least one of setting invalidity data for the portion or removing the portion from the permissions cache, and wherein the updating is performed in response to determining to update the permissions cache.

### Claim 36 (depends on 35)

The method as in claim 35, wherein the updating is performed in response to determining that the directory is one of the cached directories in the data structure.

### Claim 37 (depends on 36)

The method as in claim 36, wherein after the period of time, the updating is terminated automatically and if the updating is incomplete when terminated, the entire permissions cache is at least one of invalidated or flushed.

### Claim 38 (depends on 37)

The method as in claim 37, wherein the data structure stores hashed directory identifiers in a lossy manner.

### Claim 39 (depends on 32)

The method as in claim 32, wherein the method further comprises:
receiving a notification of a change of permissions of a file in the hierarchical file system;
determining whether to update partially the permissions cache for permissions of the file in response to the receiving of the notification of the change of permissions of the file.

### Claim 40

A data processing system comprising:
means for receiving a notification of a change of permissions of a directory in a hierarchical file system;
means for determining, in response to the notification and based on a comparison of the directory to a data structure for cached directories having files represented in a permissions cache, whether to update the permissions cache, wherein the permissions cache is used in determining whether to allow access to files.
