Access control method for storage device and related apparatus

By obtaining device information and access records of storage devices to generate quick access policies, the problems of low security and efficiency in the storage device connection process are solved, and secure and efficient access control is achieved.

CN115729467BActive Publication Date: 2026-11-20SHENZHEN ORICO TECHNOLOGIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211385535.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-07
Publication Date
2026-11-20
Estimated Expiration
2042-11-07

AI Technical Summary

Technical Problem

Existing storage devices suffer from security and efficiency issues during connection processes, especially with excessively long connection times when encryption is complex.

Method used

By obtaining the device information of the target storage device, it is determined whether this is the first connection. If not, the target access record is obtained from the historical connection record. Based on the access record, it is determined whether the current access environment meets the conditions for generating a quick access policy, and a quick access policy is generated to achieve secure and efficient access.

Benefits of technology

It achieves security and efficiency in the storage device connection process, and optimizes the connection process through a fast access strategy to improve access efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115729467B_ABST
    Figure CN115729467B_ABST
Patent Text Reader

Abstract

The application discloses a storage device access control method and related device, comprising: obtaining device information of a target storage device when a preset connection condition is met; determining whether the target storage device is a first connection according to the device information; if not, obtaining target access records of the target storage device in historical connection records; determining whether a current access environment meets the condition for generating a shortcut strategy according to the target access records; when it is determined that the current access environment meets the condition for generating the shortcut strategy, generating a shortcut access strategy corresponding to the target storage device according to the current access environment and implementing access to the target storage device according to the shortcut access strategy; obtaining device information of the target storage device after detecting connection to determine whether it is a first connection; when it is determined that it is not a first connection, generating a shortcut strategy according to the target access records and implementing access to the target storage device through the shortcut strategy; further realizing safety and efficiency in the storage device connection process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of storage devices, and in particular to an access control method and related apparatus for a storage device. Background Technology

[0002] With the advancement of information technology, various storage devices have become an indispensable part of life and work. Common storage devices such as USB flash drives are widely used in various situations, and they also contain information that needs to be kept confidential. To prevent information leakage, people often use various complex encryption methods to control storage devices. However, the more complex the encryption, the longer it takes to access the storage device.

[0003] Therefore, ensuring the security and efficiency of the storage device connection process has become a pressing technical problem that needs to be solved. Summary of the Invention

[0004] To ensure security and efficiency during the connection process of storage devices, this application provides a storage device access control method and related apparatus.

[0005] Firstly, the access control method for a storage device provided in this application adopts the following technical solution: An access control method for a storage device includes: When the preset connection conditions are met, obtain the device information of the target storage device; Determine whether the target storage device is being connected for the first time based on the device information; If not, then retrieve the target access record of the target storage device from the historical connection record; Based on the target access record, determine whether the current access environment meets the conditions for generating a shortcut policy; When it is determined that the current access environment meets the conditions for generating a shortcut policy, a shortcut access policy corresponding to the target storage device is generated based on the current access environment, and the target storage device is accessed according to the shortcut access policy.

[0006] Optionally, after the step of determining whether the target storage device is being connected for the first time based on the device information, the method further includes: If the target storage device is determined to be the first connection based on the device information, a preset access strategy is obtained; Configure access permissions to the target storage device according to the preset access policy; Upon receiving a successful access instruction from the target server, the access record is recorded and stored in the corresponding database.

[0007] Optionally, the step of determining whether the current access environment meets the conditions for generating a shortcut policy based on the target access record includes: Obtain the historical access environment corresponding to the target access record; Determine if there is more than one historical access environment; If not, then determine whether the conditions for generating a shortcut policy are met based on the historical access environment and the current access environment. If it is determined that there is more than one historical access environment, then the preset environment element type is obtained; According to the preset environmental element type, the corresponding content is obtained in the historical access environment as element content; A set of element content is generated based on all element content, and the set of element content is combined with the current access environment to determine whether the conditions for generating the shortcut strategy are met.

[0008] Optionally, the step of generating a set of element content based on all the element content, and determining whether the conditions for generating the shortcut strategy are met based on the set of element content and the current access environment, includes: Generate a set of element content based on all the element content; Obtain the current access environment information, and retrieve the current element information from the current access environment information according to the element type; Based on the current element information, the element content set is traversed to obtain the traversal result; Based on the traversal results, determine whether the current access environment meets the conditions for generating the shortcut policy.

