United States Patent
US Patent 6192476: Controlling access to a resource
US 6192476 · granted 2001-02-20

| Patent Number | 6192476 |
|---|---|
| Title | Controlling access to a resource |
| Filed | 1997-12-11 |
| Granted | 2001-02-20 |
| Inventor(s) | Li Gong |
| Assignee | Sun Microsystems Inc |
| CPC Classification | G06F21/60, G06F2221/00, G06F21/62 |
| Number of Claims | 7 |
Abstract
A method and system are provided for determining whether a principal (e.g. a thread) may access a particular resource. According to one aspect of the invention, the access authorization determination takes into account the sources of the code on the call stack of the principal at the time the access is desired. Because the source of the code on the call stack will vary over time, so will the access rights of the principal. Thus, when a request for an action is made by a thread, a determination is made of whether the action is authorized based on permissions associated with routines in a calling hierarchy associated with the thread. The determination of whether a request is authorized is based on a determination of whether at least one permission associated with each routine encompasses the permission required to perform the requested action. Support for “privileged” routines is also provided. When a routine in the calling hierarchy is privileged, the determination of whether an action is authorized is made by determining whether at least one permission associated with each routine between and including the privileged routine and a second routine in the calling hierarchy encompasses the permission required to perform the requested action.
Claims Summary
1. A method for providing security, the method comprising the steps of: