Search

CN-121980595-A - Data processing method, apparatus, electronic device, storage medium, and program product

CN121980595ACN 121980595 ACN121980595 ACN 121980595ACN-121980595-A

Abstract

The application discloses a data processing method, a device, an electronic device, a storage medium and a program product, wherein the method comprises the steps of synthesizing a window image through a display server of an operating system; the method comprises the steps of writing window images into a graphic buffer area in an encrypted mode through a graphic rendering management drive of an operating system, decrypting and reading the encrypted window images in the graphic buffer area through a display drive of the operating system to obtain window images, and sending the window images to a display through the display drive for display. The method can enable the screenshot application to only acquire the encrypted window image from the graphic buffer area and not acquire the effective system screen information, can prevent the key information of the electronic equipment from being acquired by the screenshot application, and reduces the risk of information leakage of users.

Inventors

  • WU GANG
  • FU YIYING
  • LIU QINGQING
  • HONG HAO

Assignees

  • 武汉深之度科技有限公司

Dates

Publication Date
20260505
Application Date
20260408

Claims (10)

  1. 1. A data processing method, characterized in that the data processing method comprises: synthesizing a window image through a display server of an operating system; Writing the window image into a graphic buffer area in an encrypted form through a graphic rendering management driver of the operating system; decrypting and reading the encrypted window image in the graphic buffer area through the display drive of the operating system to obtain the window image; and sending the window image to a display through the display drive for display by the display drive.
  2. 2. The data processing method of claim 1, wherein the writing the window image in encrypted form to a graphics buffer by a graphics rendering management driver of the operating system comprises: Writing the window image into the graphics buffer by the graphics rendering management driver; encrypting the window image in the graphics buffer into the encrypted window image using a storage encryption method.
  3. 3. The data processing method of claim 1, wherein, The graphic rendering management driver for writing the window image into a graphic buffer area in an encrypted form, further comprises: Adding an encryption mark to the graphics buffer; The step of decrypting and reading the encrypted window image in the graphic buffer area through the display driver of the operating system to obtain the window image comprises the following steps: and under the condition that the encrypted mark is identified, the encrypted window image in the graphic buffer area is decrypted and read through the display driver, so that the window image is obtained.
  4. 4. The data processing method according to claim 2, wherein the decrypting the encrypted window image in the graphics buffer by the display driver of the operating system to obtain the window image includes: Decrypting the encrypted window image in the graphics buffer into the window image using the storage encryption method by the display driver; the window image is read from the graphics buffer.
  5. 5. The data processing method of claim 1, wherein the writing the window image in encrypted form to a graphics buffer by a graphics rendering management driver of the operating system comprises: And writing the window image into a graphic buffer area in an encrypted form by the graphic rendering management driver in response to receiving a plane update request sent by the display server.
  6. 6. The data processing method according to any one of claims 1 to 5, wherein the writing of the window image in an encrypted form to a graphics buffer by a graphics rendering management driver of the operating system includes: And writing the window image into a graphic buffer area in an encrypted form under the condition that the running preset application exists in the operating system through the graphic rendering management driver, wherein the preset application is an application with a screenshot function.
  7. 7. A data processing apparatus, characterized in that the data processing apparatus comprises: a synthesizing unit configured to synthesize the window image through a display server of the operating system; A writing unit configured to write the window image in an encrypted form to a graphics buffer by a graphics rendering management driver of the operating system; the reading unit is configured to decrypt and read the encrypted window image in the graphic buffer area through the display drive of the operating system to obtain the window image; And the sending unit is configured to send the window image to a display through the display drive so as to be displayed by the display.
  8. 8. An electronic device, comprising: At least one processor; at least one memory storing computer-executable instructions, Wherein the computer executable instructions, when executed by the at least one processor, cause the at least one processor to perform the data processing method of any of claims 1 to 6.
  9. 9. A computer-readable storage medium, characterized in that instructions in the computer-readable storage medium, when executed by at least one processor, cause the at least one processor to perform the data processing method of any of claims 1 to 6.
  10. 10. A computer program product comprising computer instructions which, when executed by at least one processor, cause the at least one processor to perform the data processing method of any of claims 1 to 6.

Description

Data processing method, apparatus, electronic device, storage medium, and program product Technical Field The present disclosure relates to the field of operating systems, and in particular, to a data processing method, apparatus, electronic device, storage medium, and program product. Background In Linux system, the window image display process is generally that, as shown in fig. 1, a display server in a user space is responsible for synthesizing an image that an application window needs to be displayed in a display, for example, for an application 1 and an application 2 that need to be displayed simultaneously in fig. 1, the display server can synthesize window patterns of the two applications together according to the placement positions and overlapping relationships of the two applications in a display screen, so as to obtain a window image that needs to be displayed in the display. Next, the display server needs to write the window image into a DRM Buffer (DRM Buffer, DRM finger DIRECT RENDERING MANAGER, direct rendering manager), which is the core subsystem in Linux kernel responsible for graphics card hardware management and graphics rendering. Since the DRM Buffer is managed by the DRM driver in the kernel, the display server in the user space cannot directly complete image writing, but the synthesized window image needs to be written into the DRM Buffer by calling the interface libdrm provided by the DRM driver. After the image writing is completed, the display driver in the kernel is responsible for reading the window image in the DRM Buffer and displaying the window image by the display. In addition, the display server can also provide a screenshot interface for screenshot application in the user space to acquire window images so as to realize screenshot. In order to protect user privacy, a screenshot preventing technology exists in the related technology, but the technology mainly prevents an application from screenshot through a screenshot interface of a display server in a display server level, and the realization mode mainly aims at the screenshot interfaces under X and wayland display architectures, an screenshot preventing management and control expansion interface is added, so that the display server realizes screenshot preventing and control according to the expansion interface. However, if the screenshot application does not use the screenshot interface, but obtains the window image in the DRM Buffer by directly accessing the libdrm interface, the screenshot prevention management and control fails and the system screen information leaks because of the inconvenience of adding a management and control expansion interface for the libdrm interface. Accordingly, the related art has a risk of leakage of user information. Disclosure of Invention The present disclosure provides a data processing method, apparatus, electronic device, storage medium, and program product to at least solve the problem of how to reduce the risk of leakage of user information in the related art. According to a first aspect of embodiments of the present disclosure, a data processing method is provided, where the data processing method includes synthesizing a window image by a display server of an operating system, writing the window image into a graphics buffer in an encrypted form by a graphics rendering management driver of the operating system, decrypting and reading the encrypted window image in the graphics buffer by the display driver of the operating system to obtain the window image, and sending the window image to a display for display by the display driver. Optionally, the writing the window image into the graphics buffer in an encrypted form by the graphics rendering management driver of the operating system includes writing the window image into the graphics buffer by the graphics rendering management driver, and encrypting the window image in the graphics buffer into the encrypted window image by using a storage encryption method. Optionally, the graphic rendering management driver of the operating system writes the window image into a graphic buffer in an encrypted form, and further comprises adding an encryption mark to the graphic buffer, and the display driver of the operating system decrypts and reads the encrypted window image in the graphic buffer to obtain the window image. Optionally, the step of decrypting and reading the encrypted window image in the graphic buffer by the display driver of the operating system to obtain the window image comprises the steps of decrypting the encrypted window image in the graphic buffer into the window image by the display driver by using the storage encryption method, and reading the window image from the graphic buffer. Optionally, the writing the window image in an encrypted form into the graphics buffer by the graphics rendering management driver of the operating system includes writing the window image in an encrypted form into the graphics buffer by the grap