A secure office method and device for a mobile storage device

By using the fuse monitoring module to monitor office status in real time, and creating and opening files with the same name on mobile storage devices, the problems of frequent file transfers and inability to edit files are solved, achieving a low-risk, high-user-experience office solution.

CN116149547BActive Publication Date: 2026-02-17BEIJING VRV SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211611300.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-14
Publication Date
2026-02-17
Estimated Expiration
2042-12-14

AI Technical Summary

Technical Problem

In existing technologies, mobile storage devices involve a high number of file transfers and cannot edit the contents of the disk, resulting in a high risk of file leakage and a poor user experience.

Method used

The fuse monitoring module is used to monitor the office status of the computer in real time. A file with the same name is created in the mobile storage device through the Create message, and the file with the same name is opened under the open message. This allows file creation and opening to be performed on the disk, reducing the need for file transfer.

Benefits of technology

It reduces the risk of file leakage, improves user experience, reduces driver development costs and user interface interaction development, and enhances the practicality of various scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116149547B_ABST
    Figure CN116149547B_ABST
Patent Text Reader

Abstract

The embodiment of the present disclosure discloses a kind of safe office method and device of mobile storage device, it is related to information security technical field, by the safe office device of mobile storage device implementation, the device includes fuse monitoring module, including: the file directory state of the first office software is acquired, wherein the file directory state includes creation file state and click file state;When the file directory state is the creation file state, receive Create message;According to the Create message, create first same name file in mobile storage device;When the file directory state is the click file state, receive open message;According to the open message, open the second same name file in mobile storage device.Solve the technical problem that the present art due to file transfer frequency is more, and disc cannot be edited, leading to there is high file leakage risk, and poor user experience.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of information security, and particularly relates to a secure office method and device of a mobile storage device. BACKGROUND

[0002] In software office, the storage of office files through a mobile storage device improves the portability of software office, and the mobile storage device can guarantee the security of office files, so it is widely used in daily office, the most typical of which is a U disk and the like.

[0003] The traditional office mode through a mobile storage device mainly utilizes a computer system to provide an operation interface and a drive device, opens a storage area in a customized U disk, and realizes the interconnection of the in-disk storage space and the computer space through the operation interface to create and open office files. The main shortcomings of this mode are as follows: firstly, the office files need to be transferred between the storage space and the computer space multiple times, which increases the file leakage risk; and secondly, the management logic of a file system needs to be realized to edit the file content in the disk, which increases the development cost and is not easy to maintain, cannot edit the content in the disk, and has poor user experience.

[0004] In summary, the prior art has the technical problems of high file leakage risk and poor user experience due to the multiple file transfers and the inability to edit the content in the disk. SUMMARY

[0005] Therefore, the embodiments of the present disclosure provide a secure office method and device of a mobile storage device, which can solve the technical problems of high file leakage risk and poor user experience due to the multiple file transfers and the inability to edit the content in the disk in the prior art.

[0006] In a first aspect, the embodiments of the present disclosure provide a secure office method of a mobile storage device, which adopts the following technical scheme: the method is implemented through a secure office system of a mobile storage device, the system includes a fuse monitoring module, which includes: acquiring a file directory state of a first office software, wherein the file directory state includes a create file state and a click file state; when the file directory state is the create file state, receiving a Create message; according to the Create message, creating a first same-name file in the mobile storage device; when the file directory state is the click file state, receiving an open message; and according to the open message, opening a second same-name file in the mobile storage device.

[0007] In a second aspect, the embodiments of the present disclosure further provide a secure office device of a mobile storage device, comprising a fuse monitoring module, the fuse monitoring module comprising: a directory state monitoring unit, configured to acquire a file directory state of a first office software, wherein the file directory state comprises a create file state and a click file state; a first message receiving unit, configured to receive a Create message when the file directory state is the create file state; a Create message processing unit, configured to create a first same-name file in the mobile storage device according to the Create message; a second message receiving unit, configured to receive an open message when the file directory state is the click file state; and an open message processing unit, configured to open a second same-name file in the mobile storage device according to the open message.

[0008] In a third aspect, the embodiments of the present disclosure further provide an electronic device, adopting the following technical scheme.

[0009] The electronic device comprises:

[0010] at least one processor; and

[0011] a memory connected with the at least one processor in communication; wherein

[0012] the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the secure office method of the mobile storage device as described in any one of the above.

[0013] In a fourth aspect, the embodiments of the present disclosure further provide a computer readable storage medium storing computer instructions for causing a computer to perform the secure office method of the mobile storage device as described in any one of the above.

[0014] The secure office method and device of the mobile storage device provided by the embodiments of the present disclosure can realize real-time monitoring of the office state of a computer end, i.e., the file directory state of each office software, and when a user creates a file through a first office software, the file directory state is a create file state; when the user opens a file through the first office software, the file directory state is a click file state; when the file directory state is the create file state, a Create message is received; a first same-name file is created in the mobile storage device according to the Create message; when the file directory state is the click file state, an open message is received; and a second same-name file in the mobile storage device is opened according to the open message. The file is created and opened in the disk for editing, and multiple transfers are not required, so that the technical effects of reducing the risk of file leakage and improving user experience are achieved.

[0015] The above description is merely an overview of the technical solution disclosed herein. In order to better understand the technical means of this disclosure and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0016] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 A flowchart illustrating a secure office method using a mobile storage device, provided in an embodiment of this disclosure;

[0018] Figure 2 This is a schematic diagram of a file creation process for a secure office method using a mobile storage device, provided in an embodiment of this disclosure.

[0019] Figure 3 A schematic block diagram of a secure office device for a mobile storage device provided in this disclosure embodiment;

[0020] Figure 4 This is a schematic block diagram of an electronic device provided in an embodiment of the present disclosure. Detailed Implementation

[0021] The embodiments of this disclosure will now be described in detail with reference to the accompanying drawings.

[0022] It should be understood that the following specific examples illustrate the implementation of this disclosure, and those skilled in the art can easily understand other advantages and effects of this disclosure from the content disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. This disclosure can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this disclosure. It should be noted that, in the absence of conflict, the following embodiments and features in the embodiments can be combined with each other. Based on the embodiments in this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0023] It should be noted that various aspects of embodiments within the scope of the appended claims are described below. It will be apparent that the aspects described herein can be embodied in a wide variety of forms, and any particular structure and / or function described herein is merely illustrative. Based on this disclosure, those skilled in the art will understand that one aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects set forth herein can be used to implement the device and / or practice the method. Additionally, this device and / or method can be implemented using structures and / or functionalities other than one or more of the aspects set forth herein.

[0024] It should also be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of this disclosure. The drawings only show the components related to this disclosure and are not drawn according to the number, shape and size of the components in actual implementation. In actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.

[0025] Furthermore, specific details are provided in the following description to facilitate a thorough understanding of the examples. However, those skilled in the art will understand that the described aspects can be practiced without these specific details.

[0026] Example 1

[0027] like Figure 1 As shown, this disclosure proposes a secure office method using a mobile storage device, implemented through a secure office apparatus for the mobile storage device. The apparatus includes a fuse monitoring module and comprises the following steps:

[0028] S100: Obtain the file directory status of the first office software, wherein the file directory status includes the file creation status and the file click status;

[0029] Specifically, the FUSE monitoring module is mainly used to monitor changes to a file or folder, and can add custom information about what other processes write to or read from this folder or file. Since the underlying driver for FUSE is provided by the Linux kernel, FUSE internally handles the scheduling between the driver layer and the application layer. Leveraging FUSE's data interception capabilities, file creation and opening can be achieved using FUSE only at the application layer, eliminating the need for additional driver devices, thus reducing driver development costs and minimizing the need for interactive user interface development.

[0030] The FUSE monitoring module monitors the file directory status of the primary office software in real time. The primary office software refers to any office software on the office device connected to the mobile storage device. The file directory status of the primary office software refers to the file directory stored on the office device corresponding to the primary office software, such as the desktop directory of the office device. When a file corresponding to the primary office software is created or opened, the FUSE monitoring module can detect it. Therefore, the file directory status includes the file creation status and the file click status. For example, the file creation status is when a new file is created on the desktop directory of the office device, and the file click status is when a file is clicked on the desktop directory of the office device.

[0031] Preferably, the fuse monitoring module, as a client plugin, can run in the background as a startup item for a long time, monitoring the status of the office equipment's file directory in real time, and providing indication information for file storage or file opening on mobile storage devices.

[0032] Because the fuse monitoring module internally handles the scheduling between the driver layer and the application layer, mobile storage devices no longer need to be compatible with the drivers of office equipment, nor do they need to rely on specific USB flash drives to meet office needs, thus improving the practicality of the scenario. Furthermore, it reduces driver development costs and the need for interactive user interface development, thereby reducing office risks.

