# US 2017/0257419 A1 · Method and associated server for ensuring data security under high access efficiency

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

- Number: US 2017/0257419 A1
- Document ID: US20170257419A1
- Status: Published application
- Kind: A1
- Application number: 15/287,728
- Filed: 2016-10-06
- Published: 2017-09-07
- Earliest claimed: 2016-03-04
- Assignees: Synology Incorporated
- Applicants: Synology Incorporated
- Inventors: Yi-Chien Lee
- Web page: https://patentgrep.com/patent/US20170257419A1

## CPC

- H04L 67/06: specially adapted for file transfer, e.g. file transfer protocol [FTP]
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- H04L 63/10: {for controlling access to devices or network resources}
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- H04L 67/34: {involving the movement of software or configuration parameters (network booting or remote initial program loading [RIPL] G06F9/4416)}
- H04L 63/105: {Multiple levels of security}
- H04L 63/168: {above the transport layer}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A server includes a HTTP module and a CGI module, where the HTTP module includes a configuration file, and the configuration file describes an application that has an authority to access files stored in the server. In the operations of the server, the HTTP module receives a request delivered from a device external to the server, and sends the request to the CGI module to determine whether the request has the authority or not, and the CGI module transmits the determination result to the HTTP module. If the request has the authority and the request satisfies the application described in the configuration file, the HTTP module reads and sends back the file corresponding to the request.

## Claims

### Claim 1

A server, comprising:
an HTTP module, comprising a configuration file, wherein the configuration file describes an application that has an authority to access files stored in the server; and
a common gateway interface (CGI) module;
wherein the HTTP module is arranged to receive a request delivered from a device external to the server and sends the request to the CGI module to determine whether the request has an execution authority, and the CGI module transmits a determination result to the HTTP module, wherein when the request has the authority and the request satisfies the application described in the configuration file, the HTTP module reads and sends back a file corresponding to the request.

### Claim 2 (depends on 1)

The server of claim 1, wherein the common gateway interface module determines whether the request has the authority by determining a user identity and a file path of the request.

### Claim 3 (depends on 2)

The server of claim 2, wherein the common gateway interface module utilizes an X-Accel mechanism to send back the file path to the HTTP module, and when the request has the authority and the request satisfies the applications described in the configuration file, the HTTP module resets the file path in order to read and send back the file.

### Claim 4 (depends on 3)

The server of claim 3, wherein when the request does not have the authority, or the request does not satisfy the applications described in the configuration file, the HTTP module sends back a read failure message and does not set the file path as a correct file path.

### Claim 5 (depends on 1)

The server of claim 1, wherein the HTTP module comprises a reading ability setting that allows each worker of a plurality of workers in the HTTP module to read any file corresponding to the applications.

### Claim 6 (depends on 5)

The server of claim 5, wherein each of the workers in the HTTP module has a same authority.

### Claim 7 (depends on 5)

The server of claim 5, wherein the reading ability setting is a CAP_DAC_READ_SEARCH or CAP_DAC_OVERRIDE command in the Linux system.

### Claim 8 (depends on 5)

The server of claim 5, wherein the server further comprises a storage unit, files corresponding to the applications are stored in different storage blocks of the storage unit, and the HTTP module only accesses storage block contents corresponding to applications corresponding to the request.

### Claim 9 (depends on 1)

The server of claim 1, wherein the common gateway interface module does not perform file access operations according to the request.

### Claim 10

A method of executing a request, comprising:
utilizing an HTTP module to receive a request, and sending the request to a common gateway interface (CGI) module;
utilizing the common gateway interface module to determine whether the request has an execution authority;
sending back a determining result of the common gateway interface module to the HTTP module;
utilizing the HTTP module to determine whether applications corresponding to the request satisfy contents of a configuration file; and
when the request has the execution authority, and the applications corresponding to the request satisfy the contents of the configuration file, utilizing the HTTP module to read and send back files demanded by the request.

### Claim 11 (depends on 10)

The method of claim 10, wherein the step of utilizing the common gateway interface module to determine whether the request has the execution authority comprises:
utilizing the common gateway interface module to determine a user identity and a file path of the request, in order to determine whether the request has the execution authority.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
utilizing the common gateway interface module to send back the file path to the HTTP module with an X-Accel mechanism; and
wherein the step of utilizing the HTTP module to read and send back the files demanded by the request comprises:
when the request has the execution authority and the request satisfies the applications described in the configuration file, the HTTP module resets the file path to directly read and send back the file.

### Claim 13 (depends on 12)

The method of claim 12, wherein the step of utilizing the HTTP module to read and send back the files demanded by the request comprises:
when the request does not have the execution authority, or the request does not satisfy the applications described in the configuration file, the HTTP module send backs a read failure message and does not set the file path as a correct file path.

### Claim 14 (depends on 10)

The method of claim 10, wherein the HTTP module comprises a reading ability setting, and the reading ability setting allows each worker of a plurality of workers in the HTTP module to read files corresponding to the applications.

### Claim 15 (depends on 14)

The method of claim 14, wherein the method is applied to a server comprising a storage unit, the files corresponding to the applications are stored in different storage blocks of the storage unit, and the HTTP module only accesses storage block contents corresponding to applications corresponding to the request.

### Claim 16

A server, comprising:
an HTTP module, arranged to receive a request external to the server, and refer to applications corresponding to the request to determine whether the request has an authority of downloading files, wherein when the request has the authority of downloading files, the HTTP module resets a file path to read and send back the file, and when the request does not have the authority of downloading files, the HTTP module sends backs a read failure message and does not set the file path as a correct file path.

### Claim 17 (depends on 16)

The server of claim 16, wherein the HTTP module comprises a reading ability setting, and the reading ability setting allows each worker of a plurality of workers in the HTTP module to have an authority of reading any file of the server.

### Claim 18 (depends on 17)

The server of claim 17, wherein the reading ability setting is the CAP_DAC_READ_SEARCH or CAP_DAC_OVERRIDE command in the Linux system.

### Claim 19

A method of executing a request, comprising:
receiving a request external to a server;
determining whether an application corresponding to the request has an authority of downloading files;
when it is determined that the request has the authority of downloading files, resetting a file path, in order to read and send back the file; and
when the request does not have the authority of downloading files, sending back a read failure message and not setting the file path as a correct file path.

### Claim 20 (depends on 19)

The method of claim 19, further comprising:
setting at least one worker of a plurality of workers to execute the request; and
setting a reading ability setting, to allow each of the workers to have an authority of reading any file of the server.
