USPatent applicationPatented

System and method for quickly accessing user permissions in an access control list

Granted 17 Jul 2007 · no office action yet

Current assignee: Cloud Network Technology Singapore Pte. Ltd. · originally Foxconn Technology Group

Law firm: Law firm · Log in to unlock

Attorney: Attorney · Log in to unlock

Inventors: Cheng-Meng Wu · Examiner: Donald Sparks · AU 2187 · TC 2100

Life of the application

7 dated events
⤢ drag to zoom20042006200820102012201420162018202020222024ProsecutionOwnershipTerm & fees
ProsecutionOwnershipTerm & feeshover for detail · click to open

Abstract

A system for quickly accessing user permissions in an access control list includes a first cache memory ( 2 ), a second cache memory ( 3 ), a permission querying module ( 12 ), a permission merging module ( 13 ), and an information unit generating module ( 14 ). The first cache memory is for storing a plurality of first information units ( 20 ). The second cache memory is for storing a plurality of second information units ( 30 ). The permission querying module is for querying the user permissions stored in the first cache memory and the second cache memory, and respectively storing first information units and second information units in the first cache memory and the second cache memory. The permission merging module is for merging different user permissions. The information unit generating module is for generating the first information units and the second information units. A related method is also disclosed.

Description

7 parts
›FIELD OF THE INVENTION

The present invention relates to a computer data processing system in an NAS (network attached storage) system, and especially to a system and method for accessing user permissions in an access control list.

›BACKGROUND OF THE INVENTION

In an NAS (network attached storage) system, it is an especially important function to set user permissions relating to documents stored in the system. There are a number of software tools available for setting user permissions. For example, P.R. China patent application No. 01122441.x entitled “System and Method for Setting User Permissions in a File System” discloses a system and method for setting user permissions. The system uses a permission verifying module and a permission setting module to set the user permissions of a document or part of the document in accordance with data on user IDs (identification codes) and user permission grades. The system can enhance efficiency in managing files, and improve security in a file system. However, the system can not quickly access the user permissions of documents in an access control list.

For example, the procedure of accessing a document comprises the following steps: verifying whether a user has a request process permission in relation to the document; and permitting the user to process the document if the user has the request permission. The procedure of verifying comprises the steps of: querying a user permission of a root directory in which the document is stored; querying the user permissions of lower directories one by one; and querying the user permission of the document. In this procedure, a cache memory can only store the latest semi-result of querying, and can not use other semi-results of querying. One user permission may be repeatedly queried. In addition, the procedure of querying takes too much time.

›SUMMARY OF THE INVENTION

Accordingly, an objective of the present invention is to provide a system and method for quickly accessing user permissions in an access control list.

Another objective of the present invention is to provide a system and method for access user permissions by using data stored in a first cache memory and a second cache memory.

In order to achieve the above-mentioned objectives, a system for quickly accessing user permissions in an access control list in accordance with the present invention comprises a first cache memory, a second cache memory, a permission querying module, a permission merging module, and an information unit generating module. The first cache memory is for storing a plurality of first information units, the first information units stored data on a user permission of a latest accessed user. The second cache memory is for storing a plurality of second information units, the second information units stored semi-results of computing different user permissions and directory relations. The permission querying module is for querying the user permissions stored in the first cache memory and the second cache memory, and respectively storing the first information units and the second information units in the first cache memory and the second cache memory. The permission merging module is for merging different user permissions. The information unit generating module is for generating the first information units and the second information units.

Further, in order to achieve the above-mentioned objectives, a method for quickly accessing user permissions in an access control list in accordance with the present invention comprises the steps of: (a) generating a dummy node in a root directory of a network attached storage server, the dummy node being a dummy user Permission ID; (b) adding a first information unit to the first cache memory, the first information units stored data on a user permission of a latest accessed user; (c) querying a latest Permission ID I L and a currently requested Permission ID I C in a second cache memory in accordance with a unique user ID U and a current computed Permission ID P C ; (d) determining whether the latest Permission ID I L and the currently requested Permission ID I C are found; (e) generating a first information unit if the required Permission ID is found; and (f) if no required Permission ID is found: (f 1 ) assigning an inherited Permission ID P I as being the result of merging the current computed Permission ID P C and the inherited Permission ID, and assigning a last current computed Permission ID P C ′ as being the current computed Permission ID P C ; and (f 2 ) determining whether a user process request is permitted.

