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

USB flash disk transmission monitoring method based on Fanotify mechanism

A mechanism and transmission strategy technology, applied in the field of U disk transmission monitoring based on the Fanotify mechanism, can solve the problems of large adaptation workload and poor stability, and achieve the effect of small workload, good stability and improved stability.

Pending Publication Date: 2022-07-08
和安科技创新有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The technical problem to be solved by the present invention is: how to solve the existing U disk transmission monitoring method, there is a problem that the scheme adaptation workload of the kernel is large, and the stability is poor, which brings certain influence to the use of the U disk transmission monitoring method For the problem, a U disk transmission monitoring method based on the Fanotify mechanism is provided

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
  • USB flash disk transmission monitoring method based on Fanotify mechanism
  • USB flash disk transmission monitoring method based on Fanotify mechanism
  • USB flash disk transmission monitoring method based on Fanotify mechanism

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The embodiments of the present invention are described in detail below. This embodiment is implemented on the premise of the technical solution of the present invention, and provides a detailed implementation manner and a specific operation process, but the protection scope of the present invention is not limited to the following implementation. example.

[0026] like Figures 1 to 5 As shown, the present embodiment provides a technical solution: a U disk transmission monitoring method based on the Fanotify mechanism, comprising the following steps:

[0027] Step 1: Perform system initialization, including Netlink initialization and Fanotify initialization. The Netlink initialization process is as follows: When Netlink is initialized, a Socket is created to monitor the NETLINK_KOBJECT_UEVENT event, and a thread is created to read the Socket data. The Fanotify initialization process is as follows: Call fanotify_init to create a Fanotify instance, and create a thread to ...

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 USB flash disk transmission monitoring method based on a Fanotify mechanism, and the method comprises the following steps: 1, carrying out system initialization, including Netlink initialization and Fanotify initialization; 2, when the USB flash disk is inserted into a system, a Netlink thread receives a USB equipment Add message, a table item is established with the USB flash disk equipment name as a Key and used for identifying the USB flash disk, the state is Adding, and the table item is inserted into a USB flash disk list; 3, traversing the USB flash disk list by the timer, comparing the USB flash disk list with / proc / mouts to find a directory from the USB flash disk Mount to the file system, and calling a Fanotify interface fanotifymark to monitor the directory; 4, when a user performs copy operation on the file in the U disk, triggering a Fanotify event; 5, when the USB flash disk is pulled out, searching the USB flash disk list by taking the USB flash disk equipment name as the Key, and performing corresponding processing according to the state after the USB flash disk list is found; and 6, traversing the USB flash disk list by the timer, and comparing the USB flash disk list with / proc / mouts. According to the method, an application layer scheme can be used for replacing a kernel scheme on a Linux system, the adaptation workload can be remarkably reduced, and the stability is improved.

Description

technical field [0001] The invention relates to the field of data monitoring, in particular to a U disk transmission monitoring method based on the Fanotify mechanism. Background technique [0002] In the security protection of the host, it is necessary to prevent the leakage of confidential files caused by copying through a USB flash drive, and it is also necessary to prevent malicious files from entering the host caused by copying through a USB flash drive. Therefore, the host security protection software needs to realize the management and control of pluggable storage devices such as U disk; [0003] Under Linux, mobile storage devices such as U disk and USB hard disk are usually driven in a way called usb-storage. To use them, this kernel module (modprobe usb-storage) must be loaded. At present, the commonly used U disk transmission monitoring solution in the industry is to modify and replace the kernel module. Sexual issues. [0004] At present, the common U disk mon...

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
IPC IPC(8): G06F21/55
CPCG06F21/556G06F21/554G06F13/4282G06F2213/0042
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