User rights management method, device, electronic device, medium and program product

By using the first identifier in metadata to associate with user rights management data in the distributed file system, the problem of coupling metadata and user rights management data is solved, flexible rights management and compatibility are achieved, and the operation process is simplified. .

CN114139119BActive Publication Date: 2024-09-24ALIBABA CLOUD COMPUTING CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111216083.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-19
Publication Date
2024-09-24
Estimated Expiration
2041-10-19

AI Technical Summary

Technical Problem

In a distributed file system that is compatible with POSIX standards, the existing permission management model causes the metadata data structure to be too different from the original data structure, and the metadata and user permission management data are coupled, making it difficult to achieve flexible permission management.

Method used

By storing the first identifier in the metadata of the specified data and establishing its association with the user rights management data, avoiding adding rights management data fields in the metadata, and using the identifier to obtain the user rights management data to determine access rights, Realize the decoupling of metadata and user rights management data.

Benefits of technology

It avoids compatibility issues with metadata data structures, implements flexible user rights management, simplifies the operation process, and improves memory management and disk persistence performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114139119B
    Figure CN114139119B
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a user rights management method, apparatus, electronic device, medium and program product, the method comprising: storing metadata of specified data, the metadata comprising a first identifier; establishing an association relationship between the first identifier and user rights management data of the specified data; when receiving a user's access request to the specified data, obtaining the user rights management data of the specified data according to the first identifier in the metadata of the specified data; and determining the user's access rights to the specified data according to the user rights management data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of data storage, and in particular to a user authority management method, device, electronic device, medium and program product. Background Art

[0002] In a distributed file system compatible with the POSIX (Portable Operating System Interface) standard, the permission management model is to associate each file and directory with an owner user and an access group list. A file or directory can be configured with different permissions for its owner user (user), access group (group), and other users (other). User permission management requires recording the owner user, access group, and access permissions in the metadata of files and directories. This can be achieved by adding the corresponding fields of the above records to the metadata data structure, but this will cause the metadata data structure to differ too much from the original data structure, and the file system needs to deal with compatibility issues such as conversion between metadata versions. In addition, adding a field to record access permissions in the metadata data structure will cause the metadata to be coupled with the user permission management data, which is not conducive to flexible user permission management. Summary of the invention

[0003] In order to solve the problems in the related art, the embodiments of the present disclosure provide a user rights management method, device, electronic device, medium and program product.

[0004] In a first aspect, a user rights management method is provided in an embodiment of the present disclosure.

[0005] Specifically, the user rights management method includes:

[0006] storing metadata specifying the data, the metadata comprising a first identifier;

[0007] Establishing an association relationship between the first identifier and the user rights management data of the designated data;

[0008] When receiving a user's access request to the designated data, acquiring user authority management data of the designated data according to the first identifier in the metadata of the designated data;

[0009] The access rights of the user to the specified data are determined according to the user rights management data.

[0010] In combination with the first aspect, in a first implementation of the first aspect of the present disclosure, establishing an association relationship between the first identifier and the user rights management data of the designated data includes:

[0011] The user authority management data of the first identifier and the designated data are correspondingly stored in the first storage area.

[0012] In combination with the first aspect, in a second implementation of the first aspect of the present disclosure, establishing an association relationship between the first identifier and the user rights management data of the designated data includes:

[0013] storing the first identifier and the second identifier correspondingly in a second storage area;

[0014] The user right management data of the second identifier and the designated data are correspondingly stored in the first storage area.

[0015] In combination with the second implementation of the first aspect, in a third implementation of the first aspect of the present disclosure, correspondingly storing the first identifier and the second identifier in the second storage area includes:

[0016] An extended metadata attribute of the designated data is stored in the second storage area, a key of the extended metadata attribute includes the first identifier, and a value of the extended metadata attribute includes the second identifier.

[0017] In combination with the first aspect, in a fourth implementation manner of the first aspect of the present disclosure, the metadata includes a flag field, and acquiring user rights management data of the specified data according to a first identifier in the metadata of the specified data includes:

[0018] When the flag field is a first value, acquiring user authority management data of the designated data according to the first identifier in a first storage area;

[0019] When the flag field is a second value, a second identifier is obtained in the second storage area according to the first identifier, and user authority management data of the designated data is obtained in the first storage area according to the second identifier.