Other objects, advantages and novel features of the present invention will be drawn from the following detailed description of preferred embodiments of the present invention with the attached drawings, in which:

›BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic diagram of hardware configuration of a system for quickly accessing user permission in an access control list in accordance with a preferred embodiment of the present invention;

FIG. 2 is a block diagram of function modules of the network attached storage server, the first cache memory, and the second cache memory of the system of FIG. 1 ;

FIG. 3 is a list of rules for merging permissions, in accordance with the present invention;

FIG. 4 is a flow chart of a preferred method for quickly accessing user permissions in an access control list, in accordance with the present invention; and

FIG. 5 is a flow chart of a preferred method for querying data stored in the second cache memory in accordance with the present invention.

›DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS OF THE INVENTION · 1 of 3

Reference will now be made to the drawings to describe the present invention in detail.

FIG. 1 is a schematic diagram of hardware configuration of a system for quickly accessing user permission in an access control list in accordance with the preferred embodiment of the present invention. The system for quickly accessing user permission in an access control list comprises a network attached storage server 1 , a first cache memory 2 , a second cache memory 3 , a network 4 , and a plurality terminal computers 5 . The network 4 connects the terminal computers 5 with the network attached storage server 1 . The network 4 can be the Internet, an intranet, or another suitable kind of electronic communications network. The network attached storage server 1 is interconnected with the first cache memory 2 and the second cache memory 3 via a system bus. The network attached storage server 1 stores a plurality of documents. Each of the terminal computers 5 provides an interface for users to process the documents stored in the network attached storage server 1 . Such processing comprises reading, writing, deleting, and modifying data stored in the documents. The first cache memory 2 and the second cache memory 3 are used to store permissions. The permissions are data on restrictions on processing of the documents stored in the network attached storage server 1 .

FIG. 2 is a block diagram of function modules of the network attached storage server 1 , the first cache memory 2 , and the second cache memory 3 . The network attached storage server 1 comprises a directory managing module 10 , a permission computing module 11 , a permission querying module 12 , a permission merging module 13 , and an information unit generating module 14 . The first cache memory 2 comprises a plurality of first information units 20 . The second cache memory 3 comprises a plurality of second information units 30 .

The directory managing module 10 is programmed to manage a directory of the documents stored in the network attached storage server 1 , such management comprising reading, writing, deleting, and modifying the documents. The permission computing module 11 computes a value of a Permission P C of a current accessing target, the target comprising a document or a directory. The permission querying module 12 is for querying the Permission P C in the first cache memory 2 and the second cache memory 3 . The permission merging module 13 is used to generate an inherited Permission P I of a current accessing target in accordance with the first information units 20 and the second information units 30 . The information unit generating module 14 is used for generating the information units 20 , 30 , and stores the information units 20 , 30 in the first and second cache memories 2 , 3 respectively.

The first cache memory 2 stores semi-results of querying, and each semi-result is stored in a first information unit 20 . The first cache memory 2 can store only one semi-result for each query at a time, and the semi-result stored therein is a target process permission most recently queried. The first information unit 20 comprises data on a unique user ID (identification code) U, a currently requested Permission ID I C , and an inherited Permission ID P I . The first information unit 20 is expressed in the form of <I C , U, P I >. The unique user ID U is used to identify a current user. The currently requested Permission ID I C is a permission code stored in an ACL (access control list), and the permission code denotes different process permissions of different users to a current target. The ACL stores 1024 permission codes. For example, a company's document process permission for a manager is FC (full control), and the company document process permission of a general user is RO (read only). The currently requested permission identification code I C is generated by an operating system or set by an owner of the current target. The inherited permission identification code P I is a permission code inherited from a priority directory of the current target.