[0033] S200: When the file directory status is the file creation status, receive the Create message;

[0034] Specifically, the Create message refers to one of several callback functions implemented internally by fuse that intercept file behavior. This message callback is generated when a file is created. The Create message can determine the basic information such as the name and path of the file to be created, providing an information basis for the subsequent creation of a file with the same name in the removable storage device.

[0035] S300: Based on the Create message, create a first file with the same name in the removable storage device;

[0036] Furthermore, such as Figure 2 As shown, step S300, which involves creating a first file with the same name in the removable storage device according to the Create message, includes the following steps:

[0037] S310: The Create message includes create callback parameters;

[0038] S320: Retrieve the file name and file path to be created based on the create callback parameters;

[0039] S330: Based on the file name and the file path, create a first file with the same name, a first file handle with the same name, and a soft link to the first file with the same name in the mobile storage device;

[0040] S340: Update the mount directory of the mobile storage device by using a symbolic link to the first file with the same name;

[0041] S350: Send the handle of the first file with the same name to the first office software.

[0042] Specifically, the first file with the same name refers to a file with the exact same name as one created on the office device. By creating this first file with the same name on the removable storage device, it becomes easier to open the first file with the same name on the removable storage device when clicking on a file shortcut created on the office device, thus reducing the storage pressure on the office device. The preferred method for creating this file is as follows:

[0043] The `create` callback parameter stores basic information related to the created file, including at least the filename and file path. When the `fuse` monitoring module receives the filename and file path, it creates a first file with the same name, a handle to that file, and a symbolic link to that file on the removable storage device. Users can then directly edit this first file on the removable storage device, such as adding, deleting, or modifying it. The handle to the first file is the unique identifier for opening it. The symbolic link to the first file is a link to it; it contains the path to another file, which can be any file or directory, and can link to files on different file systems. The symbolic link points to the first file with the same name, and the removable storage device's mount directory is updated, recording the set of files stored on the device. Preferably, the removable storage device's mount directory is grouped by file type, and directories with the same file type are further grouped according to office software for easy retrieval later. Preferably, a symbolic link with the same name is created in the mount directory of the removable storage device, pointing to the redirected file. This ensures the accuracy of file redirection by using the latest redirection information.

[0044] The handle of the first file with the same name is returned to the first office software, which will be used as the identification basis when opening the first file with the same name in the subsequent step. When the user needs to open the first file with the same name, the symbolic link of the first file with the same name is determined through the handle of the first file with the same name, and then the first file with the same name is opened.

[0045] When office software reads / writes file content, since file handles, first-name soft links, etc. are files on removable storage devices, the edited data is stored on the removable storage device, which improves the editability of files on the removable storage device and enhances the user experience.

[0046] S400: When the file directory status is the clicked file status, receive the open message;

[0047] Specifically, the open message refers to one of several callback functions implemented internally by fuse to intercept file behavior. This message callback is generated when a file is opened. The open message can determine basic information such as the name of the file to be opened, the file handle, and the symbolic link, providing an information basis for opening the file with the same name on the removable storage device in the subsequent step.

[0048] S500: Based on the open message, open the second file with the same name in the removable storage device.

[0049] Furthermore, the step S500 of opening the second file with the same name in the removable storage device according to the open message includes the following steps:

[0050] S510: Obtain the soft link of the clicked file based on the open message;

[0051] S520: Traverse the mount directory of the mobile storage device and determine whether the clicked file soft link points to a second file soft link with the same name;

[0052] S530: If the target is specified, open the second file with the same name in the mobile storage device and return the handle of the second file with the same name to the first office software.

[0053] Specifically, the clicked file handle can be determined through the open message, and then the clicked file symbolic link can be obtained based on the clicked file handle. Then, based on the mount directory of the removable storage device, it is determined whether the clicked file symbolic link belongs to the file content stored in the removable storage device. Here, the second symbolic link with the same name refers to the file symbolic link corresponding to any mount directory of the removable storage device. The second symbolic link with the same name refers to the file with the same name stored in the removable storage device that corresponds to the file name opened by the user when the fuse monitoring module detects that the file name opened by the user belongs to the mount directory of the removable storage device.

[0054] If the file symbolic link points to a second file with the same name, the second file with the same name in the removable storage device will be opened automatically based on the second file with the same name, and the handle of the second file with the same name will be returned to the first office software for file recognition.