[0009] Optionally, the step of generating a quick access policy corresponding to the target storage device based on the current access environment includes: Based on the current access environment, a match is made in the policy set and the final matching result is obtained; Determine the environment type of the current access environment and adjust the strategy weight information in the final matching result according to the environment type; Obtain the current final matching result and generate a quick access strategy corresponding to the target storage device based on the final matching result.

[0010] Optionally, the step of matching in the policy set according to the current access environment and obtaining the final matching result includes: Obtain the host access environment and target environment in the current access environment; Based on the host access environment, a first matching result is obtained by matching within the first policy set. Based on the target environment, a second matching result is obtained by matching within the second strategy set. The final matching result is generated by combining the first matching result and the second matching result.

[0011] Optionally, the step of determining the environment type of the current access environment and adjusting the strategy weight information in the final matching result according to the environment type includes: Determine the corresponding environment type based on the current access environment; Match the corresponding weight pattern in the preset type set according to the environment type; The strategy weight information in the final matching result is adjusted according to the weight pattern.

[0012] Secondly, this application provides an access control device for a storage device, the access control device for the storage device comprising: The information acquisition module is used to acquire device information of the target storage device when preset connection conditions are met. A connection determination module is used to determine whether the target storage device is being connected for the first time based on the device information. The record acquisition module is used to acquire the target access record of the target storage device from the historical connection record if no; The strategy judgment module is used to determine whether the current access environment meets the conditions for generating a shortcut policy based on the target access record; The policy generation module is used to generate a quick access policy for the target storage device based on the current access environment and the target access record when it is determined that the current access environment meets the conditions for generating a quick access policy.

[0013] Thirdly, this application provides a computer device, the device comprising: a memory and a processor, wherein the processor, when executing computer instructions stored in the memory, performs the method as described in any one of the above.

[0014] Fourthly, this application provides a computer-readable storage medium including instructions that, when executed on a computer, cause the computer to perform the method described above.

[0015] In summary, this application includes the following beneficial technical effects: This application achieves security and efficiency in the storage device connection process by: acquiring device information of the target storage device when preset connection conditions are met; determining whether the target storage device is being connected for the first time based on the device information; if not, acquiring the target access record of the target storage device from the historical connection records; determining whether the current access environment meets the conditions for generating a shortcut policy based on the target access record; if the current access environment meets the conditions for generating a shortcut policy, generating a shortcut access policy corresponding to the target storage device based on the current access environment and accessing the target storage device according to the shortcut access policy; and by acquiring device information of the target storage device after a connection is detected to determine whether it is the first connection; and if not, generating a shortcut policy based on the target access record of the target storage device in the historical connection records and implementing access to the target storage device through the shortcut policy. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of the computer device structure of the hardware operating environment involved in the embodiments of the present invention; Figure 2 This is a flowchart illustrating the first embodiment of the access control method for the storage device of the present invention; Figure 3 This is a flowchart illustrating the second embodiment of the access control method for the storage device of the present invention; Figure 4 This is a structural block diagram of the first embodiment of the access control device for the storage device of the present invention. Detailed Implementation

[0017] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0018] Reference Figure 1 , Figure 1 This is a schematic diagram of the computer device structure of the hardware operating environment involved in the embodiments of the present invention.

[0019] like Figure 1As shown, the computer device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wireless-Fidelity (Wi-Fi) interface). The memory 1005 may be high-speed random access memory (RAM) or stable non-volatile memory (NVM), such as a disk drive. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.

[0020] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the computer device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0021] like Figure 1 As shown, the memory 1005, which serves as a storage medium, may include an operating system, a network communication module, a user interface module, and an access control program for the storage device.

[0022] exist Figure 1 In the computer device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the computer device of the present invention can be set in the computer device, and the computer device calls the access control program of the storage device stored in the memory 1005 through the processor 1001 and executes the access control method of the storage device provided in the embodiment of the present invention.

[0023] This invention provides an access control method for a storage device, referring to... Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the access control method for the storage device of the present invention.

