In some operating systems, such as a UNIX or UNIX-like operating system, access control mechanisms may be used to control access to certain objects (e.g., files, reports, databases and/or system resources). For example, in a UNIX or UNIX-like operating system, system administration activities are typically performed through a root user account. Authentication methods may be used to authenticate an identity of a user desiring to access system resources. The authentication method may include verifying a username, password and/or biometric entry. The authorization may also include verifying group and/or security level checks. Authorization to access system resources may also be controlled on a more granular level, such as controlling access to certain objects or resource entities. For example, system administrators responsible for the administration of the system share and/or manage the password to the root account or use access control tools which allow access to the desired services/objects after authentication has been provided. One additional level of access control granularity may be provided utilizing domains to further restrict management of a specific resource. Domains are a mechanism of associating tags to resources that allow or disallow users with those tags attached to them to access the resource for a particular action based on a set of governing rules.
According to one aspect of the present disclosure a method and technique for domain based management of software or logical partitions and resource groups is disclosed. The method includes: responsive to determining that an operation is being attempted on an object, determining a partition identifier associated with the object; determining a domain identifier associated with a user attempting the operation; determining whether the operation can proceed on the partition based on domain isolation rules, the domain isolation rules indicating rules for allowing or disallowing operations to proceed on the partition based on partition identifiers and domain identifiers; and responsive to determining that the operation on the partition can proceed based on the domain isolation rules, permitting the operation.
For a more complete understanding of the present application, the objects and advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
Embodiments of the present disclosure provide a method and technique for domain based management of software or logical partitions and resource groups. For example, in some embodiments, the method and technique includes: responsive to determining that an operation is being attempted on an object, determining a partition identifier associated with the object; determining a domain identifier associated with a user attempting the operation and/or determining a domain identifier associated with the object; determining whether the operation can proceed on the partition based on domain isolation rules, the domain isolation rules indicating rules for allowing or disallowing operations to proceed on the partition based on partition identifiers and domain identifiers; and responsive to determining that the operation on the partition can proceed based on the domain isolation rules, permitting the operation. Embodiments of the present disclosure enable additional granular access control for partitions by utilizing domain based access control for the partitions by a set of rules based on an identifiers of the partition and a domain identifier of a user attempting an operation on the partition. Embodiments of the present disclosure also enable additional granular access control for objects or resources by providing hierarchical, nested and/or resource group domain control.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or computer program product. Accordingly, aspects of the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present disclosure may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.
Any combination of one or more computer usable or computer readable medium(s) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
Aspects of the present disclosure are described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable medium that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable medium produce an article of manufacture including instruction means which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
With reference now to the Figures and in particular with reference to
In some embodiments, server 140 and server 150 connect to network 130 along with data store 160. Server 140 and server 150 may be, for example, IBM System p® servers. In addition, clients 110 and 120 connect to network 130. Clients 110 and 120 may be, for example, personal computers or network computers. In the depicted example, server 140 provides data and/or services such as, but not limited to, data files, operating system images, and applications to clients 110 and 120. Network data processing system 100 may include additional servers, clients, and other devices.
In the depicted example, network data processing system 100 is the Internet with network 130 representing a worldwide collection of networks and gateways that use the Transmission Control Protocol/Internet Protocol (TCP/IP) suite of protocols to communicate with one another. At the heart of the Internet is a backbone of high-speed data communication lines between major nodes or host computers, consisting of thousands of commercial, governmental, educational and other computer systems that route data and messages. Of course, network data processing system 100 also may be implemented as a number of different types of networks, such as for example, an intranet, a local area network (LAN), or a wide area network (WAN).
Processor unit 204 serves to execute instructions for software that may be loaded into memory 206. Processor unit 204 may be a set of one or more processors or may be a multi-processor core, depending on the particular implementation. Further, processor unit 204 may be implemented using one or more heterogeneous processor systems in which a main processor is present with secondary processors on a single chip. As another illustrative example, processor unit 204 may be a symmetric multi-processor system containing multiple processors of the same type.
In some embodiments, memory 206 may be a random access memory or any other suitable volatile or non-volatile storage device. Persistent storage 208 may take various forms depending on the particular implementation. For example, persistent storage 208 may contain one or more components or devices. Persistent storage 208 may be a hard drive, a flash memory, a rewritable optical disk, a rewritable magnetic tape, or some combination of the above. The media used by persistent storage 208 also may be removable such as, but not limited to, a removable hard drive.
Communications unit 210 provides for communications with other data processing systems or devices. In these examples, communications unit 210 is a network interface card. Modems, cable modem and Ethernet cards are just a few of the currently available types of network interface adapters. Communications unit 210 may provide communications through the use of either or both physical and wireless communications links.
Input/output unit 212 enables input and output of data with other devices that may be connected to data processing system 200. In some embodiments, input/output unit 212 may provide a connection for user input through a keyboard and mouse. Further, input/output unit 212 may send output to a printer. Display 214 provides a mechanism to display information to a user.
Instructions for the operating system and applications or programs are located on persistent storage 208. These instructions may be loaded into memory 206 for execution by processor unit 204. The processes of the different embodiments may be performed by processor unit 204 using computer implemented instructions, which may be located in a memory, such as memory 206. These instructions are referred to as program code, computer usable program code, or computer readable program code that may be read and executed by a processor in processor unit 204. The program code in the different embodiments may be embodied on different physical or tangible computer readable media, such as memory 206 or persistent storage 208.
Program code 216 is located in a functional form on computer readable media 218 that is selectively removable and may be loaded onto or transferred to data processing system 200 for execution by processor unit 204. Program code 216 and computer readable media 218 form computer program product 220 in these examples. In one example, computer readable media 218 may be in a tangible form, such as, for example, an optical or magnetic disc that is inserted or placed into a drive or other device that is part of persistent storage 208 for transfer onto a storage device, such as a hard drive that is part of persistent storage 208. In a tangible form, computer readable media 218 also may take the form of a persistent storage, such as a hard drive, a thumb drive, or a flash memory that is connected to data processing system 200. The tangible form of computer readable media 218 is also referred to as computer recordable storage media. In some instances, computer readable media 218 may not be removable.
Alternatively, program code 216 may be transferred to data processing system 200 from computer readable media 218 through a communications link to communications unit 210 and/or through a connection to input/output unit 212. The communications link and/or the connection may be physical or wireless in the illustrative examples.
The different components illustrated for data processing system 200 are not meant to provide architectural limitations to the manner in which different embodiments may be implemented. The different illustrative embodiments may be implemented in a data processing system including components in addition to or in place of those illustrated for data processing system 200. Other components shown in
In
An operating system (“OS”) can support access to objects (e.g., devices, file systems, volume groups, files, etc.) for different departments of an organization and for different purposes (e.g., management of the object, writing to the object, viewing the object, invoking an object, etc.). For instance, an OS can support different applications/systems and data for a legal department, a human resources (“HR”) department, and a finance department. The OS can support an electronic mail system for all three departments. The OS can also support a docketing application for the legal department and a bookkeeping application for the finance department. The OS may also support a job application database for the HR department. An organization may want to isolate the objects for the different departments. An administrator can create domains for these different departments to isolate the objects of the departments (e.g., database records, department file systems, etc.) for confidentiality reasons, to conform to organizational task divisions (e.g., different information technology departments may support the different departments), etc. As discussed above, LPARs and WPARs may also be created and managed, and an organization may want to isolate the control and/or management of the logical/software partitions for the different departments. An administrator can associate domains with particular partitions such that the management and/or control of certain functions for the partitions are governed by a set of rules.
Functionality can be implemented in an OS to increase the granularity of isolation for software and logical partitions. A domain can be defined to represent each of different entities (e.g., different departments or work groups). User identifiers and/or user credentials can be associated with the appropriate domain or domains. For instance, an administrator can configure users as members of particular domains. An administrator can then define a set of rules that govern operation(s) that can be performed for or on the software or logical partition based on the domains. The operations can be in response to commands or instructions from an executing application, executing script, process, etc. Processes or subjects running on a system will inherit the domain or domains of a user account logged into the system. A kernel process, for example, can evaluate the set of rules that specify which domains are used to manage which logical or software partition functions. When a process or subject attempts to perform an operation associated with a software partition (e.g., change or modify a WPAR), the kernel process evaluates the domain inherited by the process, and consequently the operation, and the software partition against the set of rules to determine whether the operation is permitted to proceed. Further, objects associated with particular functions of a software partition may be internally identified as corresponding to a certain software partition. For example, configuration files needed to be executed to modify a software partition may include an identifier associating the object with a particular software partition. As an example, consider the file below including a string identifier associating the file with a software partition identified as WPAR1:
In
The machine that hosts the kernel space 403 is communicatively coupled with a user repository 407. The user repository 407 hosts user data (e.g., user credentials, user profiles, etc.) of users that login into the machine. The user data may at least include user identifiers (e.g., usernames, serial numbers, etc.) and associated domains. Each user can be associated with 0 to n domains. When a user is assigned or associated with a domain, the system that manages the user repository 407 updates the corresponding user data to indicate the domain. For instance, a system that supports the creation of domains submits a request to the system that supports the user repository 407 to update a user profile, for example, to indicate a domain. The user repository 407 may be local to the machine that hosts the kernel space 403. The user repository 407 may be distributed throughout a cluster or hosted at a device designated for hosting the user data accessible via a network. The machine also has access to a domain isolation rules repository 401. The domain isolation rules repository 401 comprises domain isolation rules that indicate which domains are permitted for which logical partitions. A storage device that hosts the domain isolation rules repository 401 can be local or remote with respect to the machine that hosts the kernel space 403.
A root user, super user, or a user with a highest privilege can create domains and domain isolation rules. For instance, a root user can create a domain for IT administrators. The root user can also define a rule that allows access to manage/control softwafe or logical partition operations for users assigned to the IT administrator domain. Defining a domain can comprise establishing an identifier for a domain (e.g., a domain name, a unique numerical identifier, etc.) and a description of the domain. A system that hosts a repository of domains can enforce uniqueness of domain identifiers as unique names and/or generate unique numbers for domains across a node or network. Defining a domain isolation rule comprises indicating a partition and a domain(s) that facilitates performance of an operation associated with the particular partition (“permitted domain”). Defining a rule can also comprise specifying a domain that does not facilitate performance of an operation for a particular partition (“denied domain”). For instance, a user may be assigned to an IT domain and a LEGAL domain. A rule may allow a management operation on a particular partition if the operation is associated with a user who is a member of the IT domain and an HR domain. A rule may specify that the IT domain is a permitted domain, but the LEGAL domain is a denied domain. Even though the user is a member of the IT domain, an operation associated with the user is not allowed to be performed on a partition governed by the rule because the user is also a member of a denied domain. Embodiments can also indicate a flag that represents a constraint of “ANY” or “ALL” domains for a partition in a domain isolation rule. If the ALL flag is set in a rule, then an operation associated with a user who is a member of all of the permitted domains indicated in the rule can be performed. Membership in only one of the permitted domains would be insufficient. The ANY or ALL flag can be represented by a single bit or a complex structure. For example, a value of 1 can indicate that ALL domains are required, while a value of 0 can indicate that ANY of the permitted domains is sufficient. Management operations can be applied on resource groups with domain isolation rules in any order of hierarchy, subset or superset form with its underlying resource group adhering to domain isolation rules.
Returning to the example depicted in
User information is loaded into the kernel space 403 from the user repository 407 responsive to a user logging into the machine that hosts the kernel space 403. The user information loaded into the kernel space 403 is instantiated as a user structure instance 409. The user structure instance 409 at least indicates a user identifier and a domain associated with the user represented by the user identifier. In this example, the user repository 407 illustrates four different users identified as “USR0,” “USR1,” “USR2” and USR3.” It should be understood that a fewer or greater number of users may be represented. USR0 and USR1 are members of the IT domain and the ADMIN domain, USR2 is a member of the LEGAL domain, and USR3 is a member of the IT domain. Kernel command parser 411 receives an instruction from user space that targets an object corresponding to a particular partition. For example, a user may enter a request to change or configure a WPAR (e.g., utilizing configuration, lock or index files). In some embodiments, the object type may be indicated as “WPAR” in the domain isolation rule which corresponds to the system files for logical or software partition management/control that are set internally to particular WPARs. The kernel command parser 411 passes an identifier of the object targeted by the instruction to the domain based isolation monitor 413. For instance, the kernel command parser 411 can call a function that implements the domain based isolation monitor 413 with the object identifier passed as a parameter. As another example, the kernel command parser 411 can receive a message through a system call which indicates the object identifier to the domain based isolation monitor 413. The domain based isolation monitor 413 determines whether the function corresponds to a partition and, if so, the identity of the partition. For example, in some embodiments, the kernel command parser 411 may parse the command/instruction to identify any partition identifier of the command/instruction. The domain based isolation monitor 413 determines whether the instruction can be applied to the object and, correspondingly, on the partition (i.e., whether the one or more operations that implement the instruction can be performed on the object) based on the domain(s) of the user associated with the instruction. The domain based isolation monitor 413 accesses the set of domain isolation rules 405. The set of domain isolation rules 405 indicates a WPAR identifier, an object type, permitted domains, denied or conflict domains, and an ANY or ALL flag. In the illustrated embodiment, the set of domain isolation rules 405 includes a rule that indicates a partition object for a WPAR identified as WPAR_0 can be operated upon by an operation(s) associated with anyone of the domains IT, DB2, and finance (“FIN”). The set of domain isolation rules 405 also includes a rule that permits access to a file object for WPARs WPAR_1-5 (i.e., a range of WPARs including WPAR_1, WPAR_2, WPAR_3, WPAR_4 and WPAR_5) by an operation(s) associated with a user who is a member of all of the domains IT and ADMIN. Since the USR0 is a member of both the IT domain and the ADMIN domain, a command/instruction that targets a file object of WPAR_1-5 would be permitted to proceed. Even if a user is a member of both the IT and ADMIN domains but is also a member of the LEGAL domain, such operation would be denied because of the deny domain rule.
Although the depicted example refers to a file, embodiments are not so limited. Embodiments can determine whether an operation being performed by an application is permitted to operate upon or access various objects of a partition or resource group. The application would be executing as a process in a user space invoked by a user. The application process inherits the domain of the user. Thus, the corresponding domain identifier of that user would be used to evaluate the set of domain isolation rules against the operation for the object. Thus, in accordance with embodiments of the present disclosure, even if a user generally has a role in the system that would enable management and/or control of partitions or resource groups, the domain based isolation rules may limit the user's ability to utilize that role for certain partitions or resource groups.
In some embodiments, domains are assigned and managed hierarchically. For example,
At block 804, domain(s) to which the user belongs is determined. For example, the user may be a member of a human resources domain. When user data (e.g., credentials, profile, etc.) that represents a user account logged into a system is loaded, the domain identifier(s) indicated in the user data can be stored at a known or reserved location in the operating system space. When evaluating a domain isolation rule, an operating system process can access the known or reserved operating system space location for the domain identifier(s). At decisional block 806, a domain isolation rule that governs the partition is evaluated. A set of domain isolation rules can be indexed by distinct partition, resource group or object identifiers. For example, a kernel process locates a domain isolation rule using the partition, resource group or object identifier as an index. Thus, at decisional block 806, a determination is made whether the operation being attempted can be performed on the object (e.g., a partition or resource group) based on domain membership. A kernel process evaluates the located domain isolation rule for the object and determines whether the domain of the user is indicated as a permitted domain. The kernel process may also determine whether the rule indicates that a user is required to be a member of all indicated permitted domains, or if the user is a member of a denied or conflict domain. The kernel process also determines validation of order of domain identifiers with hierarchical or subset/superset form. If operation is not permitted to be performed on the object based on domain membership of the user, the method proceeds to block 808, where an indication of a denial of operation access is provided. If the operation is permitted to be performed on the object based on domain membership of the user, the method proceeds to block 810, where access to the object (e.g., partition or resource group) for the requested operation is permitted.
Thus, embodiments of the present disclosure enable additional granular access control for logical or software partitions and resource groups while reducing system administration time. Further, embodiments of the present disclosure enable additional granular access control for objects by providing hierarchical, nested and/or resource group domain control.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present disclosure has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the disclosure in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the disclosure. The embodiment was chosen and described in order to best explain the principles of the disclosure and the practical application, and to enable others of ordinary skill in the art to understand the disclosure for various embodiments with various modifications as are suited to the particular use contemplated.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.