[0020] In combination with the first aspect, in a fifth implementation of the first aspect of the present disclosure, the user permission management data includes a permission bitmap field and a mask field, the permission bitmap field represents the maximum permission range of the user to the specified data, and the mask field is used to select a specified permission in the permission bitmap field as the user's access right to the specified data.

[0021] In a second aspect, a user rights management device is provided in an embodiment of the present disclosure.

[0022] Specifically, the user rights management device includes:

[0023] A first storage module configured to store metadata of designated data, the metadata including a first identifier;

[0024] A second storage module is configured to establish an association relationship between the first identifier and the user rights management data of the designated data;

[0025] an acquisition module, configured to acquire user authority management data of the designated data according to a first identifier in metadata of the designated data when receiving a user's access request to the designated data;

[0026] The determination module is configured to determine the user's access rights to the specified data according to the user rights management data.

[0027] In combination with the second aspect, in a first implementation of the second aspect of the present disclosure, the second storage module includes:

[0028] The first storage unit is configured to store the user authority management data of the first identifier and the designated data correspondingly in a first storage area.

[0029] In combination with the second aspect, in a second implementation of the second aspect of the present disclosure, the second storage module includes:

[0030] a second storage unit, configured to store the first identifier and the second identifier correspondingly in a second storage area;

[0031] The third storage unit is configured to store the user authority management data of the second identifier and the designated data in the first storage area correspondingly.

[0032] In combination with the second implementation of the second aspect, in a third implementation of the second aspect of the present disclosure, the second storage unit includes:

[0033] The storage subunit is configured to store the extended metadata attribute of the designated data in the second storage area, wherein the key of the extended metadata attribute includes the first identifier, and the value of the extended metadata attribute includes the second identifier.

[0034] In combination with the second aspect, in a fourth implementation manner of the second aspect of the present disclosure, the metadata includes a flag field, and the part of the acquisition module that acquires the user rights management data of the specified data according to the first identifier in the metadata of the specified data is configured as follows:

[0035] When the flag field is a first value, acquiring user authority management data of the designated data according to the first identifier in a first storage area;

[0036] When the flag field is a second value, a second identifier is obtained in the second storage area according to the first identifier, and user authority management data of the designated data is obtained in the first storage area according to the second identifier.

[0037] In combination with the second aspect, in a fifth implementation of the second aspect of the present disclosure, the user permission management data includes a permission bitmap field and a mask field, the permission bitmap field represents the maximum permission range of the user to the specified data, and the mask field is used to select a specified permission in the permission bitmap field as the user's access right to the specified data.

[0038] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer instructions, and wherein the one or more computer instructions are executed by the processor to implement a method as described in any one of the first aspects.

[0039] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed by a processor, the method described in any one of the first aspects is implemented.

[0040] In a fifth aspect, a computer program product is provided in an embodiment of the present disclosure, comprising computer instructions, which, when executed by a processor, implement the method steps described in any one of the first aspects.

[0041] According to the technical solution provided by the embodiment of the present disclosure, metadata of the specified data is stored, the metadata includes a first identifier, an association relationship between the first identifier and the user rights management data of the specified data is established, and when a user's access request to the specified data is received, the user rights management data of the specified data is obtained according to the first identifier in the metadata of the specified data, and the user's access rights to the specified data are determined according to the user rights management data. This technical solution does not add corresponding fields of user rights management data to the metadata for the rights management of the specified data, but rather stores the user rights management data in association with the first identifier, and stores the first identifier as metadata of the specified data. When a user's access request to the specified data is received, the user rights management data of the specified data can be obtained according to the first identifier, and then the user's access rights to the specified data are determined. While avoiding compatibility issues caused by changes in the data structure of the metadata, the decoupling of metadata and user rights management data is achieved, which facilitates the implementation of flexible user rights management.

[0042] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Other features, objectives and advantages of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:

[0044] Figure 1 A flowchart showing a method for managing user rights according to an embodiment of the present disclosure is shown;

[0045] Figure 2 A schematic diagram showing a scenario of a user rights management method according to an embodiment of the present disclosure;

[0046] Figure 3 A structural block diagram of a user rights management device according to an embodiment of the present disclosure is shown;

[0047] Figure 4 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown;

[0048] Figure 5 A schematic diagram showing the structure of a computer system suitable for implementing the method according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0049] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.