[0024] In this embodiment, the access control method for the storage device includes the following steps: Step S10: When the preset connection conditions are met, obtain the device information of the target storage device.

[0025] It should be noted that satisfying the preset connection conditions means that the preset connection conditions are met when a connection request is detected at the preset port. In this embodiment, the device that satisfies the preset connection conditions can be a USB flash drive or other types of external hard drives; this embodiment does not impose any restrictions.

[0026] It is understood that the storage device refers to a device used to store information. A storage device is a device used to store information, which is usually digitized and then stored using media such as electricity, magnetism or optics.

[0027] In specific implementation, when a device is detected connected to a preset port, it is determined whether the device is a storage device, and if the device is determined to be a storage device, the device information of the storage device is obtained.

[0028] Step S20: Determine whether the target storage device is being connected for the first time based on the device information.

[0029] It should be noted that determining whether the target storage device is being connected for the first time based on the device information means obtaining the device identification information in the device, traversing the historical connection record table using the device identification information, and determining whether the device is being accessed for the first time based on the traversal results.

[0030] It is understandable that determining whether the target storage device is being connected for the first time is important because if the target storage device is not being connected for the first time, historical access policies can be obtained based on historical connection records, and the target device can be accessed quickly through historical access policies.

[0031] Step S30: If not, retrieve the target access record of the target storage device from the historical connection records.

[0032] It is understood that the target access record of the target storage device is obtained from the historical connection record. The target access record is stored in a pre-set server, and the target access record can be obtained by calling the historical data stored in the server.

[0033] Step S40: Determine whether the current access environment meets the conditions for generating a shortcut policy based on the target access record.

[0034] It should be noted that determining whether the current access environment meets the conditions for generating a shortcut policy based on the current target access record means comparing the historical access environment in the target access record with the current access environment to determine whether the conditions for generating a shortcut policy are met.

[0035] It is understood that if the historical access environment is the same as the current access environment, the access policy corresponding to the historical access environment can be directly used as the access policy corresponding to the current access environment.

[0036] Furthermore, in order to accurately generate access policies even when different historical access environments occur, the step of determining whether the current access environment meets the conditions for generating a shortcut policy based on the target access record includes: obtaining the historical access environment corresponding to the target access record; determining whether there is more than one historical access environment; if not, determining whether the conditions for generating a shortcut policy are met based on the historical access environment and the current access environment; if it is determined that there is more than one historical access environment, obtaining a preset environment element type; obtaining the corresponding content in the historical access environment as element content based on the preset environment element type; generating an element content set based on all element content; and determining whether the conditions for generating a shortcut policy are met based on the element content set and the current access environment.

[0037] Understandably, when more than one historical access environment exists, the corresponding element content in the historical access environment is determined by obtaining the preset environment element type. All obtained element content is then used to generate an element content set. Finally, based on this element content set and the current access environment, it is determined whether the conditions for generating a fast strategy are met.

[0038] In a specific implementation, the step of generating a set of element content based on all element content, and determining whether the conditions for generating a shortcut strategy are met based on the set of element content and the current access environment, includes: generating a set of element content based on all element content; obtaining current access environment information, and obtaining current element information from the current access environment information according to the element type; traversing the set of element content based on the current element information and obtaining the traversal result; and determining whether the current access environment meets the conditions for generating a shortcut strategy based on the traversal result.

[0039] It is understandable that if the corresponding element information in the current access environment can be determined to exist in the element content set by traversing the set, then the current access environment can be considered to meet the generation conditions of the shortcut strategy.

[0040] It should be noted that if the corresponding element information is found to be absent from the current access environment through traversal of the element content set, it is determined that the current access environment does not meet the generation conditions of the shortcut strategy.

[0041] Step S50: When it is determined that the current access environment meets the conditions for generating a shortcut policy, a shortcut access policy corresponding to the target storage device is generated according to the current access environment, and the target storage device is accessed according to the shortcut access policy.

[0042] Furthermore, in order to accurately generate a quick access policy, the step of generating a quick access policy corresponding to the target storage device based on the current access environment includes: matching in a policy set based on the current access environment and obtaining a final matching result; determining the environment type to which the current access environment belongs and adjusting the policy weight information in the final matching result according to the environment type; obtaining the current final matching result and generating a quick access policy corresponding to the target storage device based on the final matching result.