The second cache memory 3 stores other semi-results of querying, and each of the semi-results is stored in a second information unit 30 . A capacity of the second cache memory 3 is 64 KB (kilobytes), and the second cache memory 3 can store 16 semi-results at one time. The second information unit 30 comprises data on a unique user ID U, a latest Permission ID I L , a currently requested Permission ID I C , and a current computed Permission ID P C . The second information unit 30 is expressed in the form of <U, I L , I C , P C >. The latest Permission ID I L is a latest accessed permission code of a target. The current computed Permission ID P C is a computed permission for a current target in accordance with I C (this is described in more detail below in relation to FIG. 4 ).

FIG. 3 is a list of rules for merging the permissions. The list comprises a current computed permission column, an inherited permission column, and a merged result column. The list shows the merging rules of the current computed Permissions P C and the inherited Permissions P I . As shown in the first line, a current Permission NA (no access) takes priority over inherited Permissions RO (read only), WO (write only), RW (read and write) and FC (full control). That is, if a current Permission NA merges with an inherited Permission RO, WO, RW, or FC, the merged result is Permission NA. As shown in the second line, the merged result of current Permission RO and inherited Permission NA or RO is Permission RO. The third line through to the tenth line show other merging rules.

In addition, the directory managing module 10 sets a priority of an upper layer directory as taking priority over a priority of a lower layer directory. That is, the current computed Permission P C takes priority over the inherited Permission P I . As the permission merging module 13 merges P C with P I , the permission querying module 12 stops querying P I if the merged result is Permission NA or Permission FC. However, a current processing request of the user is permitted.

›DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS OF THE INVENTION · 2 of 3

FIG. 4 is a flow chart of a preferred method of the present invention for quickly accessing user permissions in an access control list. In step S 400 , the system receives a process request to a target input by a current user via one of the terminal computers 5 . In step S 401 , the permission querying module 12 queries a currently requested Permission ID I C of a current target in the first cache memory 2 in accordance with an information unit <I L , I C , U, P L >. A last merged Permission ID P L is a permission code of a merged result of a current target. In step S 402 , the permission querying module 12 queries an inherited Permission ID P I of the current user in the first cache memory 2 , and determines whether the inherited Permission ID P I exists in the first cache memory 2 .

If the inherited Permission ID P I exists, the procedure goes to step S 403 . In step S 403 , if a latest Permission ID I L of the current user exists in the first cache memory 2 , the permission merging module 13 merges the inherited Permission ID P I and last merged Permission ID P L in accordance with the merging rules shown in FIG. 3 . If a latest Permission ID I L does not exist in the first cache memory 2 , the permission merging module 13 directly assigns the last merged Permission ID P L as being the inherited Permission ID P I . If the inherited Permission ID P I does not exist, the procedure goes to step S 408 described below.

In step S 404 , the permission querying module 12 queries a current computed Permission ID P C corresponding to the currently requested Permission ID I C in the second cache memory 3 . In step S 405 , the permission querying module 12 compares the last merged Permission ID P L with the current computed Permission ID P C , and determines whether the current user has a process permission. If the current user has the process permission, in step S 407 , the system permits the process request. If the current user does not has the process permission, in step S 406 , the system refuses the process request.

In step S 408 , the permission querying module 12 queries the current computed Permission ID P C in the second cache memory 3 in accordance with the second information unit <U, I L , I C , P C >, and determines whether the current computed Permission ID P C exists. If the current computed Permission ID P C exists, the procedure goes to step S 410 described below. If the current computed Permission ID P C does not exist, in step S 409 , the permission computing module 11 computes a value of the current computed Permission ID P C . In step S 410 , if the latest Permission ID I L exists in the second cache memory 3 , the permission merging module 13 merges the current computed Permission ID P C and last merged Permission ID P L in accordance with the merging rules shown in FIG. 3 . If the latest Permission ID I L does not exist, the permission merging module 13 directly assigns the last merged Permission ID P L as being the current computed Permission ID P C .