[0055] Furthermore, the step S500, which involves opening a second file with the same name within the removable storage device based on the open message, further includes the following steps:

[0056] S540: If the clicked file soft link does not point to the second file soft link with the same name, obtain the clicked file name and the clicked file path;

[0057] S550: Based on the clicked file name and the clicked file path, create a third file with the same name, a handle to the third file with the same name, and a soft link to the third file with the same name in the mobile storage device;

[0058] S560: Update the mount directory of the removable storage device by using the symbolic link of the third file with the same name to point to the third file with the same name;

[0059] S570: Send the handle of the third file with the same name to the first office software.

[0060] Specifically, if the clicked file symbolic link does not point to a second symbolic link with the same name, the clicked file name and path are obtained. Based on the clicked file name and path, a third file with the same name, a handle to the third file with the same name, and a symbolic link to the third file with the same name are created in the removable storage device. The symbolic link to the third file with the same name is used to point to the third file with the same name. The mount directory of the removable storage device is updated, and the handle to the third file with the same name is sent to the first office software. Here, the third file with the same name refers to a file with the same name stored on the removable storage device when the fuse monitoring module detects that the file name opened by the user does not belong to the mount directory of the removable storage device. The storage method is exactly the same as the storage method of the first file with the same name, and the third file with the same name can be opened in real time.

[0061] In summary, the secure office method and apparatus for mobile storage devices provided in this disclosure have at least the following technical effects:

[0062] 1. The FUSE monitoring module monitors the office status of the computer in real time, specifically the file directory status of each office software application. When a user creates a file using the first office software, the file directory status is "File Creation Status." When a user opens a file using the first office software, the file directory status is "File Click Status." When the file directory status is "File Creation Status," a "Create" message is received. Based on the "Create" message, a first file with the same name is created on the removable storage device. When the file directory status is "File Click Status," an "Open" message is received. Based on the "Open" message, a second file with the same name is opened on the removable storage device. Since file creation and opening are both performed within the disk and do not require multiple file transfers, this achieves the technical effect of reducing the risk of file leakage and improving the user experience.

[0063] 2. Because the fuse monitoring module internally handles the scheduling between the driver layer and the application layer, mobile storage devices no longer need to be compatible with the drivers of office equipment, nor do they need to rely on specific USB flash drives to meet office needs, thus improving the practicality of the application. Furthermore, it reduces driver development costs and the need for interactive user interface development, thereby mitigating office risks.

[0064] 3. By mounting directories on removable storage devices, a one-to-one correspondence is established between files stored on the device and their symbolic links, ensuring that previously created symbolic links stored on the local disk can correctly point to files on the disk.

[0065] Example 2

[0066] like Figure 3 As shown, based on the same inventive concept as the aforementioned secure office method for mobile storage devices, this disclosure also provides a secure office device for mobile storage devices, including a fuse monitoring module, the fuse monitoring module comprising:

[0067] The directory status monitoring unit 11 is used to obtain the file directory status of the first office software, wherein the file directory status includes the file creation status and the file click status;

[0068] The first message receiving unit 12 is used to receive a Create message when the file directory status is the file creation status;

[0069] Create message processing unit 13 is used to create a first file with the same name in the mobile storage device according to the Create message;

[0070] The second message receiving unit 14 is used to receive an open message when the file directory status is the clicked file status;

[0071] The open message processing unit 15 is configured to open a second file with the same name in the removable storage device according to the open message.

[0072] Furthermore, the Create message processing unit 13 performs the following steps:

[0073] The Create message includes create callback parameters;

[0074] Based on the create callback parameters, retrieve the file name and file path to be created;

[0075] Based on the file name and the file path, create a first file with the same name, a handle to the first file with the same name, and a soft link to the first file with the same name in the mobile storage device.

[0076] The mount directory of the mobile storage device is updated by using a symbolic link to the first file with the same name.

[0077] Send the handle of the first file with the same name to the first office software.

[0078] Furthermore, the open message processing unit 15 performs the following steps:

[0079] Based on the open message, obtain the soft link of the clicked file;

[0080] Traverse the mounted directory of the mobile storage device and determine whether the clicked file soft link points to a second file soft link with the same name;

[0081] If the target is specified, open the second file with the same name in the mobile storage device and return the handle of the second file with the same name to the first office software.

[0082] Furthermore, the open message processing unit 15 further includes the following steps:

[0083] If the clicked file soft link does not point to the second file soft link with the same name, obtain the clicked file name and the clicked file path;

[0084] Based on the clicked file name and the clicked file path, create a third file with the same name, a handle to the third file with the same name, and a soft link to the third file with the same name in the mobile storage device;

[0085] The mount directory of the removable storage device is updated by using a symbolic link to the third file with the same name.

[0086] Send the handle of the third file with the same name to the first office software.

[0087] Example 3

[0088] An electronic device according to embodiments of the present disclosure includes a memory and a processor. The memory is used to store non-transitory computer-readable instructions. Specifically, the memory may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may, for example, include random access memory (RAM) and / or cache memory. The non-volatile memory may, for example, include read-only memory (ROM), a hard disk, flash memory, etc.

[0089] The processor may be a central processing unit (CPU) or other processing unit with data processing and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions. In one embodiment of this disclosure, the processor is used to execute computer-readable instructions stored in the memory, causing the electronic device to perform all or part of the steps of a secure office method for a mobile storage device according to the foregoing embodiments of this disclosure.

[0090] Those skilled in the art will understand that, in order to solve the technical problem of how to achieve a good user experience, this embodiment may also include well-known structures such as communication buses and interfaces, and these well-known structures should also be included within the protection scope of this disclosure.

[0091] like Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. It illustrates a structural schematic diagram suitable for implementing the electronic device in the embodiment of the present disclosure. Figure 4 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0092] like Figure 4 As shown, an electronic device may include a processing unit (such as a central processing unit, graphics processing unit, etc.) that can perform various appropriate actions and processes based on a program stored in read-only memory (ROM) or a program loaded from a storage device into random access memory (RAM). The RAM also stores various programs and data required for the operation of the electronic device. The processing unit, ROM, and RAM are interconnected via a bus. Input / output (I / O) interfaces are also connected to the bus.

[0093] Typically, the following devices can be connected to the I / O interface: input devices, such as sensors or visual information acquisition devices; output devices, such as displays; storage devices, such as magnetic tapes or hard drives; and communication devices. Communication devices allow electronic devices to communicate wirelessly or wiredly with other devices (such as edge computing devices) to exchange data. AlthoughFigure 4 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.

[0094] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, all or part of the steps of a secure office method using a mobile storage device according to embodiments of this disclosure are performed.

[0095] For a detailed description of this embodiment, please refer to the corresponding descriptions in the foregoing embodiments, which will not be repeated here.

[0096] A computer-readable storage medium according to embodiments of the present disclosure stores non-transitory computer-readable instructions. When these non-transitory computer-readable instructions are executed by a processor, all or part of the steps of the methods described in the foregoing embodiments of the present disclosure are performed.

[0097] The aforementioned computer-readable storage media include, but are not limited to: optical storage media (e.g., CD-ROM and DVD), magneto-optical storage media (e.g., MO), magnetic storage media (e.g., magnetic tape or portable hard drive), media with built-in rewritable non-volatile memory (e.g., memory card), and media with built-in ROM (e.g., ROM cartridge).

[0098] For a detailed description of this embodiment, please refer to the corresponding descriptions in the foregoing embodiments, which will not be repeated here.

[0099] The basic principles of this disclosure have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in this disclosure are merely examples and not limitations, and should not be considered as essential features of each embodiment of this disclosure. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the scope of this disclosure to the necessity of employing the aforementioned specific details for implementation.

[0100] In this disclosure, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The block diagrams of devices, apparatuses, devices, and systems involved in this disclosure are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner. Words such as "comprising," "including," "having," etc., are open-ended terms meaning "including but not limited to," and are used interchangeably with them. The terms "or" and "and" as used herein refer to the terms "and / or," and are used interchangeably with them unless the context clearly indicates otherwise. The term "such as" as used herein refers to the phrase "such as but not limited to," and is used interchangeably with it.

[0101] Additionally, as used herein, the “or” used in a list of items beginning with “at least one” indicates a separate list, such that a list of, for example, “at least one of A, B, or C” means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, the word “exemplary” does not imply that the described example is preferred or better than other examples.

[0102] It should also be noted that in the systems and methods of this disclosure, the components or steps can be decomposed and / or recombined. These decompositions and / or recombinations should be considered as equivalent solutions to this disclosure.