[0043] It should be noted that the system performs matching within a preset set of policies based on the current access environment, generates matching results, adjusts the weights of the matching results, and generates a quick access policy from the adjusted matching results.

[0044] It is understandable that different weight adjustment strategies exist depending on the access environment.

[0045] In a specific implementation, the step of matching in the policy set according to the current access environment and obtaining the final matching result includes: obtaining the host access environment and the target environment in the current access environment; matching in the first policy set according to the host access environment to obtain a first matching result; matching in the second policy set according to the target environment to obtain a second matching result; and combining the first matching result and the second matching result to generate a final matching result.

[0046] It should be noted that the current access environment can be divided into a host access environment and a target environment. The host access environment refers to the current access environment of the execution entity in this embodiment, while the target environment refers to the operating environment of the storage device to be accessed when connecting through the preset port.

[0047] It is understood that the first environment and the second environment in this embodiment do not have a specific sequential meaning, and the naming content is only used to distinguish the relationship. This embodiment does not limit the naming content.

[0048] In a specific implementation, the step of determining the environment type of the current access environment and adjusting the strategy weight information in the final matching result according to the environment type includes: determining the corresponding environment type according to the current access environment; matching the corresponding weight pattern in a preset type set according to the environment type; and adjusting the strategy weight information in the final matching result according to the weight pattern.

[0049] It is understood that the weight adjustment refers to the pre-allocation of weights to the policy content based on specific usage requirements. For example, if there is a lot of information confidentiality involved, the weights of the relevant encryption and decryption parts can be increased to ensure that the policy of the cryptographic part is executed normally.

[0050] This embodiment achieves security and efficiency in the storage device connection process by obtaining device information of the target storage device when preset connection conditions are met; determining whether the target storage device is being connected for the first time based on the device information; if not, obtaining the target access record of the target storage device from the historical connection records; determining whether the current access environment meets the conditions for generating a shortcut policy based on the target access record; if the current access environment meets the conditions for generating a shortcut policy, generating a shortcut access policy corresponding to the target storage device based on the current access environment and accessing the target storage device according to the shortcut access policy; by obtaining device information of the target storage device after detecting a connection to determine whether it is the first connection; and if not, generating a shortcut policy based on the target access record of the target storage device in the historical connection records and implementing access to the target storage device through the shortcut policy;

[0051] refer to Figure 3 The figure is a flowchart illustrating a second embodiment of the access control method for a storage device according to the present invention.

[0052] Based on the first embodiment described above, step S60 of the access control method for the storage device in this embodiment further includes: Step S201: If the target storage device is determined to be connected for the first time based on the device information, obtain the preset access policy.

[0053] It should be noted that when a connection is identified as a first-time connection, the target storage device will be accessed automatically using a preset default policy.

[0054] Understandably, command priorities can be set within a preset directory. For example, by setting a policy to bind commands to device signals, the system will automatically switch to the preset access policy when the corresponding device is detected.

[0055] Step S202: Configure access permissions for the target storage device according to the preset access policy.

[0056] It is understood that access permissions for the target storage device are configured according to the access requirements in the preset access policy.

[0057] Step S203: Upon receiving a successful access instruction from the target server, record the access record and store it in the corresponding database.

[0058] This embodiment obtains a preset access policy when the target storage device is determined to be accessed for the first time based on the device information; configures access permissions for the target storage device according to the preset access policy; records the access record and stores it in the corresponding database when a successful access instruction is received from the target server. This improves access efficiency for subsequent accesses to the same target by configuring permissions for the first access to the target storage device through the preset access policy and storing the access record in the target database after the access.

[0059] Furthermore, embodiments of the present invention also propose a computer-readable storage medium storing a program for access control of a storage device, wherein when the program for access control of the storage device is executed by a processor, it implements the steps of the method for access control of the storage device as described above.

[0060] Reference Figure 4 , Figure 4 This is a structural block diagram of the first embodiment of the access control device for the storage device of the present invention.

