# US 2009/0276824 A1 · Technique for efficiently evaluating a security policy

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

- Number: US 2009/0276824 A1
- Document ID: US20090276824A1
- Status: Published application
- Kind: A1
- Application number: 12/114,915
- Filed: 2008-05-05
- Published: 2009-11-05
- Earliest claimed: 2008-05-05
- Assignees: Oracle International Corporation
- Inventors: Mohammed Irfan Rafiq; Sabina Petride; Sam Idicula; Ashwini Surpur; Nipun Agarwal; Bhushan Khaladkar; Tim Wing Yu
- Web page: https://patentgrep.com/patent/US20090276824A1

## CPC

- G06F 21/604: {Tools and structures for managing or administering access control systems}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

One embodiment of the present invention provides a system for efficiently evaluating a security policy. During operation, the system retrieves one or more roles associated with the user. Next, the system checks if a session-level cache exists for a set of Access Control Entries (ACEs) which is associated with the one or more roles. If this session-level cache exists, the system returns the set of ACEs from the session-level cache. Otherwise, the system generates the set of ACEs associated with the one or more roles from an Access Control List (ACL). During operation, the system can also update the one or more roles associated with the user and update the set of ACEs based on the updated one or more roles and the ACL. The system subsequently updates the session level cache with the updated set of ACEs and updated one or more roles.

## Claims

### Claim 1

A computer-executed method for efficiently evaluating a security policy, comprising:
retrieving one or more roles associated with a user;
if the ACE exists in the session-level cache and is associated with the one or more roles, retrieving a set of access control entries (ACEs) associated with the one or more roles from a session-level cache, otherwise, generating a set of ACEs that is associated with the one or more roles from an access control list (ACL);
updating the one or more roles associated with the user;
updating the set of ACEs based on the updated one or more roles and the access control list; and
subsequently updating the session-level cache so that the updated set of ACEs is associated with the updated one or more roles.

### Claim 2 (depends on 1)

The method of claim 1, wherein retrieving the one or more roles associated with the user comprises retrieving a directed acyclic graph of roles associated with the user.

### Claim 3 (depends on 1)

The method of claim 1, wherein generating the set of ACEs associated with the one or more roles from the ACL comprises:
retrieving an XML document representing the ACL;
parsing the retrieved XML document; and
generating the set of ACEs associated with the one or more roles from the parsed XML document.

### Claim 4 (depends on 3)

The method of claim 3, wherein generating the set of ACEs that is associated with the one or more roles from the parsed XML document comprises:
generating a set of privileges that are granted and associated with the one or more roles from the parsed XML document; and
generating a set of privileges that are denied and associated with the one or more roles from the parsed XML document.

### Claim 5 (depends on 1)

The method of claim 1, wherein updating the one or more roles associated with the user comprises at least one of a system administrator changing the one or more roles, a process temporarily enabling a role, a role expiring because of a time limit, and the one or more roles remaining the same.

### Claim 6 (depends on 1)

The method of claim 1, wherein updating the set of ACEs based on the updated one or more roles and the ACL comprises:
deleting the set of ACEs; and
generating from the ACL an updated set of ACEs associated with the updated one or more roles.

### Claim 7 (depends on 1)

The method of claim 1, wherein updating the session-level cache so that the updated set of ACEs is associated with the updated one or more roles comprises:
storing a bit vector for a grant list associated with the updated set of ACEs so that the bit vector for the grant list is associated with the updated one or more roles in the session-level cache; and
storing a bit vector for a deny list associated with updated the set of ACEs so that the bit vector for the deny list is associated with the updated one or more roles in the session level cache.

### Claim 8

An apparatus that efficiently evaluates a security policy, comprising:
a role retrieval mechanism configured to retrieve one or more roles associated with a user;
an access control entry (ACE) retrieval mechanism configured to retrieve a set of ACEs associated with the one or more roles from a session-level cache if the ACE exists in the session-level cache and is associated with the one or more roles;
an ACE generation mechanism configured to generate a set of ACEs that is associated with the one or more roles from an access control list (ACL) if the session-level cache does not contain an set of ACEs associated with the one ore more roles;
a role updating mechanism configured to update the one or more roles associated with the user;
an ACE updating mechanism configured to update the set of ACEs based on the updated one or more roles and the access control list; and
a session-level cache updating mechanism configured to subsequently update the session-level cache so that the updated set of ACEs is associated with the updated one or more roles.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein while retrieving the one or more roles associated with the user, the role retrieval mechanism is further configured to retrieve a directed acyclic graph of roles associated with the user.

