System and method for a group-based network access control for computer7032243Abstract Systems and methods for group-based network access control systems are provided. The group-based network access control system includes a software process operating on a computer. The software process is configured to communicate a packet through a group-based network protocol stack to a network interface card that includes an interface attribute. A table of network attributes, associated with a session filter module and a network filter module, compares the network endpoint attribute with the interface attribute in the table of network attributes to determine whether the software process can access the network interface card. Each network endpoint attribute comprises a primary group identifier and a supplemental group identifier list, and each interface attribute comprises a network group list. The method includes the steps of operating a software process that includes a network endpoint attribute. Next, packets are communicated through a network protocol stack to a network interface card, where the network interface card includes an interface attribute. Association between the network endpoint attribute and the interface attribute is established, and both the network endpoint attribute and the interface attribute are placed in a table. The network endpoint attribute is then compared with the interface attribute to determine whether the software process can access the network interface card. Each network endpoint attribute comprises a primary group identifier and a supplemental group identifier list, and each interface attribute comprises a network group list. Claims What is claimed is: Description TECHNICAL FIELD
This information is filled in as it is available on or after the initial endpoint creation. When the endpoint is first created, the operating system kernel 50 is in the context of the calling process. At this time, the endpoint attributes are copied into the attribute map table 230 of the newly allocated queue instance. Because the transport must be defined when the endpoint is created, this information is also stored. The remaining information is provided based upon the transport type. Fortunately, when an endpoint is destroyed (via a close( )), all information pertaining to the endpoint can be discarded. This is because packets containing data will not be accepted by any transport module without an upstreams module to deliver the packets to. Also, the network filter module 170 will not allow packets to be delivered upstreams if an endpoint lookup fails. Because TCP is a session based protocol, an endpoint can be established as a SERVER (listening) type endpoint, or a CLIENT (connecting) type endpoint. In either case, a BIND request must be made to establish the identifier entity of the local endpoint's port. The bind request may also include the local IP address to associate with the endpoint, or it can remain unspecified. The information provided in the BIND request is copied into the source address and port field of the attribute map table. If the BIND request indicates a listen queue size, the SERVER flag indicator must be set in the attribute map table. Otherwise, the CLIENT flat is set. Note that many TCP client endpoints do not bother to bind a local port before attempting to connect to a peer. The session filter module 110 intercepts these autobind attempts and forces an explicit BIND request using port 0. This causes TCP to assign a dynamic port number and return the port number upstreams so that it can be recorded at the streams head 103. This information will also be stored in the attribute map table 230. The peer address that gets associated with an endpoint can be initiated in one of two ways. The simplest method occurs when a connect request is performed on an endpoint. The requested peer's IP address and port are taken directly from the CONNECT request and copied into the peer address and port fields of the attribute map table 230. The more complex method occurs when the endpoint is a SERVER type endpoint, and there are two types of SERVER endpoints. If an endpoint is going to accept a connection without creating a new accepting endpoint, it is a true SERVER endpoint. The endpoint instance gets used directly for the established connection. Otherwise, it is considered a LISTEN endpoint. A listen endpoint will never have a peer endpoint associated with it. When a CONNECT indication is received by a LISTEN endpoint, a new endpoint gets created with an entirely new streams head context. At this time, the peer information is sent upstreams to the new streams head. This peer information must then get copied into the new attribute map table instance, along with all the related information from the listening endpoint's attribute map table. Since UDP is not a session based protocol, the indicator flag has no meaning for this transport type. Any outbound packet from a UDP endpoint is treated as a CLIENT type. Any inbound packet to a UDP endpoint is treated as a SERVER type. When an endpoint is created, the attributes are copied into the attribute map table 230 of the newly allocated endpoint. When the endpoint is bound, the local address and port are copied into the attribute map table 230 and the flag indicator is set to BOUND. If a CONNECT request is performed on a UDP endpoint, the peer address and port are copied into the peer address and port fields of the attribute map table 230 and the flag indicator is set to CONNECTED. IF a UNITDATA request is passed down and a destination address is provided (via sendto( )), copy the destination address into the peer address and port fields of the attribute map table 230. When either the NLM 170 or the SFM 110 receive a packet, a lookup must be performed to determine the peer endpoint. In the preferred embodiment, this lookup is performed by providing the following information with regard to the endpoint whose attributes are desired:
The structures in the attribute map table 230 are hashed based on the endpoint protocol and port number. When an endpoint lookup function is called, there should be only one suitable endpoint that maps to the specified source/destination requested. Because endpoint lookups for TCP packets are limited to connection initiation only, all of the endpoints that have already been established as connected are not eligible to be returned by the lookup. The network filter module (NLM) 170 is responsible for controlling access to the network interface(s) 47. The network interfaces 47 are labeled with a set of attributes when the interface is brought on-line. When data is sent or received on the network interface(s) 47, the attributes of the interface are compared with the attributes of the endpoint receiving or sending the data. If the attributes specify that the communication is not allowed, the data is either dropped or an error is returned. The NLM 170 is configured by ifconfig(1M). There is an instance of the NLM 170 for each network interface 47 on the system. The NLM 170 is pushed between the IP module 107 and the DLPI drivers 108. The network group list is assigned to an interface via an ioct(C) system call in the example UNIX system. Data received by the NLM 170 comes directly from either the IP module 107 (outbound) or DLPI driver 108 (inbound). On receipt of a packet from the DLPI driver 108, the NLM 170 determines whether the packet contains user data. If the packet does not contain user data it is passed upstreams unfiltered. If the packet contains user data, NLM 170 parses the packet to determine the protocol of the packet. If the protocol is being filtered, the source and destination addresses are retrieved from the packet. These addresses are looked up in the attribute mapping table 230 to determine the attributes of the receiving endpoint. The attributes of the endpoint are compared against those of the interface 47. If the attributes permit receipt of the packet, the packet continues upstream. If not, the packet is discarded. If none of the above are true, the packet is discarded. A packet not destined for a local endpoint is discarded. Thus, there is no mechanism for doing IP forwarding. TCP packets are filtered by NLM 170 but handled a little differently than the generic packets. Once the packet is determined to be TCP/UDP module 105, the packet type is extracted. If the packet represents a connection establishment packet, the packet's source and destination address are extracted and looked up in the endpoint attribute mapping table 230. The mapping entry returned is used to determine whether the packet is received or discarded. If none of the criteria enumerated above are met, the packet is dropped. Otherwise, the packet is sent upstream. If the packet does not represent a connection establishment packet, it is sent upstreams unfiltered. Once the connection is established, there is no reason to continue checking each packet from the same connection since the attributes will remain unchanged for the duration of the connection. If a packet arrives for which there is no established connection, TCP/UDP module 105 will discard it. All inbound UDP messages are passed unfiltered upstreams for the SFM 110 to filter. Once created, the process can receive or send to any interface 47. Raw packets are not filtered by the NLM 170. On receipt of a packet from the IP module 107, the NLM 170 determines whether the packet contains user data. If the packet does not contain user data it is passed downstream unfiltered. If the packet contains user data, NLM 170 parses the packet to determine the protocol of the packet. If the protocol is being filtered, the source and destination addresses are retrieved from the packet. These addressed are looked up in the attribute mapping table 230 to determine the attributes of the sending endpoint. The attributes of the endpoint are compared against those of the interface 47. If the attributes permit export of the packet, the message containing the packet is forwarded downstream. If not, the message is discarded. Illustrated in FIGS. 4A through 4C is the operation of the operating system kernel 50, for the example UNIX operation system, with regard to the session filter monitor (SFM) 110, network layer module (NLM) 170 and the attribute map table 230 in the streams access control system 100 of the present invention. First, at step 51, the operating system kernel 50 is initialized. Next, at step 52, the operating system kernel 50 performs the open routine for the NLM 170 on top of each instance of DLPI driver 108 for each network interface card 47 on the computer system 10 (FIG. 2). At step 53, the operating system kernel 50 then passes the attributes associated with the network interface card 47 to the NLM 170. The NLM 170 then maintains the attributes for the network interface card 47 within the attribute mapping table 230 that is herein defined in further detail with regard to FIG. 7A. In an alternative embodiment, the attributes of the network interface card 47 are maintained within a private data area of the NLM 170. Next, at step 54, the operating system kernel 50 receives a system call from a user process 11 or 12 (FIGS. 1 and 2) to establish a new network endpoint. Next, the operating system kernel 50 creates and initializes a new streams head instance at step 55. At this time, the operating system kernel 50 creates a streams head module 103. At step 56, the operating system kernel 50 then performs the open routine for each streams module in the protocol stack, which takes place in a process context. The operating system kernel 50 then calls an open routine to initialize the SFM 110 to establish a new network endpoint at step 57. At step 61, the operating system kernel 50 receives a system call from the user process 11 or 12 (FIGS. 1 and 2) to bind a network address to the local network endpoint created in step 57. At step 62, the bind request received at step 61 is passed down the protocol stack via the streams head 103. At step 63, the process bind acknowledgement is then passed back to the user process 11 or 12 (FIGS. 1 and 2). At this point, the endpoint is now initialized for communication for further processing. At this time, the operating system kernel 50 continues processing with the endpoint that was initialized at steps 54 through 64. The operating system kernel 50 also returns to step 54 to wait to receive the next system call from a user process 11 or 12 (FIGS. 1 and 2), to establish another network endpoint. Illustrated in FIG. 4B are the steps for the processing of communication with the endpoint established in steps 54 through 64. At step 71, the operating system kernel 50 determines whether the user process 11 or 12 (FIGS. 1 and 2) is establishing a session. If it is determined at step 71 that a session is not being established, the operating system kernel 50 then skips to step 77. However, if it is determined at step 71 that the user process 11 or 12 (FIGS. 1 and 2) is establishing a session, the operating system kernel 50 establishes a session for exchanging data with another network endpoint. The exchanging of data with another network endpoint is initiated by a connection to a server with a connect system call or connect indication from a network interface card 47 that includes the destination address and port number of the recipient at step 72. At step 73, the operating system kernel 50 then sends up or down the protocol stack a connect request via the streams head 103 or the TCP module 105. At step 74, the addressing of the connection is evaluated to determine whether the communication between endpoints should be allowed. At step 75, the operating system kernel 50 then determines whether the evaluation performed at step 74 that the communication is to be allowed. If the operating system kernel 50 determines that the communication is not to be allowed, the operating system kernel 50 then skips to step 93 (FIG. 4C) to close the network endpoint denied communication. However, if it is determined at step 75 that communication is allowed, the operating system kernel 50 then allows data to pass normally over the connection at step 76. The operating system kernel 50 then proceeds to process the messages, as herein defined in further detail with regard to FIG. 4C. At step 77, the operating system kernel 50 determines whether or not the process has an established session and whether the process is sending discreet messages. If it is determined at step 77 that the process is not sending discreet messages, the operating system kernel 50 then proceeds to FIG. 4C to process the messages at step 93. However, if it is determined at step 77 that the process is sending discreet messages, the operating system kernel 50 then sends this message down the protocol stack via the streams head 103 to be processed without establishing a communication session. The operating system kernel 50 then makes a system call to send a message that includes the destination address of the recipient. Illustrated in step 4C is the processing of messages and closing of the network endpoint. At step 91, the communication messages are processed. At step 92, the operating system kernel 50 then determines whether it is done processing messages for a particular communication endpoint. If it is determined at step 92 that there are more messages to be processed for a particular destination endpoint, the operating system kernel 50 then returns to repeat steps 91 and 92. However, if it is determined at step 92 that there are not more messages to be processed for a particular endpoint, the operating system kernel 50 then proceeds to step 93 to close the network endpoint. At step 93, the operating system kernel 50 then makes a close system call for the network endpoint to be closed. At step 94, the close system call identifierentifies the streams head 103 associated with the endpoint to be closed and calls the close routine for each module in the protocol stack in turn at step 94. At step 95, the operating system kernel 50 then determines when the close routine for the SFM 110 is called and clears and frees the entry in the associated attribute mapping table 230 for the network endpoint at step 95. At step 96, the operating system kernel 50 then de-allocates the streams head 103 for the particular endpoint and exits at step 99. Illustrated in FIGS. 5A through 5C are flow charts collectively illustrating an example of the session filter module flow (SFM) 110 in the group-based network access control system 100 of the present, as shown in FIGS. 2 and 3 above. The SFM 110 is a streams module that is intended to sit directly below the streams head 103 (FIG. 3), in a TCP/IP networking protocol stack. One of the downstreams modules that the SFM 110 is expected to communicate with is one or more TCP/UDP module 105, or raw IP module 107 in the TCP/IP networking protocol stack. The SFM 110 is responsible for creating and maintaining the attribute map table 230 (FIGS. 2 and 3). It is assumed that the downstreams IP module 107 has a means for communicating the true destination address of an incoming data packet as well as the interface identifier through which the packet is delivered. In this example, IP options can be negotiated to have this information passed upstreams when the connection indications are received. The configurations of the system networks interfaces are also assumed to be accessible to the SFM 110. First, the SFM 110 is initialized at step 111. At step 112, the SFM 110 obtains process attributes from the process context and associates the attributes with a network endpoint. The SFM 110 then calls the allocater for the attribute map table 230 (FIG. 7A) to create a new entry in the attribute map table 230 for the network endpoint at step 113. At step 114, the SFM 110 receives a bind request from the streams head 103 (FIGS. 2 and 3). Next, at step 115, the SFM 110 updates the entry in the attribute map table 230 with the local address that was in the bind request. The SFM 110 also notes in the attribute map table 230 whether the local endpoint is designated as a listening endpoint for a network server. Next, at step 116, the SFM 110 passes the bind request downstreams to the TCP/UDP module 105 (FIGS. 2 and 3). The SFM 110 then waits to receive an acknowledgement of the bind request from the downstreams TCP/UDP module 105, at step 117. After receiving the acknowledgement of the bind request from the downstreams TCP/UDP module 105, the SFM 110 then passes the acknowledgement upstreams to the streams head 103 (FIGS. 2 and 3) and the user process 11 or 12 (FIGS. 1 through 3). At step 118, the SFM 110 then determines whether any network address information has been updated in the bind request received from the downstreams TCP/UDP module 105. If it is determined at step 118 that any network information has been updated in the bind request received from the downstreams TCP/UDP module 105, the SFM 110 then updates the entry in the attribute map table 230, at step 231. After updating the attribute map table 230, the SFM 110 then proceeds to receive upstreams and downstreams data as illustrated in FIGS. 5B and 5C. Illustrated in FIG. 5B is the send process 130 in the SFM 110. A communication via a network endpoint through the SFM 110 can occur in the following ways. First, a user process 11 can establish a session for exchanging data with another network endpoint (i.e., a server) by initiating a connection to that server. The address of the connection is evaluated to determine whether the communication between the endpoint should be allowed. If the session between the client and server is established, data may pass normally over the connection. Otherwise, a process can send discreet messages to a receiving network endpoint without having to establish a session with a particular network endpoint first. Each message must be addressed and independently evaluated to determine whether the delivery should be allowed. The send process 130 in the SFM 110 implements both of these methods for sending data messages, as follows. At step 131, the send process 130 in the SFM 110 receives a data message that includes a destination address and a port number of a recipient from the streams head module 103 (FIGS. 2 and 3). After receiving the data message, the send process 130 in the SFM 110 then determines whether the message is a connect request at step 132. If it is determined at step 132 that the message is not a connect request, the send process 130 in the SFM 110 then proceeds to step 145. However, if it is determined at step 132 that the message received at step 131 is a connect request, then the SFM 110 looks up the destination address and port number as an entry in the attribute map table 230, at step 133. The SFM 110 updates the attribute mapping table 230 with the destination address and port number for the session. At step 134, the send process 130 in the SFM 110 determines whether the destination address is local to the computer system 10 (FIG. 1 and FIG. 2). If it is determined at step 134 that the destination address of the data message is not local to the system, the send process 130 in the SFM 110 then skips to step 141. However, if it is determined at step 134 that the destination address of the data message is local to the system 10, the send process 130 in the SFM 110 then performs a packet delivery check by calling the attribute map table delivery check routine at step 135. The attribute map table delivery check routine is herein described in further detail with regard to FIG. 7B. At step 136, the send process 130 in the SFM 110 then determines whether the packet check passes. If it is determined at step 136 that the packet check did pass, the send process 130 then skips to step 141. However, if it is determined at step 136 that the packet did not pass the check, the send process 130 constructs a connection refusal message and passes it back upstreams to the streams head 103 (FIGS. 2 and 3) to be handled by the calling user process. The send process 130 in the SFM 110 then returns to step 131 to receive the next data message. At step 141, the send process 130 in the SFM 110 passes a connection request downstreams to the TCP/UDP module 105 for processing. At step 142, the send process 130 waits to receive a connection request acknowledgement from the TCP/UDP module 105 when it is passed upstream. When the acknowledgement is received at step 142, the send process 130 in the SFM 110 then passes the connect request acknowledgement upstreams to the streams head 103, which then passes the connection acknowledgement back to the calling user process. At step 143, the SFM 110 updates any changes to the remote network address in the attribute mapping table 230 for the appropriate network endpoint. At step 144, the send process 130 in the SFM 110 acknowledges that the session has been established and returns to step 131 for further data message processing. At step 145, the send process 130 in the SFM 110 passes the data message received at step 131 to the downstreams TCP/UDP module 105. The SFM 110 is counting on the NLM 170 or the SFM 110, at step 151, to verify the delivery of this type of data message. The send process 130 in the SFM 110 then returns to repeat step 131 through 145. Illustrated in FIG. 5C is the receiving process 150 functionality of the SFM 110. Communication via network endpoint acting as a server (i.e., a receiver) begins by the receipt of a message from a client or sender. This message may take the form of a session initialization request (a connection), or as a stand alone datagram message. In either case, delivery of the data message is validated based upon the attributes associated with the receiving endpoint and the endpoint of the originator of the message. The first step in the receive process 150 is receiving a message from a downstreams module TCP/UDP 105 at step 151. Next, at step 152, the receive process 150 in the SFM 110 determines whether the message is a local message. If it is determined at step 152 that the message received at step 151 is not a local message, the receive process 150 in the SFM 110 then skips to step 155. However, if it is determined at step 152 that the message received is a local message, the receive process 150 in the SFM 110 then looks up the sender's address and port in the attribute map table 230, at step 153. At step 154, the receive process 150 in the SFM 110 calls the attribute map table 230 to do a packet delivery check based upon the attributes of the receiving endpoint and the lookup entry. The attribute map table delivery check is herein defined in further detail with regard to FIG. 7B. The receive process 150 of the SFM 110 then proceeds to step 157. At step 155, the receive process 150 determines the message interface. At step 156, the receive process 150 in the SFM 110 calls the attribute map table 230 to do a packet delivery check based upon the interface attributes for the receiving network interface 47 and the attributes of the receiving endpoint. The attribute map table delivery check is herein defined in further detail with regard to FIG. 7B. At step 157, the receive process 150 in the SFM 110 then determines whether the packet check passes. If the packet check does not pass, the receive process 150 then proceeds to step 159 where the packet is dropped and no notification is passed either upstreams or downstream. The receive process 150 in the SFM 110 then returns to repeat steps 151 through 159. However, if it is determined at step 157 that the packet check did pass, the receive process 150 in the SFM 110 delivers the message upstreams to the streams head 103 (FIGS. 2 and 3) for further processing. The receive process 150 in the SFM 110 then returns to repeat steps 151 through 159. Illustrated in FIGS. 6A through 6C are flow charts collectively illustrating an example of the network layer module (NLM) 170 flow in the group-based network access control system illustrated in FIGS. 2 and 3 above. The network layer module 170 (NLM) is a streams module that is intended to sit below the TCP/IP protocol stack, and more specifically, the IP module 107 (FIG. 3). The NLM 170 also communicates with the DLPI driver 108 (FIG. 3) that transfer network packets to and from the NIC 47 (FIG. 3). The NLM 170 queries the attribute map table 230 when making packet delivery decisions for inbound and outbound packets. The NLM 170 needs to be initialized only once for each NIC 47 configured on the computer system 10. An administrative process pushes the NLM 170 on top of each instance of the DLPI driver 108 for each network interface NIC 47 on the computer system 10. When the NLM 170 is pushed, its open routine is called. Attributes that need to be associated with the NIC 47 are passed to the NLM 170, where they are maintained with the instance information. This information varies depending on what type of attributes are available for the platform. In the group model, the attributes stored are the interface name assigned to the NIC 47 and network group list. The network group list contains group identifiers of all processes that have access to the NIC 47. It is possible to define a universal group identifier that grants access to all processes communicating with NIC 47 (i.e., wildcard). In an alternative embodiment, the attributes maintained with the NLM 170 instant information can be alternatively stored in the attribute map table 230 (FIG. 3). First, the NLM 170 is opened at step 171 (FIG. 6A). Next, at step 172, an administrative process passes the interface name and network group list attributes to be associated with the NIC 47. The network group list is assigned to an interface via an ioct(C) system call in the example UNIX system. Further, at step 173, the NLM 170 receives the attributes that need to be associated with the NIC 47. At step 174, the NLM 170 maintains the attributes for the NIC 47 within the attribute map table 230. In an alternative embodiment, the NLM 170 may store the attributes for the NIC 47 within its own instance information. Next, the NLM 170 performs both the send and receive operations. At step 175, the NLM 170 continues to send data packets while input of data packets exist. The send process 190 is herein defined in further detail with regard to FIG. 6B. When packets data messages do not exist, the NLM 170 then exits the send process at step 176. At step 177, the NLM 170 receives packets. The receive packet process 210 is herein defined in further detail with regard to FIG. 6C. After receiving all existing data packets, the NLM 170 then exits the receive process at step 178. Illustrated in FIG. 6B is the send packet process 190 of the NLM 170. First, the NLM 170 that is connected to an appropriate NIC 47 (FIG. 3) receives a downstreams message from the TCP/IP stack from the IP device 106. This downstreams message instructs the NLM 170 to deliver a packet. At step 192, the send packet process 190 of the NLM 170 analyzes the data packet to determine what protocol is being used to communicate. At step 193, the send packet process 190 determines whether the protocol is an ICMP protocol. It is determined at step 193 that the protocol is an ICMP protocol, the send packet process 190 of the NLM 170 then skips to step 198. However, if it is determined at step 193 that the data packet is not utilizing an ICMP protocol, the send packet process 190 of the NLM 170 then determines whether the data message is a TCP protocol non-syn packet at step 194. If it is determined that the packet is a TCP protocol non-syn packet at step 194, the send packet process 190 of the NLM 170 then skips to step 198. However, if it is determined at step 194 that the downstreams message a TCP protocol non-syn packet, the send packet process 190 of the NLM 170 then looks up an entry in the attribute map table 230 based upon the protocol port number source and destination address for the downstreams message at step 195. At step 196, the send packet process 190 compares the sender endpoint primary group identifier in the attribute map table 230 with the network group list associated with the NIC 47. The attribute map table delivery check is herein defined in further detail with regard to FIG. 7B. At step 197, the send packet process 190 of the NLM 170 determines whether the packet passes the check. If it is determined at step 197 that the packet does not pass the check, the send packet process 190 of the NLM 170 then skips to step 199. However, if it is determined at step 197 that the packet does pass the check, the packet is then passed downstreams to the NIC device driver 108, at step 198. After passing the packet downstreams to the NIC device driver 108, the send process 190 in the NLM 170 then returns to receive and process the next downstreams packet at step 191. However, if it is determined at step 197 that the packet check does not pass, the downstreams packet is dropped and no notification is passed upstreams at step 199. The send process 190 in the NLM 170 then returns to receive the next downstreams packet at step 191. Illustrated in FIG. 6C is the receive process 210 for the NLM 170. First, the receive process 210 in the NLM 170 waits to receive a packet from the NIC 47 at step 211. Once a packet is received from the NIC 47, the packet is then transferred into kernel memory by the network device for that NIC 47 at step 212. The receive process 210 then determines whether the packet received is a TCP protocol packet at step 213. If it is determined at step 213 that the packet is not a TCP protocol packet, the receive process 210 in the NLM 170 then skips to step 217. However, if it is determined at step 213 that the packet received is a TCP protocol packet, the receive process 210 in the NLM 170 looks up and entry in the attribute mapping table 230 based upon the protocol, port number, source, and destination addresses within the received packet at step 214. At step 215, the receive process 210 then compares the receiver endpoint primary group identifier in the attribute mapping table 230 with the network group list associated with the NIC 47 that received the packet. The attribute map table delivery check is herein defined in further detail with regard to FIG. 7B. At step 216, the receive process 210 then determines whether the packet passes the check. If it is determined at step 216 that the packet does not pass the check, the packet is dropped without notification being passed upstreams or downstreams at 218 and the receive process then returns to wait and receive the next packet at step 211. However, if it is determined at step 216 that the packet does pass the check, the packet is then passed upstreams to the IP module 107 in the IP protocol stack. Illustrated in FIG. 7A is a block diagram of an example of the attribute map table (AMT) 230 utilized by the group-based network access control system of the present invention, as shown in FIGS. 2 and 3. The AMT 230 is created and maintained by the SFM 110 (FIG. 3) and represents the network endpoints that exist on the computer system 10 (FIG. 3). Each TCP and UDP network endpoint entry in the AMT 230 can be uniquely identified by its protocol, local port number, local address, peer port and peer address. All other IP protocol endpoints are identified based upon their protocol number. The SFM 110 creates an entry in the AMT 230 for a network endpoint when the computer 10 (FIG. 2) creates the endpoint. At this time, all the necessary process attributes are associated with the entry for the network endpoint being created. This includes the primary group identifier and supplemental group list that are acquired from the credentials of the process. For TCP and UDP endpoints, the protocol is specified at creation time. All other fields in the entry in the AMT 230 are unavailable at creation time and are supplied via modifications to the entry in the AMT 230 when a packet is either sent or received. The SFM 110 can modify an entry in the AMT 230 for the endpoint, as well as the identification fields for the entry when these attributes become available. The identification fields for the entry in the AMT 230 include, but are not limited to, protocol number, local port, local address, peer port, and peer address. For instance, at bind time, the local port number and possibly the local address are specified. For protocols other than TCP and UDP, the protocol may be specified in the bind request. When establishing a TCP session, the peer address and port number are specified. This is the case for incoming TCP sessions and outgoing TCP sessions. Circumstances can allow network endpoints to have the same entry identification, particularly with receiving network endpoints. It is contemplated that multiple network endpoints may possess the same entry identification as long as the attributes match for each endpoint with the matching identification. To prevent a conflict, the AMT 230 should not be allowed to create a second entry with different attributes from a first entry with the same identification. For instance, if a listening endpoint is bound to a local port A and local address B and possesses attribute C, and then a second endpoint bind request is serviced with local port A, local address B, and attributes D, the bind would be rejected. An entry in the AMT 230 is looked up prior to a packet delivery check to determine whether a packet should be delivered to its destination or not. An entry in the AMT 230 is looked up by finding the entry that matches the identification field values. For TCP and UDP lookups, the protocol and local port numbers are required. Local port numbers do not exist for other protocols. When an entry lookup is attempted, all identification values are supplied based upon the service and destination addresses in the packet. For each entry in the AMT 230, all nonzero identification fields are compared against the packet field values. If the protocol or local port number do not match, the entry is skipped. Of those that match the protocol or local port number, the remaining identification fields are compared against the packet fields for the best match. The entry in the AMT 230 with the most nonzero identification field matches is returned. The packet delivery check is made by comparing two sets of attributes. For the local to local delivery, (i.e., the packet's origin and destination are both on the same local computer system 10, 20 or 30) (FIG. 1), the attributes of each network endpoint are compared. If the attributes are compatible, the packet delivery check passes. For packets being delivered to a remote system, or packets coming in from a remote system (the packet origin and destination are on two different computer systems), the attributes of the local network endpoint are compared with the attributes of the interface where the packet either came from or is destined to. If the attributes are compatible, then the packet delivery check process passes. In general, packet delivery checks involve the comparison of the attributes of two network endpoints applying the network security policy. Network attributes in this case apply to both network endpoints and NIC interface attributes. Network security policy may be extensible beyond a simple comparison, but in its simplest form, applies to comparison of the group identifiers of the two endpoints. If the group identifiers match for at least one attribute, the check passes, but, if there is not at least one group identifier that matches, the check fails. Illustrated in FIG. 7B is an example of the attribute map table delivery check routine 250 for the attribute map table 230 (FIG. 7A) of the present invention. The attribute map delivery check routine 250 is first initialized at step 251. At step 252, the AMT delivery check routine 250 then determines whether the current check is to be performed for a local endpoint. If it is determined at step 252 that the AMT delivery check is to be performed on a local endpoint, the AMT delivery check routine 250 then compares the entry endpoint primary group identifier to the receiver supplemental group identifier list at step 253, then proceeds to step 255. However, if it is determined at step 252 that the endpoint for the AMT delivery check to be performed is not local, then the AMT delivery check routine 250 then compares the entry endpoint primary group identifier to the interface network group list at step 254, and then proceeds to step 255. At step 255, the AMT delivery check routine 250 then determines whether the match has occurred between the endpoint primary group identifier to the group identifier list. A match occurs if the supplemental or network group list includes at least one identifier that matches the primary group identifier. If it is determined at step 255 that no match has occurred, the AMT delivery check routine 250 then marks the comparison as a failure at step 256 and exits at step 259. However, if it is determined at step 255 that a match has occurred between the endpoint primary group identifier and at least one identifier in the supplemental or network group identifier list, the AMT delivery check routine 250 then marks the comparison as a success at step 257 and exits at step 259. It will be apparent to those skilled in the art that many modifications and variations may be made to embodiments of the present invention, as set forth above, without departing substantially from the principles of the present invention. For example, although illustrated using only two processes, the group-based network access control system of the invention is capable of supporting many additional application programs and their corresponding processes, such as, for example but not limited to, a file transfer process, a mail server process, etc. Furthermore, it is contemplated that an application program may have more than one process running simultaneously. Further still, although illustrated using only two network interface cards, the group-based network access control system 100 of the present invention is capable of supporting many additional network interface cards. All such modifications and variations are intended to be included herein within the scope of the present invention, as defined in the claims that follow.
|
Same subclass Same class Consider this |
||||||||||
