GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - FreeSoaring/WatchInotify: Inotify监听测试

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
Cheating
Cheating
 
 
Inotify
Inotify
 
 
outputs/arm64-v8a
outputs/arm64-v8a
 
 
.gitignore
.gitignore
 
 
CMakeLists.txt
CMakeLists.txt
 
 
build.sh
build.sh
 
 
clean.sh
clean.sh
 
 
readme.md
readme.md
 
 

Repository files navigation

常用监控项

行为 含义 掩码 对应
IN_ACCESS 访问 0x00000001 fgets(buffer, sizeof(buffer), fp)
IN_OPEN 文件被打开 0x00000020 fopen(filename, "r")
IN_ATTRIB 数据变化 0x00000004
IN_CLOSE 文件关闭 IN_CLOSE_WRITE | IN_CLOSE_NOWRITE close(fd) 未监控到?

检测范围

调用层 读取层 结果
root root 可检测
用户 root 可检测

ps top 都会触发 IN_OPEN | IN_ACCESS

修改/proc/sys/fs/inotify/max_user_watches为0

修改时间 结果
启动应用前 inotify_add_watch err
启动应用后 IN_OPEN | IN_ACCESS
获取文件句柄后 IN_ACCESS

#END

About

Inotify监听测试

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.