[0050] In the present disclosure, it should be understood that terms such as "include" or "have" are intended to indicate the presence of features, numbers, steps, behaviors, components, parts, or a combination thereof disclosed in the present specification, and are not intended to exclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof exist or are added.

[0051] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0052] In the present disclosure, the acquisition of user information or user data is an operation authorized and confirmed by the user, or actively selected by the user.

[0053] As mentioned above, in a distributed file system compatible with the POSIX (Portable Operating System Interface) standard, its permission management mode is to associate each file and directory with an owner user and an access group list. Files or directories can be configured with different permissions for their owner user (user), access group (group), and other users (other). User permission management requires recording the owner user, access group, and access permissions in the metadata of files and directories. This can be achieved by adding corresponding fields for the above records to the metadata data structure, but this will cause the metadata data structure to differ too much from the original data structure, and the file system needs to deal with compatibility issues such as conversion between metadata versions. In addition, adding a field to record access permissions in the metadata data structure will cause the metadata to be coupled with the user permission management data, which is not conducive to flexible user permission management.

[0054] According to the technical solution provided by the embodiment of the present disclosure, for the permission management of designated data, the corresponding field of user permission management data is not added to the metadata, but the user permission management data is stored in association with the first identifier, and the first identifier is stored as the metadata of the designated data. When the user's access request to the designated data is received, the user permission management data of the designated data can be obtained according to the first identifier, and then the user's access rights to the designated data are determined. While avoiding compatibility problems caused by changes in the data structure of the metadata, the decoupling of the metadata and the user permission management data is achieved, which facilitates the implementation of flexible user permission management.

[0055] Figure 1 FIG. 1 is a flow chart showing a method for managing user rights according to an embodiment of the present disclosure. Figure 1 As shown, the user rights management method includes the following steps S101-S104:

[0056] In step S101, metadata of designated data is stored, the metadata including a first identifier;

[0057] In step S102, an association relationship between the first identifier and the user rights management data of the designated data is established;

[0058] In step S103, when receiving a user's access request to the designated data, user authority management data of the designated data is obtained according to the first identifier in the metadata of the designated data;

[0059] In step S104, the access rights of the user to the designated data are determined according to the user rights management data.

[0060] According to an embodiment of the present disclosure, the specified data may be data that a user requests to access. For a distributed file system, the specified data may be, for example, a file or a directory.

[0061] According to an embodiment of the present disclosure, the metadata of the specified data may be data that describes the specified data, for example, the metadata may include the name of the specified data, storage location information, size, modification time, etc. According to an embodiment of the present disclosure, the metadata also includes a first identifier, and the first identifier is associated with the user rights management data of the specified data, and the user rights management data can be obtained according to the first identifier. According to an embodiment of the present disclosure, the first identifier may have a preset length, for example, a 4-byte field. According to an embodiment of the present disclosure, the length of the first identifier is much smaller than that of the user rights management data, and the inclusion of the first identifier in the metadata will not cause the data structure of the metadata to differ too much from the original data structure. When the existing metadata structure contains a field that allows customization, the custom field in the data structure of the existing metadata can be used to store the first identifier to avoid compatibility issues caused by changes in the data structure of the metadata.

[0062] According to an embodiment of the present disclosure, user rights management data records the rights information of the specified data for the user. Taking a distributed file system as an example, the user rights management data of the specified data includes: an owner user ID (userID), an access group ID (groupID), a permission bitmap field, and a mask field, etc., wherein the owner user ID is the ID of the owner of the specified data, the access group ID is the ID of other users who have the right to access the file, the permission bitmap field indicates the maximum permission range of the user to the specified data, and the mask field is used to select the specified permission in the permission bitmap field as the user's access right to the specified data.

[0063] According to an embodiment of the present disclosure, the format of the permission bitmap field can be {r1 w1 x1 r2 w2 x2 r3 w3x3}, wherein r1, w1, x1 respectively represent the read, write, and executable permissions of the owner user to the specified data, r2, w2, x2 respectively represent the read, write, and executable permissions of the access group user to the specified data, and r3, w3, x3 respectively represent the read, write, and executable permissions of other users to the specified data. For files, read and write are used to control whether files can be read and written, respectively. For directories, read is used to control whether the contents of the directory can be traversed, write is used to control whether subfiles and directories can be created / deleted under the directory, and executable permissions are used to control whether subfiles and directories of the directory can be accessed.

