fanotify 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +3 -0
- data/LICENSE.txt +21 -0
- data/README.md +152 -0
- data/Rakefile +43 -0
- data/benchmark/events.rb +27 -0
- data/examples/audit_logger.rb +14 -0
- data/examples/lazy_fetch.rb +29 -0
- data/examples/malware_scan.rb +20 -0
- data/ext/fanotify/compat.h +235 -0
- data/ext/fanotify/constants.c +12 -0
- data/ext/fanotify/extconf.rb +10 -0
- data/ext/fanotify/fanotify.c +481 -0
- data/lib/fanotify/event.rb +215 -0
- data/lib/fanotify/file_handle.rb +12 -0
- data/lib/fanotify/mark.rb +6 -0
- data/lib/fanotify/notifier.rb +458 -0
- data/lib/fanotify/version.rb +5 -0
- data/lib/fanotify.rb +38 -0
- data/sig/fanotify.rbs +93 -0
- data/tools/constants.def +59 -0
- data/tools/dump_constants.c +12 -0
- data/tools/generate_constants.rb +18 -0
- data/tools/vm/Makefile +5 -0
- data/tools/vm/config-fragment +3 -0
- data/tools/vm/run.sh +14 -0
- metadata +70 -0
data/tools/vm/run.sh
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
set -eu
|
|
3
|
+
|
|
4
|
+
kver=${KVER:-6.12}
|
|
5
|
+
major=${kver%%.*}
|
|
6
|
+
minor=${kver#*.}
|
|
7
|
+
minor=${minor%%.*}
|
|
8
|
+
require_pre_access=0
|
|
9
|
+
if [ "$major" -gt 6 ] || { [ "$major" -eq 6 ] && [ "$minor" -ge 14 ]; }; then
|
|
10
|
+
require_pre_access=1
|
|
11
|
+
fi
|
|
12
|
+
|
|
13
|
+
exec vng -v -r "v$kver" --user root -- env FANOTIFY_EXPECT_KERNEL="v$kver" FANOTIFY_REQUIRE_PRIVILEGED=1 \
|
|
14
|
+
FANOTIFY_REQUIRE_PRE_ACCESS="$require_pre_access" bundle exec rake test:system
|
metadata
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: fanotify
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Yudai Takada
|
|
8
|
+
bindir: exe
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
description: Monitor Linux filesystem events and respond safely to fanotify permission
|
|
13
|
+
events.
|
|
14
|
+
email:
|
|
15
|
+
- t.yudai92@gmail.com
|
|
16
|
+
executables: []
|
|
17
|
+
extensions:
|
|
18
|
+
- ext/fanotify/extconf.rb
|
|
19
|
+
extra_rdoc_files: []
|
|
20
|
+
files:
|
|
21
|
+
- ".yardopts"
|
|
22
|
+
- LICENSE.txt
|
|
23
|
+
- README.md
|
|
24
|
+
- Rakefile
|
|
25
|
+
- benchmark/events.rb
|
|
26
|
+
- examples/audit_logger.rb
|
|
27
|
+
- examples/lazy_fetch.rb
|
|
28
|
+
- examples/malware_scan.rb
|
|
29
|
+
- ext/fanotify/compat.h
|
|
30
|
+
- ext/fanotify/constants.c
|
|
31
|
+
- ext/fanotify/extconf.rb
|
|
32
|
+
- ext/fanotify/fanotify.c
|
|
33
|
+
- lib/fanotify.rb
|
|
34
|
+
- lib/fanotify/event.rb
|
|
35
|
+
- lib/fanotify/file_handle.rb
|
|
36
|
+
- lib/fanotify/mark.rb
|
|
37
|
+
- lib/fanotify/notifier.rb
|
|
38
|
+
- lib/fanotify/version.rb
|
|
39
|
+
- sig/fanotify.rbs
|
|
40
|
+
- tools/constants.def
|
|
41
|
+
- tools/dump_constants.c
|
|
42
|
+
- tools/generate_constants.rb
|
|
43
|
+
- tools/vm/Makefile
|
|
44
|
+
- tools/vm/config-fragment
|
|
45
|
+
- tools/vm/run.sh
|
|
46
|
+
homepage: https://github.com/ydah/fanotify
|
|
47
|
+
licenses:
|
|
48
|
+
- MIT
|
|
49
|
+
metadata:
|
|
50
|
+
allowed_push_host: https://rubygems.org
|
|
51
|
+
source_code_uri: https://github.com/ydah/fanotify
|
|
52
|
+
rubygems_mfa_required: 'true'
|
|
53
|
+
rdoc_options: []
|
|
54
|
+
require_paths:
|
|
55
|
+
- lib
|
|
56
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - ">="
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: 3.2.0
|
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
|
+
requirements:
|
|
63
|
+
- - ">="
|
|
64
|
+
- !ruby/object:Gem::Version
|
|
65
|
+
version: '0'
|
|
66
|
+
requirements: []
|
|
67
|
+
rubygems_version: 4.0.19
|
|
68
|
+
specification_version: 4
|
|
69
|
+
summary: Ruby bindings for Linux fanotify
|
|
70
|
+
test_files: []
|