Access control rule processing method and device, electronic equipment and storage medium
By processing access control rules when the number of terminal sessions reaches specific conditions, the problem of low terminal security management in the test environment is solved, and timely processing of access control rules and security improvement are achieved.
Patent Information
- Application Number
- CN202410811396.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-10-11
AI Technical Summary
In the test environment, access control rules that may be left behind after the terminal completes the test result in low security of terminal security management.
By determining the number of initial starts of access control rules and associated rule timers, the number of terminal sessions within the time period is counted. When the number of sessions reaches a certain condition, the corresponding access control rules are processed and invalid rules are removed in a timely manner.
It improves the security of terminal security management, avoids access control rules being left in the platform for too long, and ensures accurate processing timing and security.
Smart Images

Figure CN118764233A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a method, device, electronic device and storage medium for processing access control rules. Background Art
[0002] Firewalls are usually deployed in the network. Firewalls can control terminal access traffic so that possible security risks can be discovered and handled in a timely manner, thereby ensuring the security of the entire network environment. Different access control rules can be configured in the firewall to perform corresponding processing measures on terminal access traffic, such as releasing traffic and rejecting traffic, and can also record and detect various operations in the network. In addition, a schedule function can be configured for access control rules. The schedule function is used to ensure that access control rules take effect within a specified time.
[0003] In related technologies, in order to meet testing needs, some terminals can be connected to a test environment to perform related tests, and access control over terminal access to platform resources can be implemented by configuring corresponding access control rules.
[0004] In this way, if the terminal completes the test, the access control rules of the terminal may still be left behind, resulting in low security of terminal security management. Summary of the invention
[0005] The present application aims to solve one of the technical problems in the related art at least to some extent.
[0006] To this end, the first purpose of the present application is to propose a method for processing access control rules to improve the security of terminal security management.
[0007] The second objective of the present application is to provide a device for processing access control rules.
[0008] The third objective of the present application is to provide an electronic device.
[0009] A fourth objective of the present application is to provide a computer-readable storage medium.
[0010] A fifth object of the present application is to provide a computer program product.
[0011] To achieve the above-mentioned purpose, the first aspect embodiment of the present application proposes a method for processing access control rules, including: determining the access control rules, wherein the access control rules are used to control terminal access to platform resources in the first platform; the timing duration of a rule timer associated with the access control rules, wherein the rule timer has a corresponding initial start number; determining the first duration based on the timing duration; determining the number of terminal sessions associated with the access control rules within the first duration after starting the rule timer; and processing the access control rules based on the initial start number when the number of terminal sessions meets the first condition.
[0012] To achieve the above-mentioned purpose, the second aspect embodiment of the present application proposes a processing device for access control rules, including: a first determination module, used to determine the access control rule, wherein the access control rule is used to control the terminal's access to platform resources in the first platform; an acquisition module, used to obtain the timing duration of a rule timer associated with the access control rule, wherein the rule timer has a corresponding initial startup number; a second determination module, used to determine the first duration based on the timing duration; a third determination module, used to determine the number of terminal sessions associated with the access control rule within the first duration after starting the rule timer; a processing module, used to process the access control rule according to the initial startup number when the number of terminal sessions meets the first condition.
[0013] To achieve the above-mentioned purpose, the third aspect embodiment of the present application proposes an electronic device, including: a processor, and a memory connected to the processor for communication; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement a method for processing access control rules proposed in the first aspect embodiment of the present application.
[0014] To achieve the above-mentioned purpose, the fourth aspect embodiment of the present application proposes a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by the processor, they are used to implement a method for processing access control rules proposed in the first aspect embodiment of the present application.
[0015] To achieve the above-mentioned purpose, the fifth aspect of the present application proposes a computer program product, including a computer program, which, when executed by a processor, implements the access control rule processing method proposed in the first aspect of the present application.
[0016] The access control rule processing method, device, electronic device, non-transitory computer-readable storage medium storing computer instructions, and computer program product provided by the present application determine the access control rule, wherein the access control rule is used to control the terminal access to the platform resources in the first platform, and obtain the timing duration of the rule timer associated with the access control rule, wherein the rule timer has a corresponding initial startup number, and determine the first duration according to the timing duration, determine the number of terminal sessions associated with the access control rule within the first duration after starting the rule timer, and when the number of terminal sessions meets the first condition, process the access control rule according to the initial startup number. Since the access control rules in the first platform can be processed in a timely manner, the security of terminal security management can be improved.
[0017] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0019] Figure 1 A flowchart of a method for processing access control rules provided in an embodiment of the present application;
[0020] Figure 2 A flowchart of another method for processing access control rules provided in an embodiment of the present application;
[0021] Figure 3 A flowchart of another method for processing access control rules provided in an embodiment of the present application;
[0022] Figure 4 It is a flowchart of a method for processing access control rules in an embodiment of the present application;
[0023] Figure 5 A schematic diagram of the structure of an access control rule processing device provided in an embodiment of the present application;
[0024] Figure 6 It is a schematic diagram of the structure of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0025] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0026] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions. The acquisition, transmission, storage, use and processing of data in the technical solution of this application are in compliance with the relevant provisions of national laws and regulations.
[0027] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0028] Figure 1 A flowchart of a method for processing access control rules provided in an embodiment of the present application.
[0029] This embodiment takes the case where the method for processing access control rules is configured in a processing device for access control rules as an example. In this embodiment, the method for processing access control rules can be configured in a processing device for access control rules. The processing device for access control rules can be set in a server or in an electronic device, without limitation.
[0030] This embodiment takes the case where the processing method of access control rules is configured in an electronic device as an example, wherein the electronic device is a hardware device such as a smart phone, a tablet computer, a personal digital assistant, an e-book, etc. having various operating systems.
[0031] It should be noted that the execution entity of the embodiment of the present application may be, for example, a central processing unit (CPU) in a server or electronic device in terms of hardware, or may be, for example, a related background service in a server or electronic device in terms of software, without limitation.
[0032] like Figure 1 As shown, the processing method of the access control rule includes:
[0033] S101: Determine an access control rule, wherein the access control rule is used to control a terminal's access to platform resources in a first platform.
[0034] The first platform may be, for example, a test platform, a system development platform, etc., without limitation. Platform resources refer to software and hardware resources provided by the first platform that can be accessed and used by the terminal. For example, if the first platform is a test platform, the platform resources may be, for example, test resources. If the first platform is a system development platform, the platform resources may be, for example, resources required for system development, without limitation.
[0035] The access control rules are used to control the terminal's access to platform resources in the first platform, such as flow control and the like.
[0036] In some embodiments, the access control rule may be pre-configured for the terminal, and when the terminal accesses the first platform and accesses and uses platform resources in the first platform, control may be performed based on the access control rule.
[0037] S102: Obtaining a timing duration of a rule timer associated with the access control rule, wherein the rule timer has a corresponding initial start number of times.
[0038] In some embodiments, a rule timer may be pre-configured for the access control rule, and the rule timer has an associated timing duration. The timing duration of the rule timer indicates the effective duration of the access control rule. For example, after the rule timer is started, the access control rule takes effect within the timing duration of the rule timer.
[0039] The number of times the rule timer has been started may be referred to as the initial start number.
[0040] In some embodiments, the rule timer may be started after determining that the terminal needs to be connected to the first platform; or the rule timer may be started in any possible scenario; or the rule timer may be started after receiving a start instruction, without limitation.
[0041] S103: Determine a first duration according to the timing duration.
[0042] After determining the timing duration of the rule timer, a first duration may be determined, where the first duration represents the duration for counting the number of sessions of the terminal. The terminal may access platform resources in the first platform in a terminal session.
[0043] In some embodiments, in the process of determining the first duration according to the timing duration, half of the timing duration may be used as the first duration. This ensures the rationality of processing access control rules based on the statistical number of terminal sessions and prevents useless access control rules from being left in the first platform for too long, thereby improving practicality.
[0044] S104: Determine the number of terminal sessions associated with the access control rule within the first time period after starting the rule timer.
[0045] After determining the first duration, the number of terminal sessions associated with the access control rule within the first duration after starting the rule timer can be analyzed. The terminal session associated with the access control rule means that the access control rule is required to be used for corresponding control during the connection process of the terminal session.
[0046] S105: When the number of terminal sessions meets the first condition, the access control rule is processed according to the number of initial startup times.
[0047] After determining the number of terminal sessions associated with the access control rule within the first time period after starting the rule timer, the access control rule may be processed according to the initial start times if the number of terminal sessions meets the first condition.
[0048] The first condition refers to a threshold condition for access control rules to be processed based on the number of terminal sessions.
[0049] In some embodiments, the number of terminal sessions satisfies the first condition, including: the number of terminal sessions is equal to zero. That is, if the number of terminal sessions associated with the access control rule is equal to zero within the first time period after the rule timer is started, it means that the access control rule has no traffic match within the first time period, so the access control rule can be processed accordingly, so that the timing of processing the access control rule can be accurately determined.
[0050] In this embodiment, an access control rule is determined, wherein the access control rule is used to control terminal access to platform resources in a first platform, and a timing duration of a rule timer associated with the access control rule is obtained, wherein the rule timer has a corresponding initial startup number, a first duration is determined based on the timing duration, the number of terminal sessions associated with the access control rule within the first duration after starting the rule timer is determined, and when the number of terminal sessions meets a first condition, the access control rule is processed based on the initial startup number. Since the access control rules in the first platform can be processed in a timely manner, the security of terminal security management can be improved.
[0051] In some embodiments, when the number of terminal sessions does not satisfy the first condition, it is monitored whether the rule timer is started again. That is, if the number of terminal sessions does not satisfy the first condition, it means that a terminal session has been established within the first time period, and the access control rules in the first platform can be retained at this time, and then it can be dynamically monitored whether the rule timer is started again.
[0052] Figure 2 A flowchart of another access control rule processing method provided in an embodiment of the present application.
[0053] like Figure 2 As shown, the processing method of the access control rule includes:
[0054] S201: Determine an access control rule, wherein the access control rule is used to control a terminal's access to platform resources in a first platform.
[0055] S202: Obtain a timing duration of a rule timer associated with the access control rule, wherein the rule timer has a corresponding initial start number of times.
[0056] S203: Determine a first duration according to the timing duration.
[0057] S204: Determine the number of terminal sessions associated with the access control rule within the first time period after starting the rule timer.
[0058] For the description of S201 - S204 , please refer to the above embodiment for details, which will not be repeated here.
[0059] S205: When the number of terminal sessions meets the first condition, detect whether the access address of the terminal is connectable to obtain a detection result.
[0060] The access address of the terminal may be, for example, an Internet Protocol (IP) address.
[0061] In some embodiments, when the number of terminal sessions meets the first condition, if the access address of the terminal is connectable, it indicates that the terminal is not offline; if the access address of the terminal is not connectable, it indicates that the terminal is offline.
[0062] S206: Processing the access control rule according to the detection result and the initial startup times.
[0063] In some embodiments, when the number of terminal sessions meets the first condition, the access control rule can be processed according to whether the terminal is offline and the number of initial startup times of the rule timer.
[0064] In this embodiment, an access control rule is determined, wherein the access control rule is used to control terminal access to platform resources in a first platform, and a timing duration of a rule timer associated with the access control rule is obtained, wherein the rule timer has a corresponding initial startup number, a first duration is determined according to the timing duration, the number of terminal sessions associated with the access control rule within the first duration after starting the rule timer is determined, and when the number of terminal sessions meets a first condition, whether the access address of the terminal is connectable is detected to obtain a detection result, and the access control rule is processed according to the detection result and the initial startup number. Since the access control rule in the first platform can be processed in a timely manner, the security of terminal security management can be improved, and the accuracy of processing can be further improved.
[0065] Figure 3 A flowchart of another access control rule processing method provided in an embodiment of the present application.
[0066] like Figure 3 As shown, the processing method of the access control rule includes:
[0067] S301: Determine an access control rule, wherein the access control rule is used to control a terminal's access to platform resources in a first platform.
[0068] S302: Obtain a timing duration of a rule timer associated with the access control rule, wherein the rule timer has a corresponding initial start number of times.
[0069] S303: Determine a first duration according to the timing duration.
[0070] S304: Determine the number of terminal sessions associated with the access control rule within the first time period after starting the rule timer.
[0071] S305: When the number of terminal sessions meets the first condition, detect whether the access address of the terminal is connectable to obtain a detection result.
[0072] For the description of S301 - S305 , please refer to the above embodiment for details, which will not be repeated here.
[0073] S306: When the detection result indicates that the access address of the terminal is not connectable, configure the access control rule to a target state, wherein when the access control rule is in the target state, the terminal is not allowed to access the platform resources.
[0074] In some embodiments, if the access address of the terminal is not connectable, it means that the terminal has gone offline. At this time, the access control rules in the first platform are useless. Then the access control rules can be configured to the target state, and the access control rules in the target state can prevent the terminal from accessing platform resources.
[0075] S307: When the detection result indicates that the access address of the terminal is connectable, the initial startup number is updated to obtain a target startup number, and the access control rule is processed according to the target startup number.
[0076] In some embodiments, if the access address of the terminal is connectable, it means that the terminal is not offline. At this time, in order to ensure accurate processing of the access control rules, the access control rules can be processed based on the number of times the rule timer is started.
[0077] In some embodiments, in the process of updating the initial startup number to obtain the target startup number, the initial startup number may be added by 1 to obtain the target startup number.
[0078] In some embodiments, in the process of implementing the processing of the access control rules according to the target startup times, the access control rules may be configured to the target state when the target startup times are greater than or equal to the startup times threshold. That is to say, if the target startup times are greater than or equal to the startup times threshold, it means that there is no actual business access for a continuous period of time, but the terminal is still online. At this time, there is a high possibility that the test task has been completed, and the access control rules in the first platform are useless. Then the access control rules can be configured to the target state, and the access control rules in the target state can prevent the terminal from accessing platform resources.
[0079] In some embodiments, in the process of implementing the processing of the access control rules according to the target startup times, when the target startup times are less than the startup times threshold, the access control rules in the first platform can be retained, and then, it is monitored whether the rule timer is started again.
[0080] For example, the startup times threshold may be, for example, 3 or 4 times, and there is no limitation to this.
[0081] For example, the present application maintains a rule table for the rules of binding schedules (an optional example of access control rules), which records the following items of each rule (rule), namely: the schedule duration T_i of rule_i (an optional example of the timing duration of the rule timer), the total number of sessions Session_i of rule_i within T_i (an optional example of the number of terminal sessions), and maintains the timer (an optional example of the rule timer), Tcount_i is the number of times the timer is started, the initial value of Tcount_i is 0 (an optional example of the initial number of starts), and T_i and Tcount_i are dynamically updated. And Tcount (an optional example of the threshold of the number of starts) is set to the number of time periods (the specific value can be set according to the empirical value and the actual situation). Among them, the initial value of T_i can be set according to the actual situation, such as being set to 1 / 2 of the binding schedule duration (an optional example of the timing duration of the rule timer). The binding schedule duration is generally set to a default duration (such as 3 months), so the initial value of T_i can be set to 1.5 months. For each rule that is bound to a schedule duration, the rule will be executed as follows: Figure 4 The operation shown, Figure 4 This is a flowchart of a method for processing access control rules in an embodiment of the present application:
[0082] 1. When the rule takes effect, start the rule timer and calculate the number of sessions Session_i (an optional example of the number of terminal sessions) that match the rule within the duration T of T_i (an optional example of the first duration).
[0083] 2. Update the value of T_i to T_i / 2, and update the value of Tcount_i to Tcount_i+1.
[0084] 3. Check whether the session count Session_i is 0. If a session is established, update the value of Tcount_i to 0 and re-enter step 1.
[0085] 4. If the session count Session_i is 0, it means that there is no traffic matching the rule within the duration T, and proceed to step 5.
[0086] 5. Test the connectivity of the terminal IP address (for example, you can use a ping operation). If connectivity fails, it can be considered that the terminal is offline, and the action of the rule is set to deny, not allowing the terminal to access the target system (an optional example of the first platform).
[0087] 6. If the terminal IP can be connected, it means that the terminal is still online, but there is no actual business access during the time period. Then compare whether Tcount_i reaches Tcount. If Tcount_i is less than Tcount, then re-enter step 1.
[0088] 7. If Tcount_i is greater than or equal to Tcount, it means that there is no actual business access for a continuous period of time, but the terminal is still online, which means that the test task may have been completed. Therefore, the action of the rule is set to deny, and the terminal is not allowed to access the target system.
[0089] Therefore, in the embodiment of the present application, the legacy access control rules can be found in time and the access of the relevant terminals can be prohibited. For the direct connection terminal whose IP address changes temporarily, the IP before the change can be found in time, and the direct connection terminal using the IP can be denied access to the test system (an optional example of the first platform); for the direct connection terminal whose test task is completed ahead of schedule, the direct connection terminal can be found in time and denied access to the test system.
[0090] Figure 5 A schematic diagram of the structure of an access control rule processing device provided in an embodiment of the present application.
[0091] like Figure 5 As shown, the access control rule processing device 50 includes:
[0092] The first determination module 501 is used to determine an access control rule, wherein the access control rule is used to control the terminal's access to platform resources in the first platform.
[0093] The acquisition module 502 is used to acquire the timing duration of a rule timer associated with the access control rule, wherein the rule timer has a corresponding initial start number.
[0094] The second determination module 503 is used to determine a first duration according to the timing duration.
[0095] The third determination module 504 is configured to determine the number of terminal sessions associated with the access control rule within the first time period after the rule timer is started.
[0096] The processing module 505 is used to process the access control rule according to the initial startup number when the number of terminal sessions meets the first condition.
[0097] It should be noted that the aforementioned explanation of the method for processing access control rules is also applicable to the device for processing access control rules of this embodiment, and will not be repeated here.
[0098] In this embodiment, an access control rule is determined, wherein the access control rule is used to control terminal access to platform resources in a first platform, and a timing duration of a rule timer associated with the access control rule is obtained, wherein the rule timer has a corresponding initial startup number, a first duration is determined based on the timing duration, the number of terminal sessions associated with the access control rule within the first duration after starting the rule timer is determined, and when the number of terminal sessions meets a first condition, the access control rule is processed based on the initial startup number. Since the access control rules in the first platform can be processed in a timely manner, the security of terminal security management can be improved.
[0099] In an exemplary embodiment, an electronic device is also proposed, wherein the electronic device comprises: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the access control rule processing method proposed in any of the above embodiments.
[0100] As an example, Figure 6 is a schematic diagram of the structure of an electronic device shown in an exemplary embodiment of the present application, such as Figure 6 As shown, the electronic device 500 may further include:
[0101] The memory 510 and the processor 520, a bus 530 connecting different components (including the memory 510 and the processor 520), the memory 510 stores a computer program, and when the processor 520 executes the program, the method for processing access control rules described in the embodiment of the present application is implemented.
[0102] Bus 530 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
[0103] The electronic device 500 typically includes a variety of electronic device readable media. These media can be any available media that can be accessed by the electronic device 500, including volatile and non-volatile media, removable and non-removable media.
[0104] The memory 510 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 540 and / or cache memory 550. The electronic device 500 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 560 may be used to read and write non-removable, non-volatile magnetic media ( Figure 6 not shown, usually called a "hard drive"). Although Figure 6 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical medium) may be provided. In these cases, each drive may be connected to bus 530 via one or more data medium interfaces. Memory 510 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of each embodiment of the present application.
[0105] A program / utility 580 having a set (at least one) of program modules 570 may be stored, for example, in the memory 510, such program modules 570 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 570 generally perform the functions and / or methods of the embodiments described herein.
[0106] The electronic device 500 may also communicate with one or more external devices 590 (e.g., keyboard, pointing device, display 591, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 500, and / or communicate with any device that enables the electronic device 500 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed via an input / output (I / O) interface 592. In addition, the electronic device 500 may also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) via a network adapter 593. As shown, the network adapter 593 communicates with other modules of the electronic device 500 via a bus 530. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0107] The processor 520 executes various functional applications and data processing by running the programs stored in the memory 510 .
[0108] It should be noted that the implementation process and technical principles of the electronic device of this embodiment refer to the aforementioned explanation of the method for processing access control rules of the embodiment of the present application, which will not be repeated here.
[0109] In order to implement the above embodiments, the present application also proposes an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method provided by the above embodiments.
[0110] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the methods provided by the above embodiments.
[0111] In order to implement the above embodiments, the present application also proposes a computer program product, including a computer program, which implements the methods provided by the above embodiments when executed by a processor.
[0112] It should be noted that personal information from users should be collected for legitimate and reasonable purposes and should not be shared or sold outside of these legitimate uses. In addition, such collection / sharing should be carried out after receiving the user's informed consent, including but not limited to notifying the user to read the user agreement / user notice and sign the agreement / authorization including authorization of relevant user information before the user uses the function. In addition, any necessary steps should be taken to protect and safeguard access to such personal information data and ensure that others who have access to personal information data comply with its privacy policy and procedures.
[0113] This application is expected to provide an implementation scheme for users to selectively block the use or access of personal information data. That is, this application is expected to provide hardware and / or software to prevent or block access to such personal information data. Once the personal information data is no longer needed, risks can be minimized by limiting data collection and deleting data. In addition, when applicable, personal identifiers are removed from such personal information to protect the privacy of users.
[0114] In the description of the aforementioned embodiments, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0115] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0116] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0117] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0118] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0119] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0120] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0121] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for processing access control rules, It is characterized in that The method comprises the following steps: Determining an access control rule, wherein the access control rule is used to control the terminal's access to platform resources in the first platform; Obtaining a timing duration of a rule timer associated with the access control rule, wherein the rule timer has a corresponding initial start number; Determine a first duration according to the timing duration; determining a number of terminal sessions associated with the access control rule within the first duration after starting the rule timer; and When the number of terminal sessions satisfies the first condition, the access control rule is processed according to the number of initial startup times.
2. The method according to claim 1, It is characterized in that The method further comprises: When the number of terminal sessions does not satisfy the first condition, monitoring is performed to determine whether the rule timer is started again.
3. The method according to claim 1, It is characterized in that The number of terminal sessions satisfies the first condition, including: The terminal session quantity is equal to zero.
4. The method according to claim 1, It is characterized in that The processing of the access control rule according to the initial startup number includes: Detecting whether the access address of the terminal is connectable and obtaining a detection result; The access control rule is processed according to the detection result and the initial startup number.
5. The method according to claim 4, It is characterized in that The processing of the access control rule according to the detection result and the initial startup number includes: When the detection result indicates that the access address of the terminal is not connectable, configuring the access control rule to a target state, wherein when the access control rule is in the target state, the terminal is not allowed to access the platform resources; When the detection result indicates that the access address of the terminal is connectable, the initial startup number is updated to obtain a target startup number, and the access control rule is processed according to the target startup number.
6. The method according to claim 5, It is characterized in that The updating of the initial startup number to obtain a target startup number includes: The initial startup times are added by 1 to obtain the target startup times.
7. The method according to claim 5, It is characterized in that The processing of the access control rule according to the target startup number includes: When the target startup times is greater than or equal to the startup times threshold, the access control rule is configured as the target state.
8. The method according to claim 5, It is characterized in that The method further comprises: When the target start-up times is less than the start-up times threshold, monitoring is performed to determine whether the rule timer is started again.
9. The method according to claim 1, It is characterized in that The determining a first duration according to the timing duration includes: A half of the timing duration is used as the first duration.
10. A device for processing access control rules, It is characterized in that The device comprises: A first determination module, used to determine an access control rule, wherein the access control rule is used to control the terminal's access to platform resources in the first platform; An acquisition module, used to acquire a timing duration of a rule timer associated with the access control rule, wherein the rule timer has a corresponding initial start number; A second determining module, configured to determine a first duration according to the timing duration; A third determination module, configured to determine the number of terminal sessions associated with the access control rule within the first time period after starting the rule timer; The processing module is used to process the access control rule according to the initial startup number when the number of terminal sessions meets the first condition.
11. An electronic device, It is characterized in that include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 9.
12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 9 when executed by a processor.
13. A computer program product, It is characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 9 when being executed by a processor.