[0064] For example, when the specified data is a directory and the permission bitmap field is 111101100, it means that the owner user has read, write, and execute permissions on the directory, the access group user has read and execute permissions on the directory, and other users have read permissions on the directory. When the specified data is a file and the permission bitmap field is 110100100, it means that the owner user has read and write permissions on the file, the access group user has read permissions on the file, and other users have read permissions on the file.

[0065] In addition to the permission bitmap field, a mask field can also be set to select a specified permission in the permission bitmap field as the user's access right to the specified data. For example, the user permission can be determined according to the bitwise "AND" result of the permission bitmap field and the mask field. For example, when the specified data is a directory and the permission bitmap field is 111101100, if the mask field is 110110110, the bitwise "AND" result of the permission bitmap field and the mask field is 110100100, that is, the owner user has read and write permissions to the directory, the access group user has read permissions to the directory, and other users have read permissions to the directory. When the specified data is a file and the permission bitmap field is 110100000, if the mask field is 110100000, the bitwise "AND" result of the permission bitmap field and the mask field is 110100000, indicating that the owner user has read and write permissions to the file, the access group user has read permissions to the file, and other users do not have read, write, or executable permissions to the file.

[0066] It can be seen that the permissions determined by the bitwise "AND" result of the permission bitmap field and the mask field will not exceed the permission range defined by the permission bitmap field. This makes it possible to flexibly modify user permissions through the mask field after setting the permission bitmap field, while ensuring that the modified permissions do not exceed the permission range defined by the permission bitmap field.

[0067] According to an embodiment of the present disclosure, the user rights management data may not include a mask field, but directly determine the user's access rights according to the rights bitmap field.

[0068] According to the embodiments of the present disclosure, user types other than owner users, access group users, and other users and their corresponding access rights may be specified according to actual needs, and the present disclosure does not specifically limit this.

[0069] When a user's access request to specified data is received, user authority management data can be obtained based on the first identifier, and the user can be determined to be an owner user, access group user or other user based on the user identity information contained in the access request. Then, the user's access rights can be determined based on the user authority management data.

[0070] According to an embodiment of the present disclosure, the step of establishing an association relationship between the first identifier and the user rights management data of the designated data in step S102 includes:

[0071] The user authority management data of the first identifier and the designated data are correspondingly stored in the first storage area.

[0072] According to an embodiment of the present disclosure, the first storage area may be a designated storage area in the memory, used to store the first identifier and the user rights management data of the designated data correspondingly, and the data stored in the first storage area may be periodically persisted to the hard disk to ensure reliability and security. When receiving a user's access request to the designated data, the user rights management data of the designated data may be obtained from the first storage area according to the first identifier in the metadata of the designated data, thereby determining the user's access rights to the designated data.

[0073] According to an embodiment of the present disclosure, the step of establishing an association relationship between the first identifier and the user rights management data of the designated data in step S102 includes:

[0074] storing the first identifier and the second identifier correspondingly in a second storage area;

[0075] The user right management data of the second identifier and the designated data are correspondingly stored in the first storage area.

[0076] According to an embodiment of the present disclosure, the second storage area may be another designated storage area located in the memory different from the first storage area, for correspondingly storing the first identifier and the second identifier. The data stored in the second storage area may be regularly persisted to the hard disk to ensure reliability and security.

[0077] According to an embodiment of the present disclosure, a second identifier and user authority management data of the specified data can be stored in a first storage area. When a user's access request to the specified data is received, the second identifier can be obtained from the second storage area based on the first identifier in the metadata of the specified data, and then the user authority management data of the specified data can be obtained from the first storage area based on the second identifier, thereby determining the user's access rights to the specified data.

[0078] According to an embodiment of the present disclosure, the correspondingly storing the first identifier and the second identifier in the second storage area includes:

[0079] An extended metadata attribute of the designated data is stored in the second storage area, a key of the extended metadata attribute includes the first identifier, and a value of the extended metadata attribute includes the second identifier.

[0080] According to an embodiment of the present disclosure, the second storage area may be used to store extended metadata attributes of the specified data, and the extended metadata attributes of the specified data may be obtained through the first identifier in the metadata of the specified data. In addition to including the second identifier for obtaining user rights management data, the extended metadata attributes may also include other information of the specified data. According to an embodiment of the present disclosure, the second identifier may have a preset length, for example, it may be a 4-byte field.

