netlink_proc_event 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4baea63f3658d59c9b8509fc3870600c167c54f1
4
- data.tar.gz: 1e94e8a58fd00d5f34a5a808f8caf2442e23e739
3
+ metadata.gz: d96868311c7e976652dfa31f64c6c524eab136bc
4
+ data.tar.gz: 14c18a8f5ec5c18bacc422f092ad0a104104f1a1
5
5
  SHA512:
6
- metadata.gz: 502f362a6f3c576c68bc1479b8661abf0b0d08cd20741abaf0cbf6d71b31ab510c88c543db0e24c471618c52b64a14749ddb2e2f4b18b3b62a4b6715ee572669
7
- data.tar.gz: 4e4e587c8ad3f0ece039604a5aaf04a806a491e3b8dc951cee76e3927434b49c2006e764c1b467a8650d9c1b0bd40c7bce3b153f1af4f926b928433a786a8d72
6
+ metadata.gz: 5bfbd3841663bee532c45472c6912821697f6564694d76b70b87a56f84b2dc9de945a01d3dd56357e02ff64db855b8be8a6490aab33ca2af7e0cf975d0e6299b
7
+ data.tar.gz: 01e703661bab5e1f4dc68578ee645840239f7b798be9c95b794a1799695518314ab75c747fb99351f7e981ac9922795e7082f117a2964b10154f7b5c33262efc
@@ -12,7 +12,7 @@ require 'socket'
12
12
 
13
13
  module NetlinkProcEvent
14
14
  class << self
15
- attr_writer :logger
15
+ attr_accessor :logger
16
16
 
17
17
  def socket
18
18
  UNIXSocket.for_fd(Libnl.nl_socket_get_fd(nl_socket))
@@ -38,20 +38,20 @@ module NetlinkProcEvent
38
38
  :PROC_EVENT_EXIT , -0x80000000)
39
39
 
40
40
  class ForkProcEvent < FFI::Struct
41
- layout :parent_pid, :uint32,
42
- :parent_tgid, :uint32,
43
- :child_pid, :uint32,
44
- :child_tgid, :uint32
41
+ layout :parent_pid, :pid_t,
42
+ :parent_tgid, :pid_t,
43
+ :child_pid, :pid_t,
44
+ :child_tgid, :pid_t
45
45
  end
46
46
 
47
47
  class ExecProcEvent < FFI::Struct
48
- layout :process_pid, :uint32,
49
- :process_tgid, :uint32
48
+ layout :process_pid, :pid_t,
49
+ :process_tgid, :pid_t
50
50
  end
51
51
 
52
52
  class ExitProcEvent < FFI::Struct
53
- layout :process_pid, :uint32,
54
- :process_tgid, :uint32,
53
+ layout :process_pid, :pid_t,
54
+ :process_tgid, :pid_t,
55
55
  :exit_signal, :uint32
56
56
  end
57
57
 
@@ -70,7 +70,8 @@ module NetlinkProcEvent
70
70
  :flags, :uint16,
71
71
  :what, Event,
72
72
  :cpu, :uint32,
73
- :timestamp_ns, :uint64,
73
+ :timestamp_ns, :uint32,
74
+ :timestamp_ns, :uint32,
74
75
  :event_data, EventData
75
76
  end
76
77
 
@@ -7,5 +7,5 @@
7
7
  #
8
8
 
9
9
  module NetlinkProcEvent
10
- VERSION = "0.2.0"
10
+ VERSION = "0.2.1"
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netlink_proc_event
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Aue
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-14 00:00:00.000000000 Z
11
+ date: 2015-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.4.5
94
+ rubygems_version: 2.4.8
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Netlink bindings to subscribe to process events (exec, fork, etc.).