### Claim 10 (depends on 8)

The apparatus of claim 8, wherein while generating the set of ACEs associated with the one or more roles from the ACL, the ACE generation mechanism is further configured to:
retrieve an XML document representing the ACL;
parse the retrieved XML document; and
generate the set of ACEs associated with the one or more roles from the parsed XML document.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein while generating the set of ACEs associated with the one or more roles from the parsed XML document, the ACE generation mechanism is further configured to:
generating a set of privileges that are granted and associated with the one or more roles from the parsed XML document; and
generating a set of privileges that are denied and associated with the one or more roles from the parsed XML document.

### Claim 12 (depends on 8)

The apparatus of claim 8, wherein while update the one or more roles associated with the user, the role updating mechanism is further configured to at least one of: to have a system administrator change the one or more roles, to have a process temporarily enable a role, to have a role expire because of a time limit, and to keep the one or more roles the same.

### Claim 13 (depends on 8)

The apparatus of claim 8, wherein while updating the set of ACEs based on the updated one or more roles and the ACL, the ACE updating mechanism is further configured to:
delete the set of ACEs; and
generate from the ACL an updated set of ACEs associated with the updated one or more roles.

### Claim 14 (depends on 8)

The apparatus of claim 8, wherein while updating the session-level cache so that the updated set of ACEs is associated with the updated one or more roles, the session-level cache updating mechanism is further configured to:
storing a bit vector for a grant list associated with the updated set of ACEs so that the bit vector for the grant list is associated with the updated one or more roles in the session-level cache; and
storing a bit vector for a deny list associated with updated the set of ACEs so that the bit vector for the deny list is associated with the updated one or more roles in the session level cache.

### Claim 15

A computer-readable storage device storing instructions that when executed by a computer cause the computer to perform a method for optimizing CPU cost of security policy evaluation, the method comprising:
retrieving one or more roles associated with a user;
if the ACE exists in the session-level cache and is associated with the one or more roles, retrieving a set of access control entries (ACEs) associated with the one or more roles from a session-level cache, otherwise, generating a set of ACEs that is associated with the one or more roles from an access control list (ACL);
updating the one or more roles associated with the user;
updating the set of ACEs based on the updated one or more roles and the access control list; and
subsequently updating the session-level cache so that the updated set of ACEs is associated with the updated one or more roles.

### Claim 16 (depends on 15)

The storage device of claim 15, wherein retrieving the one or more roles associated with the user comprises retrieving a directed acyclic graph of roles associated with the user.

### Claim 17 (depends on 15)

The storage device of claim 15, wherein generating the set of ACEs associated with the one or more roles from the ACL comprises:
retrieving an XML document representing the ACL;
parsing the retrieved XML document; and
generating the set of ACEs associated with the one or more roles from the parsed XML document.

### Claim 18 (depends on 17)

The storage device of claim 17, wherein generating the set of ACEs that is associated with the one or more roles from the parsed XML document comprises:
generating a set of privileges that are granted and associated with the one or more roles from the parsed XML document; and
generating a set of privileges that are denied and associated with the one or more roles from the parsed XML document.

### Claim 19 (depends on 15)

The storage device of claim 15, wherein updating the one or more roles associated with the user comprises at least one of a system administrator changing the one or more roles, a process temporarily enabling a role, a role expiring because of a time limit, and the one or more roles remaining the same.

### Claim 20 (depends on 15)

The storage device of claim 15, wherein updating the set of ACEs based on the updated one or more roles and the ACL comprises:
deleting the set of ACEs; and
generating from the ACL an updated set of ACEs associated with the updated one or more roles.

### Claim 21 (depends on 15)

The storage device of claim 15, wherein updating the session-level cache so that the updated set of ACEs is associated with the updated one or more roles comprises:
storing a bit vector for a grant list associated with the updated set of ACEs so that the bit vector for the grant list is associated with the updated one or more roles in the session-level cache; and
storing a bit vector for a deny list associated with updated the set of ACEs so that the bit vector for the deny list is associated with the updated one or more roles in the session level cache.