[0081] When receiving a user's access request to the specified data, the second identifier stored in the extended metadata attribute is determined by the first identifier in the metadata of the specified data, and then the user rights management data of the specified data is obtained by the second identifier. Since the verification frequency of user rights is high, storing the second identifier in the extended metadata attribute instead of directly storing the user rights management data can reduce the amount of data that needs to be processed when serializing and deserializing the extended metadata attribute, thereby reducing processing delays, improving user rights management efficiency, and improving data access throughput performance.

[0082] According to an embodiment of the present disclosure, the metadata includes a flag field, and acquiring user rights management data of the specified data according to the first identifier in the metadata of the specified data includes:

[0083] When the flag field is a first value, acquiring user authority management data of the designated data according to the first identifier in a first storage area;

[0084] When the flag field is a second value, a second identifier is obtained in the second storage area according to the first identifier, and user authority management data of the designated data is obtained in the first storage area according to the second identifier.

[0085] According to an embodiment of the present disclosure, metadata of an existing distributed file system with extended metadata attributes includes a designated field for storing an identifier pointing to the extended metadata attribute and a flag field for indicating whether the designated field is valid. If the flag field takes a first value indicating that the designated field is valid, the extended metadata attribute can be obtained according to the identifier stored in the designated field. If the flag field takes a second value indicating that the designated field is invalid, the content stored in the designated field cannot be used to obtain the extended metadata attribute. In this embodiment, a first identifier can be stored in the designated field, and the first identifier can point to user rights management data stored in the first storage area, or can point to extended metadata attributes stored in the second storage area, and the first identifier can be distinguished by the flag field to point to user rights management data or extended metadata attributes. For example, when the flag field takes a first value, the first identifier points to the user rights management data stored in the first storage area, and when the flag field takes a second value, the first identifier points to the extended metadata attributes stored in the second storage area. When the first identifier points to the extended metadata attributes stored in the second storage area, the second identifier pointing to the user rights management data stored in the first storage area can be stored in the extended metadata attributes, and other information of the designated data can also be stored in the extended metadata attributes. In this way, the metadata structure of the existing distributed file system with extended metadata attributes may not be changed, thereby achieving good compatibility with the existing distributed file system.

[0086] Figure 2 A schematic diagram of a scenario showing a method for user authority management according to an embodiment of the present disclosure.

[0087] like Figure 2 As shown, when the flag field takes a first value (e.g., 1), the corresponding user rights management data is obtained in the first storage area through the first identifier. When the flag field takes a second value (e.g., 0), the corresponding second identifier is obtained in the second storage area according to the first identifier, and the corresponding user rights management data is obtained in the first storage area according to the second identifier. According to an embodiment of the present disclosure, the second storage area is used to store the extended metadata attributes of the specified data, the key of the extended metadata attributes includes the first identifier, and the value of the extended metadata attributes includes the second identifier.

[0088] According to an embodiment of the present disclosure, by storing a first identifier in the metadata of the specified data and storing user rights management data of the specified data in the first storage area, decoupling of the metadata of the specified data and the user rights management data is achieved. When operating on the user rights management data, the metadata or extended metadata attributes are not affected, which simplifies the operation process, improves the operation efficiency, realizes flexible user rights management, and has more flexible memory management and disk persistence performance.

[0089] In addition, according to the embodiments of the present disclosure, user rights management and metadata extended attributes can be organically combined, which not only effectively solves the compatibility problem of user rights management, but also can enable the relevant processing logic of other information related to the specified data in the extended metadata attributes according to the user's demand for using the metadata extended attributes.

[0090] Figure 3 The structural block diagram of the user rights management device according to the embodiment of the present disclosure is shown. The device can be implemented as part or all of the electronic device through software, hardware or a combination of both.

[0091] like Figure 3 As shown, the user authority management device 300 includes a first storage module 310 , a second storage module 320 , an acquisition module 330 and a determination module 340 .

[0092] The first storage module 310 is configured to store metadata of the specified data, the metadata including a first identifier;

[0093] The second storage module 320 is configured to establish an association relationship between the first identifier and the user rights management data of the specified data;