In step S 411 , the permission computing module 13 determines whether to inherit the inherited Permission ID P I . If the inherited Permission ID P I does not need to be inherited, in step S 413 , the information unit generating module 14 generates a first information unit <I C , U, P I >, and stores the first information unit in the first cache memory 2 , whereupon the procedure goes to step S 404 . If the inherited Permission ID P I needs to be inherited, in step S 412 , the information unit generating module 14 generates a second information unit <U, I L , I C , P C >, and stores the second information unit in the second cache memory 3 . In step S 414 , the permission merging module 11 directly assigns the latest Permission ID I L as being the currently requested Permission ID I C . In step S 415 , the permission querying module 12 determines whether the current target has a priority directory. If a priority directory exists, in step S 416 , the permission merging module 13 directly assigns the currently requested Permission ID I C as being a currently requested Permission ID I C ′ of the priority directory, whereupon the procedure returns to step S 401 . If a priority directory does not exist, in step S 417 , the permission merging module 13 directly assigns the currently requested Permission ID I C as being a currently requested Permission ID I C ″ of a dummy node, whereupon the procedure returns to step S 401 . The currently requested Permission ID I C ″ of a dummy node is pre-set by the operating system, and comprises Permission FC for managers and Permission RW for general users.

FIG. 5 is a flow chart of a preferred method for querying data stored in the second cache memory 3 , in accordance with the present invention. In step S 52 , the system pushes an information unit <I C , P I > in-to a stack S. In step S 53 , the system decides whether the stack S is empty. If the stack S is empty, the procedure goes to step S 408 of FIG. 4 . If the stack S is not empty, in step S 55 , the system pops an information unit <I L , P C > from the stack S. In step S 56 , the permission querying module 12 queries the second cache memory 3 to find second information unit <U, I L , I C , P C > which comprises the information unit <I L , P C >, and deletes the second information unit <U, I L , I C , P C > from the second cache memory 3 . If no second information unit <U, I L , I C , P C > is found, the procedure returns to step S 53 . If the second information unit <U, I L , I C , P C > is found, in step S 57 , the permission querying module 12 adds the second information unit <I C , U, Merge(P I , P C )> to the first cache memory 2 . The value of Merge(P I , P C ) is the result of merging the inherited Permission ID P I with the current computed Permission ID P C in accordance with the merging rules shown in FIG. 3 . In the merging procedure, the permission merging module 14 replaces the current computed Permission ID P C with the latest Permission ID I L . In step S 58 , the system determines whether the latest Permission ID I L is valid. If the latest Permission ID I L is not valid, the procedure returns to step S 56 . If the latest Permission ID I L is valid, in step S 59 , the permission querying module 12 pushes the information unit <I L , Merge(P I , P C )> into the stack S, whereupon the procedure returns to step S 56 .

›DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS OF THE INVENTION · 3 of 3

Although only a preferred embodiment and preferred methods of the present invention have been described in detail above, those skilled in the art will readily appreciate that many modifications to the preferred embodiment and methods are possible without materially departing from the novel teachings and advantages of the present invention. Accordingly, all such modifications are deemed to be covered by the following claims and allowable equivalents of the claims.

Claims as granted

13 claims

Log in to read the claims of this application.

Log in to unlock

Classifications

8 codes
IPC · International Patent Classification
Section G — Physics
  • G06F21/00
  • G06F12/00
USPC · US Patent Classification
711/119709/225711/163726/26726/28713/182

Claim changes

Soon
Coming soonHow the claims changed between publication and grant

See which claims were amended, added or cancelled during examination, with every added and removed word marked.

AmendedAddedCancelledUnchanged

The published claims of this application are not paired with the granted ones in what we hold.

File wrapper

⤢ drag to zoomOct 2004Jan 2005Apr 2005Jul 2005Oct 2005Jan 2006Apr 2006Jul 2006Oct 2006Jan 2007Apr 2007Jul 2007USPTOApplicantNotice of allowance
USPTOApplicanthover for detail · click to open
Pendency
2.8 y
1,005 days filing → grant
Office actions
0
none on record
Examiner
Donald Sparks
art unit 2187 · TC 2100
Citations: 7 back · 4 forward

See the full prosecution history — every USPTO and applicant action on this file, in order.

Log in to unlock

Documents

Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.

Log in to unlock

Chain of title

⤢ drag to zoom20042006200820102012201420162018202020222024Owner 1Owner 2
Titlehover for detail · click to open

See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.

Log in to unlock