[0061] like Figure 4 As shown, the access control device for the storage device proposed in this embodiment of the invention includes: The information acquisition module 10 is used to acquire device information of the target storage device when the preset connection conditions are met; The connection determination module 20 is used to determine whether the target storage device is being connected for the first time based on the device information. The record acquisition module 30 is used to acquire the target access record of the target storage device from the historical connection record if no; The strategy judgment module 40 is used to determine whether the current access environment meets the conditions for generating a shortcut policy based on the target access record; The policy generation module 50 is used to generate a quick access policy corresponding to the target storage device based on the current access environment and the target access record when it is determined that the current access environment meets the conditions for generating a quick access policy.

[0062] It should be understood that the above are merely illustrative examples and do not constitute any limitation on the technical solutions of the present invention. In specific applications, those skilled in the art can make settings as needed, and the present invention does not impose any restrictions on this.

[0063] This embodiment achieves security and efficiency in the storage device connection process by obtaining device information of the target storage device when preset connection conditions are met; determining whether the target storage device is being connected for the first time based on the device information; if not, obtaining the target access record of the target storage device from the historical connection records; determining whether the current access environment meets the conditions for generating a shortcut policy based on the target access record; if the current access environment meets the conditions for generating a shortcut policy, generating a shortcut access policy corresponding to the target storage device based on the current access environment and accessing the target storage device according to the shortcut access policy; by obtaining device information of the target storage device after detecting a connection to determine whether it is the first connection; and if not, generating a shortcut policy based on the target access record of the target storage device in the historical connection records and implementing access to the target storage device through the shortcut policy;

[0064] In one embodiment, the connection determination module 20 is further configured to: if the target storage device is determined to be connected for the first time based on the device information, obtain a preset access policy; configure access permissions to the target storage device according to the preset access policy; and when receiving an access success instruction from the target server, record the access record and store the access record in the corresponding database.

[0065] In one embodiment, the strategy judgment module 40 is further configured to: obtain the historical access environment corresponding to the target access record; determine whether there is more than one historical access environment; if not, determine whether the conditions for generating a shortcut strategy are met based on the historical access environment and the current access environment; if it is determined that there is more than one historical access environment, obtain a preset environment element type; obtain the corresponding content in the historical access environment as element content based on the preset environment element type; generate an element content set based on all element content; and determine whether the conditions for generating a shortcut strategy are met based on the element content set and the current access environment.

[0066] In one embodiment, the strategy judgment module 40 is further configured to generate an element content set based on all element content; obtain current access environment information; obtain current element information from the current access environment information based on the element type; traverse the element content set based on the current element information to obtain traversal results; and determine whether the current access environment meets the generation conditions of the shortcut strategy based on the traversal results.

[0067] In one embodiment, the policy generation module 50 is further configured to perform matching in the policy set according to the current access environment and obtain the final matching result; determine the environment type to which the current access environment belongs and adjust the policy weight information in the final matching result according to the environment type; obtain the current final matching result and generate the quick access policy corresponding to the target storage device according to the final matching result.

[0068] In one embodiment, the policy generation module 50 is further configured to obtain the host access environment and the target environment in the current access environment; perform matching in a first policy set according to the host access environment to obtain a first matching result; perform matching in a second policy set according to the target environment to obtain a second matching result; and combine the first matching result and the second matching result to generate a final matching result.

[0069] In one embodiment, the strategy generation module 50 is further configured to determine the corresponding environment type based on the current access environment; match the corresponding weight pattern in a preset type set based on the environment type; and adjust the strategy weight information in the final matching result based on the weight pattern.

[0070] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of this invention. In practical applications, those skilled in the art can select some or all of the workflow to achieve the purpose of this embodiment according to actual needs, and no restrictions are imposed here.

[0071] In addition, for technical details not described in detail in this embodiment, please refer to the access control method for storage devices provided in any embodiment of the present invention, which will not be repeated here.

[0072] Furthermore, it should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0073] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0074] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as read-only memory (ROM) / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0075] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.

Claims