[0094] The acquisition module 330 is configured to acquire the user authority management data of the specified data according to the first identifier in the metadata of the specified data when receiving a user's access request to the specified data;

[0095] The determination module 340 is configured to determine the user's access rights to the specified data according to the user rights management data.

[0096] According to the technical solution provided by the embodiment of the present disclosure, for the permission management of specified data, the corresponding field of user permission management data is not added to the metadata, but the user permission management data is associated with the first identifier and stored, and the first identifier is stored as the metadata of the specified data. When the user's access request to the specified data is received, the user permission management data of the specified data can be obtained according to the first identifier, and then the user's access rights to the specified data are determined, thereby realizing the decoupling of metadata and user permission management data, and facilitating the implementation of flexible user permission management.

[0097] According to an embodiment of the present disclosure, the second storage module includes:

[0098] The first storage unit is configured to store the user authority management data of the first identifier and the designated data correspondingly in a first storage area.

[0099] According to an embodiment of the present disclosure, the second storage module includes:

[0100] a second storage unit, configured to store the first identifier and the second identifier correspondingly in a second storage area;

[0101] The third storage unit is configured to store the user authority management data of the second identifier and the designated data in the first storage area correspondingly.

[0102] According to an embodiment of the present disclosure, the second storage unit includes:

[0103] The storage subunit is configured to store the extended metadata attribute of the designated data in the second storage area, wherein the key of the extended metadata attribute includes the first identifier, and the value of the extended metadata attribute includes the second identifier.

[0104] According to an embodiment of the present disclosure, the metadata includes a flag field, and the part of the acquisition module that acquires the user rights management data of the specified data according to the first identifier in the metadata of the specified data is configured as follows:

[0105] When the flag field is a first value, acquiring user authority management data of the designated data according to the first identifier in a first storage area;

[0106] When the flag field is a second value, a second identifier is obtained in the second storage area according to the first identifier, and user authority management data of the designated data is obtained in the first storage area according to the second identifier.

[0107] According to an embodiment of the present disclosure, the user permission management data includes a permission bitmap field and a mask field, the permission bitmap field represents the maximum permission range of the user to the specified data, and the mask field is used to select a specified permission in the permission bitmap field as the user's access right to the specified data.

[0108] The present disclosure also discloses an electronic device, Figure 4 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown.

[0109] like Figure 4 As shown, the electronic device 400 includes a memory 401 and a processor 402, wherein the memory 401 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 402 to implement the method according to an embodiment of the present disclosure:

[0110] storing metadata specifying the data, the metadata comprising a first identifier;

[0111] Establishing an association relationship between the first identifier and the user rights management data of the designated data;

[0112] When receiving a user's access request to the designated data, acquiring user authority management data of the designated data according to the first identifier in the metadata of the designated data;

[0113] The access rights of the user to the specified data are determined according to the user rights management data.

[0114] According to an embodiment of the present disclosure, the establishing of an association relationship between the first identifier and the user rights management data of the designated data includes:

[0115] The user authority management data of the first identifier and the designated data are correspondingly stored in the first storage area.

[0116] According to an embodiment of the present disclosure, the establishing of an association relationship between the first identifier and the user rights management data of the designated data includes:

[0117] storing the first identifier and the second identifier correspondingly in a second storage area;

[0118] The user right management data of the second identifier and the designated data are correspondingly stored in the first storage area.

[0119] According to an embodiment of the present disclosure, the correspondingly storing the first identifier and the second identifier in the second storage area includes:

[0120] An extended metadata attribute of the designated data is stored in the second storage area, a key of the extended metadata attribute includes the first identifier, and a value of the extended metadata attribute includes the second identifier.

[0121] According to an embodiment of the present disclosure, the metadata includes a flag field, and acquiring user rights management data of the specified data according to the first identifier in the metadata of the specified data includes:

[0122] When the flag field is a first value, acquiring user authority management data of the designated data according to the first identifier in a first storage area;

[0123] When the flag field is a second value, a second identifier is obtained in the second storage area according to the first identifier, and user authority management data of the designated data is obtained in the first storage area according to the second identifier.

[0124] According to an embodiment of the present disclosure, the user permission management data includes a permission bitmap field and a mask field, the permission bitmap field represents the maximum permission range of the user to the specified data, and the mask field is used to select a specified permission in the permission bitmap field as the user's access right to the specified data.

