Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

File storage path obtaining method and device

A storage path and file storage technology, applied in the computer field, can solve problems such as the inability to obtain the actual storage directory of the file, the inability to obtain the file, and the monitoring failure

Inactive Publication Date: 2019-07-05
北京椒图科技有限公司
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the Linux host protection system, in order to be able to monitor the files accessed by the process, the actual storage directory of the file needs to be obtained, but when the chroot method is called, the actual storage directory of the file is changed to the root directory, and the file cannot be obtained in the Linux chroot environment The actual storage directory, so the actual storage path of the file cannot be obtained, resulting in the inability to obtain the file accessed by the process, which eventually leads to monitoring failure

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File storage path obtaining method and device
  • File storage path obtaining method and device
  • File storage path obtaining method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0047] figure 1 shows a flow chart of a method for obtaining a file storage path, refer to figure 1 , the method may include:

[0048] Step S100, monitoring the invocation of the chroot function, and determining the target process for invoking the chroot function;

[0049] The calling process of the chroot function is to map the original directory of the target file to the root directory.

[0050] In the embodiment of the present invention, af...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a file storage path obtaining method and device, and the method comprises the steps: monitoring the calling of a chroot function, determining a target process for calling the chroot function, and enabling the calling process of the chroot function to map an original catalog of a target file into a root catalog; when the target process operates the target file, obtaining anoriginal directory of the target file; obtaining a storage path of the target file in a root directory; and obtaining an actual storage path of the target file according to the original directory andthe storage path of the target file under the root directory. Due to the fact that the original directory of the target file is obtained, the actual storage path of the target file can be obtained according to the original directory and the storage path of the target file under the root directory, the file accessed by the process is obtained according to the actual storage path, and monitoring ofthe file is achieved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for acquiring a file storage path. Background technique [0002] At present, in order to increase the security of the system and facilitate the system development of users, a new Linux environment isolated from the original Linux environment is usually established on the basis of the original Linux environment by means of chroot (change root directory). For Linux chroot environment. The chroot method is a way to change the location of the root directory referenced when the program is executed. Specifically, in the Linux system, the default file storage directory structure of the system starts with " / ", and " / " is the root , and after calling the chroot method, the directory structure of the system will use the specified location as the location of " / ". [0003] In the Linux host protection system, in order to be able to monitor the files accessed by the pr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/13G06F16/11
Inventor 贾佳
Owner 北京椒图科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products