1. An access control method for a storage device, characterized in that, include: When the preset connection conditions are met, obtain the device information of the target storage device; Determine whether the target storage device is being connected for the first time based on the device information; If not, then retrieve the target access record of the target storage device from the historical connection records; Based on the target access record, determine whether the current access environment meets the conditions for generating a shortcut policy; When it is determined that the current access environment meets the conditions for generating a shortcut policy, a shortcut access policy corresponding to the target storage device is generated according to the current access environment, and the target storage device is accessed according to the shortcut access policy. The step of generating a quick access policy for the target storage device based on the current access environment includes: matching the current access environment in a policy set and obtaining a final matching result; determining the environment type of the current access environment and adjusting the policy weight information in the final matching result according to the environment type; obtaining the current final matching result and generating a quick access policy for the target storage device based on the final matching result. The step of matching in the policy set according to the current access environment and obtaining the final matching result includes: obtaining the host access environment and the target environment in the current access environment, wherein the target environment refers to the operating environment of the storage device to be accessed when connecting through a preset port; matching in the first policy set according to the host access environment to obtain a first matching result; matching in the second policy set according to the target environment to obtain a second matching result; and combining the first matching result and the second matching result to generate a final matching result.

2. The access control method for a storage device according to claim 1, characterized in that, After the step of determining whether the target storage device is being connected for the first time based on the device information, the method further includes: If the target storage device is determined to be the first connection based on the device information, a preset access policy is obtained; Configure access permissions to the target storage device according to the preset access policy; Upon receiving a successful access instruction from the target server, the access record is recorded and stored in the corresponding database.

3. The access control method for a storage device according to claim 1, characterized in that, The step of determining whether the current access environment meets the conditions for generating a shortcut policy based on the target access record includes: Obtain the historical access environment corresponding to the target access record; Determine if there is more than one historical access environment; If not, then determine whether the conditions for generating a shortcut policy are met based on the historical access environment and the current access environment. If it is determined that there is more than one historical access environment, then the preset environment element type is obtained; According to the preset environmental element type, the corresponding content is obtained in the historical access environment as element content; A set of element content is generated based on all element content, and the set of element content is combined with the current access environment to determine whether the conditions for generating the shortcut strategy are met.

4. The access control method for a storage device according to claim 3, characterized in that, The step of generating a set of element content based on all the element content, and determining whether the conditions for generating a shortcut strategy are met based on the set of element content and the current access environment, includes: Generate a set of element content based on all the aforementioned element content; Obtain the current access environment information, and retrieve the current element information from the current access environment information according to the element type; Based on the current element information, the element content set is traversed to obtain the traversal result; Based on the traversal results, determine whether the current access environment meets the conditions for generating the shortcut policy.

5. The access control method for a storage device according to claim 1, characterized in that, The step of determining the environment type of the current access environment and adjusting the strategy weight information in the final matching result according to the environment type includes: Determine the corresponding environment type based on the current access environment; Match the corresponding weight pattern in the preset type set according to the environment type; The strategy weight information in the final matching result is adjusted according to the weight pattern.

6. An access control device for a storage device, characterized in that, The access control device for the storage device includes: The information acquisition module is used to acquire device information of the target storage device when preset connection conditions are met. A connection determination module is used to determine whether the target storage device is being connected for the first time based on the device information. The record acquisition module is used to acquire the target access record of the target storage device from the historical connection record if no; The strategy judgment module is used to determine whether the current access environment meets the conditions for generating a shortcut policy based on the target access record; The strategy generation module is used to generate a shortcut access policy for the target storage device based on the target access record when the current access environment meets the conditions for generating a shortcut policy; it is used to match the current access environment in a policy set and obtain a final matching result; determine the environment type of the current access environment and adjust the policy weight information in the final matching result according to the environment type; obtain the current final matching result and generate a shortcut access policy for the target storage device based on the final matching result; it is used to obtain the host access environment and the target environment in the current access environment, wherein the target environment refers to the operating environment of the storage device that will be accessed when connected through a preset port; match the host access environment in a first policy set and obtain a first matching result; match the target environment in a second policy set and obtain a second matching result; and combine the first matching result and the second matching result to generate a final matching result.

7. A computer device, characterized in that, The device includes a memory and a processor, wherein the processor, when executing computer instructions stored in the memory, performs the method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, Includes instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Mobile storage apparatus, data secured transmission method and system

    CN101488952A

  • Data protection method and apparatus

    CN105243336A