[0125] Figure 5 A schematic diagram showing the structure of a computer system suitable for implementing the method according to an embodiment of the present disclosure is shown.

[0126] like Figure 5 As shown, the computer system 500 includes a processing unit 501, which can perform various processes in the above-mentioned embodiments according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The processing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0127] The following components are connected to the I / O interface 505: an input part 506 including a keyboard, a mouse, etc.; an output part 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part 508 including a hard disk, etc.; and a communication part 509 including a network interface card such as a LAN card, a modem, etc. The communication part 509 performs communication processing via a network such as the Internet. The drive 510 is also connected to the I / O interface 505 as needed. Removable media 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive 510 as needed, so that the computer program read therefrom is installed into the storage part 508 as needed. Among them, the processing unit 501 can be implemented as a processing unit such as a CPU, a GPU, a TPU, an FPGA, an NPU, etc.

[0128] In particular, according to an embodiment of the present disclosure, the method described above can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes computer instructions, and the computer instructions are executed by a processor to implement the method steps described above. In such an embodiment, the computer program product can be downloaded and installed from a network through the communication part 509, and / or installed from a removable medium 511.

[0129] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0130] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or programmable hardware. The units or modules described may also be set in a processor, and the names of these units or modules do not constitute limitations on the units or modules themselves in some cases.

[0131] As another aspect, the present disclosure further provides a computer-readable storage medium, which may be a computer-readable storage medium included in the electronic device or computer system in the above embodiment; or a computer-readable storage medium that exists independently and is not assembled into a device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the method described in the present disclosure.

[0132] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.

Claims

1. A user rights management method, comprising: storing metadata specifying the data, the metadata comprising a first identifier; storing an extended metadata attribute of the specified data in a second storage area, wherein a key of the extended metadata attribute includes the first identifier and a value of the extended metadata attribute includes a second identifier; storing user rights management data of the second identifier and the designated data correspondingly in the first storage area; When receiving a user's access request to the specified data, determining the second identifier stored in the extended metadata attribute by using the first identifier, and then acquiring the user rights management data of the specified data by using the second identifier; The access rights of the user to the specified data are determined according to the user rights management data.

2. The method according to claim 1, wherein: The metadata includes a flag field, and obtaining the user rights management data of the specified data according to the first identifier in the metadata of the specified data includes: When the flag field is a first value, acquiring user authority management data of the designated data according to the first identifier in a first storage area; When the flag field is a second value, a second identifier is obtained in the second storage area according to the first identifier, and user authority management data of the designated data is obtained in the first storage area according to the second identifier.

3. The method according to claim 1, wherein: The user authority management data includes a authority bitmap field and a mask field. The authority bitmap field indicates the maximum authority range of the user to the specified data. The mask field is used to select a specified authority in the authority bitmap field as the user's access authority to the specified data.

4. A user rights management device, comprising: A first storage module configured to store metadata of designated data, the metadata including a first identifier; The second storage module includes: a second storage unit and a third storage unit; The second storage unit comprises: a storage subunit configured to store the extended metadata attribute of the specified data in a second storage area, the key of the extended metadata attribute comprising the first identifier, and the value of the extended metadata attribute comprising the second identifier; The third storage unit is configured to store the user rights management data of the second identifier and the designated data in the first storage area correspondingly; The determination module is configured to determine the second identifier stored in the extended metadata attribute through the first identifier when receiving a user's access request to the specified data, and then obtain the user authority management data of the specified data through the second identifier.

5. The device according to claim 4, wherein: The metadata includes a flag field, and the part of the acquisition module that acquires the user rights management data of the specified data according to the first identifier in the metadata of the specified data is configured as follows: When the flag field is a first value, acquiring user authority management data of the designated data according to the first identifier in a first storage area; When the flag field is a second value, a second identifier is obtained in the second storage area according to the first identifier, and user authority management data of the designated data is obtained in the first storage area according to the second identifier.

6. An electronic device comprising a memory and a processor; wherein: The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method steps described in any one of claims 1-3.

7. A readable storage medium having computer instructions stored thereon, wherein the computer instructions, when executed by a processor, implement the method steps described in any one of claims 1 to 3.

8. A computer program product, comprising computer instructions, which, when executed by a processor, implement the method steps described in any one of claims 1 to 3.