[0103] Various changes, substitutions, and modifications can be made to the technology described herein without departing from the teachings defined by the appended claims. Furthermore, the scope of the claims of this disclosure is not limited to the specific aspects of the processes, machines, manufactures, events, means, methods, and actions described above. Currently existing or later-developed processes, machines, manufactures, events, means, methods, or actions that perform substantially the same function or achieve substantially the same result as the corresponding aspects described herein can be utilized. Therefore, the appended claims include such processes, machines, manufactures, events, means, methods, or actions within their scope.

[0104] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use this disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of this disclosure. Therefore, this disclosure is not intended to be limited to the aspects shown herein, but rather to be carried out within the widest scope consistent with the principles and novel features disclosed herein.

[0105] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of this disclosure to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations therein.

Claims

1. A secure office method of a mobile storage device, characterized by, Implementing by a secure office device of a mobile storage device, the device comprising a fuse monitoring module, comprising: acquiring a file directory state of a first office software, wherein the file directory state comprises a create file state and a click file state; receiving a Create message when the file directory state is the create file state; creating a first same-name file in the mobile storage device according to the Create message; receiving an open message when the file directory state is the click file state; opening a second same-name file in the mobile storage device according to the open message; the creating a first same-name file in the mobile storage device according to the Create message comprises: the Create message comprises a create callback parameter; calling a create file name and a create file path according to the create callback parameter; creating the first same-name file, a first same-name file handle and a first same-name file soft link in the mobile storage device according to the create file name and the create file path; updating a mobile storage device mounting directory using the first same-name file soft link pointing to the first same-name file; sending the first same-name file handle to the first office software.

2. The method of claim 1, wherein, the opening a second same-name file in the mobile storage device according to the open message comprises: acquiring a click file soft link according to the open message; traversing the mobile storage device mounting directory to determine whether the click file soft link points to a second same-name file soft link; if yes, opening the second same-name file in the mobile storage device and returning a second same-name file handle to the first office software.

3. The method of claim 2, wherein, the opening a second same-name file in the mobile storage device according to the open message further comprises: if the click file soft link does not point to the second same-name file soft link, acquiring a click file name and a click file path; creating a third same-name file, a third same-name file handle and a third same-name file soft link in the mobile storage device according to the click file name and the click file path; updating the mobile storage device mounting directory using the third same-name file soft link pointing to the third same-name file; sending the third same-name file handle to the first office software.

4. A secure office apparatus of a mobile storage device, characterized by comprising: comprising a fuse monitoring module, the fuse monitoring module comprising: a directory state monitoring unit for acquiring a file directory state of a first office software, wherein the file directory state comprises a create file state and a click file state; a first message receiving unit for receiving a Create message when the file directory state is the create file state; a Create message processing unit for creating a first same-name file in the mobile storage device according to the Create message; a second message receiving unit for receiving an open message when the file directory state is the click file state; an open message processing unit for opening a second same-name file in the mobile storage device according to the open message; The Create message processing unit performs steps comprising: The Create message includes a create callback parameter; According to the create callback parameter, a create file name and a create file path are called; According to the create file name and the create file path, a first same-name file, a first same-name file handle and a first same-name file soft link are created in the mobile storage device; The first same-name file soft link is used to point to the first same-name file, and the mobile storage device mounting directory is updated; The first same-name file handle is sent to the first office software.

5. The apparatus of claim 4, wherein, The open message processing unit performs steps comprising: According to the open message, a clicked file soft link is obtained; The mobile storage device mounting directory is traversed, and it is judged whether the clicked file soft link points to a second same-name file soft link; If yes, the second same-name file in the mobile storage device is opened, and a second same-name file handle is returned to the first office software.

6. The apparatus of claim 5, wherein, The open message processing unit performs steps further comprising: If the clicked file soft link does not point to the second same-name file soft link, a clicked file name and a clicked file path are obtained; According to the clicked file name and the clicked file path, a third same-name file, a third same-name file handle and a third same-name file soft link are created in the mobile storage device; The third same-name file soft link is used to point to the third same-name file, and the mobile storage device mounting directory is updated; The third same-name file handle is sent to the first office software.

7. An electronic device, comprising: The electronic device comprises: at least one processor; and a memory connected with the at least one processor in communication; wherein The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the secure office method of the mobile storage device according to any one of claims 1-3.

8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions for causing a computer to perform the secure office method of the mobile storage device according to any one of claims 1-3.

Citation Information

Patent Citations

  • File synchronization update method and system based on portable storage device

    CN103226603A

  • Multi-channel concurrent file permission management method and device, server and medium

    CN113032829A