Function level access control method
Through the function-level access control method, the access control manager is used to control the permissions of the software functions in the computer system according to the descriptor document, which solves the problem of low peripheral device data security in the computer system and achieves effective protection of different versions of software. and user rights management, improving data security and work efficiency.
Patent Information
- Application Number
- CN202410717180.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-10-01
AI Technical Summary
It is difficult to effectively protect the data security of peripheral devices in computer systems with existing technology. Especially when the host is attacked by a network, illegal programs may access and tamper with these devices, resulting in reduced data security.
Adopting a function-level access control method, by defining the protection content and scope, using the access control manager to control software functions based on the accessible set defined in the descriptor document, including checking the environment, user and function permissions, ensuring that only authorized users and environment to access specific functionality.
It effectively improves the data security of peripheral devices, prevents unauthorized access, is suitable for the release and pricing of different versions of software, and improves user work efficiency.
Smart Images

Figure CN118734352A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a function-level access control method. Background Art
[0002] In addition to the host, modern computer systems usually have many peripheral devices connected to the host for inputting or outputting data. When the host is attacked by a network, illegal programs in the host may illegally access these peripheral devices and steal or tamper with important data, thus greatly reducing the security of the data in the peripheral devices.
[0003] In the prior art, in the process of computer access control, it is necessary to protect and control the access to software functions to prevent unauthorized and illegal access. In a software system with a multi-role design, users of different roles have different permissions and can access different sets of functions. Software publishers often divide software into different versions according to the function set for pricing and distribution. Otherwise, it will cause errors in the control logic of the computer system and make it impossible to perform software access control normally. In view of this, we propose a function-level access control method. Summary of the invention
[0004] The purpose of the present invention is to provide a function-level access control method to solve the problems raised in the above background technology.
[0005] To achieve the above object, the present invention provides the following technical solution: a function-level access control method, the control method comprising the following steps:
[0006] S1. Define the content and scope of protection;
[0007] S2. Distribution of documents;
[0008] S3. Implementation of the access control manager; the access control manager is used to control access to software functions according to the accessible set defined in the aforementioned descriptor document; the access control manager is usually started simultaneously with the software, so as to check the environment, the format and signature of the descriptor document when the software is started.
[0009] Optionally, the S1 further includes:
[0010] Before performing access control, define the content and scope of protection and clarify the functions to be protected; the document contains different fields, and the basic format is "name=value", where "name" is the name of the field and "value" is the value of the field.
[0011] Optionally, the content protected by the definition includes:
[0012] Target environment information: used to describe the software's operating environment, such as MAC address, processor architecture, operating system, and host name. In some application scenarios, this section of information can be used to check the actual software operating environment to prevent the software from running in an unauthorized environment.
[0013] Expiration time: For security reasons, you need to set an expiration time for the current accessible set. The accessible set descriptor document that exceeds the expiration time will become unavailable. When the software detects this information, it can take relevant measures, such as refusing to run or running the software in the minimum functional set mode.
[0014] Target user information: Sometimes the software instance may only be provided to a specific user or a specified number of users. In this case, the target user information needs to be included in the document, such as user name, number of users, etc.
[0015] Accessible function list: The accessible function list defines the set of functions that the user can access. The access control manager uses this to determine whether the current user has the right to access a certain software function; the function list is defined using a tree-structured namespace, which consists of subroutines, modules, functions, and sub-functions. Different namespaces can be combined through their inclusion relationships in the program.
[0016] For example, if you want to allow access to all functions in a module, you only need to give the module name; if you want to allow access to only some functions in a module, you need to give the module name first, and then define the set of these functions separately in a sublist (tree branch); and so on.
[0017] Excluded function list: This list can list the functions that are prohibited from access. This list is usually used in conjunction with the "Accessible function list". For example, "Module A" contains several functions, most of which are accessible, and only "Function m" and "Function n" need to be prohibited from access. There are two definition methods at this time:
[0018] Method 1: List all accessible functions in "Module A" except "Function m" and "Function n" in the "Accessible Function List";
[0019] Method 2: List only "Module A" in the "Accessible Function List" (indicating that all functions in this module are accessible), and then exclude "Function m" and "Function n" of "Module A" in the "Excluded Function List" in this section.
[0020] The above two methods achieve the same effect. When there are more functions in the module, method 2 is more concise.
[0021] Signature: To protect the content of the descriptor document, each descriptor document contains a signature. If the content of the document changes due to transmission or malicious modification, the signature verification will fail; to further improve security, the document can be encrypted after signing, and the original signature can only be obtained after decryption.
[0022] Line continuation character: Sometimes the value of a field is relatively long. To ensure clear format and easy reading, you can use the line continuation character “\” in the document to split a line into multiple lines.
[0023] Optionally, the distribution of the document in S2 includes:
[0024] Distribute via the Internet;
[0025] Integrated into software distribution;
[0026] Distributed through user roles + database;
[0027] Through offline file distribution.
[0028] Optionally, the access control manager includes the following functions:
[0029] Document format check: Check the format and content of the descriptor document. The focus includes the following items: Check whether the descriptor document contains all the required sections: such as expiration date, accessible function list, signature, etc.
[0030] Check whether the content is correct; such as the modules in the accessible list and excluded function list, whether the function names are correct, whether the inclusion relationships are correct, etc.
[0031] Check the expiration time; check the document expiration time. You can use local time or network time for verification.
[0032] Verify the signature; verify the signature. If the signature is not encrypted, you can directly verify the signature. However, the unencrypted signature can only protect the integrity of the document content, but cannot prevent malicious tampering. If you want to prevent tampering with the document content, you can asymmetrically encrypt the signature based on the signature.
[0033] Environment check: Check whether the current environment of the software matches the environment specified in the descriptor document, such as MAC address, processor architecture, operating system, host name, etc. In situations where security requirements are high, dedicated hardware devices can also be used to provide verification data.
[0034] Feature accessibility check; the access control manager reads and caches the list of accessible features and the list of excluded features.
[0035] When the software needs to call a function, it first calls the access control manager to check the accessibility of the function. The access control manager determines whether the function is accessible based on the accessible list and exclusion list in the document. If it is not accessible, the software refuses to call the function.
[0036] Compared with the prior art, the present invention provides a function-level access control method, which has the following beneficial effects:
[0037] In the function-level access control method, the access control manager is used to control the access to the software functions according to the accessible set defined in the aforementioned descriptor document; the access control manager is usually started simultaneously with the software, so as to check the environment, the format and signature of the descriptor document when the software is started, so as to be suitable for different versions of software release and pricing, and can effectively improve the work efficiency of users. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] like Figure 1 As shown, the present invention provides a technical solution: a function-level access control method, the control method comprises the following steps:
[0041] S1. Define the content and scope of protection;
[0042] Before performing access control, define the content and scope of protection and clarify the functions to be protected; the document contains different fields, and the basic format is "name=value", where "name" is the name of the field and "value" is the value of the field.
[0043] The protection content defined includes:
[0044] Target environment information: used to describe the software's operating environment, such as MAC address, processor architecture, operating system, and host name. In some application scenarios, this section of information can be used to check the actual software operating environment to prevent the software from running in an unauthorized environment.
[0045] Expiration time: For security reasons, you need to set an expiration time for the current accessible set. The accessible set descriptor document that exceeds the expiration time will become unavailable. When the software detects this information, it can take relevant measures, such as refusing to run or running the software in the minimum functional set mode.
[0046] Target user information: Sometimes the software instance may only be provided to a specific user or a specified number of users. In this case, the target user information needs to be included in the document, such as user name, number of users, etc.
[0047] Accessible function list: The accessible function list defines the set of functions that the user can access. The access control manager uses this to determine whether the current user has the right to access a certain software function; the function list is defined using a tree-structured namespace, which consists of subroutines, modules, functions, and sub-functions. Different namespaces can be combined through their inclusion relationships in the program.
[0048] If you want to allow access to all functions in a module, you only need to give the module name; if you want to allow access to only some functions in a module, you need to give the module name first, and then define the set of these functions separately in the sublist (tree branch).
[0049] Excluded function list: This list can list the functions that are prohibited from access. This list is usually used in conjunction with the "Accessible function list". For example, "Module A" contains several functions, most of which are accessible, and only "Function m" and "Function n" need to be prohibited from access. There are two definition methods:
[0050] Method 1: List all accessible functions in "Module A" except "Function m" and "Function n" in the "Accessible Function List";
[0051] Method 2: List only "Module A" in the "Accessible Function List", indicating that all functions in this module are accessible, and then exclude "Function m" and "Function n" of "Module A" in the "Excluded Function List" in this section.
[0052] The above two methods achieve the same effect. When there are more functions in the module, method 2 is more concise.
[0053] Signature: To protect the content of the descriptor document, each descriptor document contains a signature. If the content of the document changes due to transmission or malicious modification, the signature verification will fail; to further improve security, the document can be encrypted after signing, and the original signature can only be obtained after decryption.
[0054] Line continuation character: Sometimes the value of a field is relatively long. To ensure clear format and easy reading, you can use the line continuation character “\” in the document to split a line into multiple lines.
[0055] S2. Distribution of documents. The distribution of documents in S2 includes:
[0056] Distribute via the Internet;
[0057] Integrated into software distribution;
[0058] Distributed through user roles + database;
[0059] Through offline file distribution.
[0060] S3. Implementation of the access control manager; the access control manager is used to control access to software functions according to the accessible set defined in the aforementioned descriptor document; the access control manager is usually started simultaneously with the software, so as to check the environment, the format and signature of the descriptor document when the software is started.
[0061] The access control manager includes the following functions:
[0062] Document format check: Check the format and content of the descriptor document. The focus includes the following items: Check whether the descriptor document contains all the required sections: such as expiration date, accessible function list, signature, etc.
[0063] Check whether the content is correct; such as the modules in the accessible list and excluded function list, whether the function names are correct, whether the inclusion relationships are correct, etc.
[0064] Check the expiration time; check the document expiration time. You can use local time or network time for verification.
[0065] Verify the signature; verify the signature. If the signature is not encrypted, you can directly verify the signature. However, the unencrypted signature can only protect the integrity of the document content, but cannot prevent malicious tampering. If you want to prevent tampering with the document content, you can asymmetrically encrypt the signature based on the signature.
[0066] Environment check: Check whether the current environment of the software matches the environment specified in the descriptor document, such as MAC address, processor architecture, operating system, host name, etc. In situations where security requirements are high, dedicated hardware devices can also be used to provide verification data.
[0067] Feature accessibility check; the access control manager reads and caches the list of accessible features and the list of excluded features.
[0068] When the software needs to call a function, it first calls the access control manager to check the accessibility of the function. The access control manager determines whether the function is accessible based on the accessible list and exclusion list in the document. If it is not accessible, the software refuses to call the function.
[0069] As an application of this embodiment:
[0070] In a resource provision website that requires membership, users are divided into three types: unregistered members, ordinary members, and super members. The functions and resource ranges / quantities accessible to the three types of members increase in sequence. Now you need to use the method introduced in this article to control the access of different users to website functions.
[0071] Assume that the relationship between website functions and user permissions is as follows:
[0072]
[0073]
[0074] The "Corresponding Function" column is the function in the software that corresponds to the function. In actual development, one function may correspond to multiple functions. For the sake of convenience, it is assumed that one function corresponds to only one function.
[0075] A collection of descriptor documents that define the accessible capabilities of three types of members
[0076] According to the above table, the following descriptor documents can be defined for the three types of users.
[0077] Users who have not activated membership (the descriptor document name is registed_user)
[0078]
[0079] The accessible list for unactivated members defines sub-function d under function A and function B, but the exclusion list excludes access to sub-function c of function A, so the functions that can ultimately be accessed are A:a, A:b, and B:d.
[0080] Common member (descriptor document named common_member)
[0081]
[0082]
[0083] The accessible list of ordinary members defines the A and B functions, but the exclusion list excludes access to the f sub-function of the B function, so the functions that can be accessed in the end are the A function and all sub-functions of the B function except the f sub-function.
[0084] Super member (descriptor document name is super_member)
[0085]
[0086] Premium members have access to all features.
[0087] Functional accessibility check
[0088] Unregistered members need to access sub-function a
[0089] When accessing sub-function a, the program needs to call the Func_a function. Before calling, the program uses the access control manager to check whether the user can access the function. To do this, the program calls the access control manager using the full name of sub-function a, "A:a".
[0090] The access control manager determines that the current user is an unregistered user, so the registed_user document is applicable. First, the exclusion function list is checked and it is found that the "A:a" or "A" function is not excluded; then the accessible list is checked and there is no definition for the sub-function "A:a", but there is a definition for the upper-level function A. Therefore, access to the sub-function is allowed.
[0091] Unregistered users need to access sub-function e
[0092] When accessing sub-function e, the program needs to call the Func_e function. The registed_user document also applies here. The access control manager checks the exclusion function list and finds no definition for "B:e" or "B". It then checks the accessible list and finds only the definition for "B:d" but no definition for "B:e" or "B". Therefore, access to the sub-function is not allowed.
[0093] Ordinary members need to access sub-function f
[0094] When accessing sub-function f, the program needs to call the Func_f function. At this time, the common_member document of the common member applies. The access control manager checks the list of excluded functions and finds the definition of "B:f", indicating that access to the sub-function is not allowed, so it skips the subsequent checks and directly returns that access is not allowed.
[0095] The above generally describes the present invention in detail, but it is obvious to a person skilled in the art that some modifications or improvements can be made to the present invention. Therefore, modifications or improvements that do not depart from the spirit of the present invention are within the scope of protection of the present invention.
Claims
1. A function-level access control method, characterized in that: The control method comprises the following steps: S1. Define the content and scope of protection; S2. Distribution of documents; S3. Implementation of the access control manager; the access control manager is used to control access to software functions according to the accessible set defined in the aforementioned descriptor document; the access control manager is usually started simultaneously with the software, so as to check the environment, the format and signature of the descriptor document when the software is started.
2. A function-level access control method according to claim 1, characterized in that: Said S1 further comprises: Before performing access control, define the content and scope of protection and clarify the functions to be protected; the document contains different fields, and the basic format is "name=value", where "name" is the name of the field and "value" is the value of the field.
3. A function-level access control method according to claim 2, characterized in that: The definition protects: Target environment information; used to describe the software's operating environment; Expiration time: Set an expiration time for the current accessible set; the accessible set descriptor document that exceeds the expiration time will become unavailable. When the software detects this information, it takes relevant measures, including refusing to run or running the software in the minimum functional set mode; Target user information: The software instance is only available to a specific user or a specified number of users, in which case the target user information is included in the document; Accessible function list: The accessible function list defines the set of functions that users can access. The access control manager uses this to determine whether the current user has the authority to access a certain software function. The function list is defined using a tree-structured namespace, which consists of subroutines, modules, functions, and sub-functions. Different namespaces can be combined through their inclusion relationships in the program. Exclude function list; list the prohibited functions separately in the list; only "function m" and "function n" need to be prohibited from access. There are two ways to define it: Method 1: List all accessible functions in "Module A" except "Function m" and "Function n" in the "Accessible Function List"; Method 2: List only "Module A" in the "Accessible Function List", indicating that all functions in this module are accessible, and then exclude "Function m" and "Function n" of "Module A" in the "Excluded Function List" of this section; Signature: To protect the content of the descriptor document, each descriptor document contains a signature. If the content of the document changes due to transmission or malicious modification, the signature verification will fail. After signing, the document can also be encrypted, and the original signature can only be obtained after decryption. Line continuation character: Sometimes the value of a field is relatively long. In order to make the format clear and easy to read, the line continuation character "\" can be used in the document to split a line of content into multiple lines.
4. A function-level access control method according to claim 1, characterized in that: The distribution of documents in S2 includes: Distribute via the Internet; Integrated into software distribution; Distributed through user roles + database; Through offline file distribution.
5. A function-level access control method according to claim 1, characterized in that: The S3 further includes: an access control manager including the following functions: Document format check; check the format and content of the descriptor document; Check whether the content is correct; whether the modules in the accessible list and excluded function list, function names, and inclusion relationships are correct; Check the expiration time; check the document expiration time and verify it with local time; verify the signature; verify the signature; Environment check: Check whether the current environment of the software matches the environment specified in the descriptor document, such as MAC address, processor architecture, operating system, host name; in situations where security requirements are high, use dedicated hardware devices to provide verification data; Function accessibility check; the access control manager reads the accessible function list and the excluded function list and caches them; When the software needs to call a function, it first calls the access control manager to check the accessibility of the function; The access control manager determines whether the function is accessible based on the accessible list and the excluded list in the document; If it is not accessible, the software refuses to call the function.
