fluentd 1.11.2-x64-mingw32 → 1.12.1-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of fluentd might be problematic. Click here for more details.

Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE/bug_report.md +1 -1
  3. data/.github/ISSUE_TEMPLATE/config.yml +5 -0
  4. data/.github/workflows/build.yaml +29 -0
  5. data/.github/workflows/stale-actions.yml +22 -0
  6. data/.travis.yml +22 -2
  7. data/CHANGELOG.md +114 -0
  8. data/README.md +2 -2
  9. data/appveyor.yml +3 -0
  10. data/bin/fluent-cap-ctl +7 -0
  11. data/bin/fluent-ctl +7 -0
  12. data/fluentd.gemspec +8 -8
  13. data/lib/fluent/capability.rb +87 -0
  14. data/lib/fluent/command/ca_generate.rb +6 -3
  15. data/lib/fluent/command/cap_ctl.rb +174 -0
  16. data/lib/fluent/command/ctl.rb +177 -0
  17. data/lib/fluent/command/fluentd.rb +4 -0
  18. data/lib/fluent/command/plugin_config_formatter.rb +17 -2
  19. data/lib/fluent/config/section.rb +1 -1
  20. data/lib/fluent/env.rb +4 -0
  21. data/lib/fluent/log.rb +33 -3
  22. data/lib/fluent/plugin.rb +5 -0
  23. data/lib/fluent/plugin/buffer.rb +27 -57
  24. data/lib/fluent/plugin/buffer/chunk.rb +2 -1
  25. data/lib/fluent/plugin/formatter.rb +24 -0
  26. data/lib/fluent/plugin/formatter_csv.rb +1 -1
  27. data/lib/fluent/plugin/formatter_hash.rb +3 -1
  28. data/lib/fluent/plugin/formatter_json.rb +3 -1
  29. data/lib/fluent/plugin/formatter_ltsv.rb +5 -3
  30. data/lib/fluent/plugin/formatter_out_file.rb +6 -4
  31. data/lib/fluent/plugin/formatter_single_value.rb +4 -2
  32. data/lib/fluent/plugin/formatter_tsv.rb +4 -2
  33. data/lib/fluent/plugin/in_exec.rb +4 -2
  34. data/lib/fluent/plugin/in_http.rb +23 -2
  35. data/lib/fluent/plugin/in_tail.rb +109 -41
  36. data/lib/fluent/plugin/in_tail/position_file.rb +39 -14
  37. data/lib/fluent/plugin/in_tcp.rb +1 -0
  38. data/lib/fluent/plugin/out_http.rb +29 -4
  39. data/lib/fluent/plugin/output.rb +15 -6
  40. data/lib/fluent/plugin/parser_json.rb +5 -2
  41. data/lib/fluent/plugin_helper/http_server/compat/server.rb +1 -1
  42. data/lib/fluent/plugin_helper/inject.rb +4 -1
  43. data/lib/fluent/plugin_helper/retry_state.rb +4 -0
  44. data/lib/fluent/supervisor.rb +162 -51
  45. data/lib/fluent/system_config.rb +4 -2
  46. data/lib/fluent/time.rb +1 -0
  47. data/lib/fluent/version.rb +1 -1
  48. data/lib/fluent/winsvc.rb +22 -4
  49. data/templates/plugin_config_formatter/param.md-table.erb +10 -0
  50. data/test/command/test_binlog_reader.rb +22 -6
  51. data/test/command/test_cap_ctl.rb +100 -0
  52. data/test/command/test_ctl.rb +57 -0
  53. data/test/command/test_fluentd.rb +30 -0
  54. data/test/command/test_plugin_config_formatter.rb +124 -2
  55. data/test/plugin/in_tail/test_position_file.rb +46 -26
  56. data/test/plugin/test_buffer.rb +4 -0
  57. data/test/plugin/test_filter_stdout.rb +6 -1
  58. data/test/plugin/test_formatter_hash.rb +6 -3
  59. data/test/plugin/test_formatter_json.rb +14 -4
  60. data/test/plugin/test_formatter_ltsv.rb +13 -5
  61. data/test/plugin/test_formatter_out_file.rb +35 -14
  62. data/test/plugin/test_formatter_single_value.rb +12 -6
  63. data/test/plugin/test_formatter_tsv.rb +12 -4
  64. data/test/plugin/test_in_exec.rb +18 -0
  65. data/test/plugin/test_in_http.rb +25 -0
  66. data/test/plugin/test_in_tail.rb +433 -30
  67. data/test/plugin/test_out_file.rb +23 -18
  68. data/test/plugin/test_out_http.rb +19 -0
  69. data/test/plugin/test_output.rb +12 -0
  70. data/test/plugin/test_parser_syslog.rb +2 -2
  71. data/test/plugin/test_sd_file.rb +1 -1
  72. data/test/plugin_helper/test_compat_parameters.rb +7 -2
  73. data/test/plugin_helper/test_http_server_helper.rb +8 -1
  74. data/test/plugin_helper/test_inject.rb +42 -0
  75. data/test/plugin_helper/test_server.rb +18 -5
  76. data/test/test_capability.rb +74 -0
  77. data/test/test_formatter.rb +34 -10
  78. data/test/test_log.rb +44 -0
  79. data/test/test_output.rb +6 -1
  80. data/test/test_supervisor.rb +150 -1
  81. metadata +49 -37
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 783193e143e478f7d0688b10b7f295c4d84a25814caceb52f0b683da3519b965
4
- data.tar.gz: 809c4084ce6e1323e708561d0b64d30dd3ac7baf20bfe6becece0759b59c43e7
3
+ metadata.gz: 18454384bb3a658207eec16570a8a3e25906eb6d30c89d4304532e6963f7a452
4
+ data.tar.gz: 5c172af998e60bc1556f2ea19540aa0892fecba7e6f7b0b3441be96dd2e414f5
5
5
  SHA512:
6
- metadata.gz: aad9889623e4976c9c84892d8290d15ab626c7ab1d1ea5977fe9752704c7bc6c462e8bd0e8e0dd79562a5bad9bc43f0a8fd7b1f633615d1da64de9285e08e38a
7
- data.tar.gz: 1f3930325ae5fc28a632e271d1d240bb2d14a333dd0d441d3217e22e278ab968a005ccd463e106f17fb82a8ecb1f8e58842774d48c25c978840f013a46193a3a
6
+ metadata.gz: 5253d66669c5bf788a14627924803439a78dee4218a1289b8907a16e945e4388c3ddf6838e35df26e10d894139f3bfa5bb903aadb59bfd883d177961cb4046ba
7
+ data.tar.gz: 98502195dc14d04ce14b54b8f9afdfcbc847f710a5d1f0711ca04f7a081828e961eb9ee5d8e0a7d9d4039adeb152178399b9d0e49d86f8c2e919421e343782c1
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: Bug Report
3
- about: Create a report to help us improve. If you have questions about Fluentd and plugins, please direct these to https://groups.google.com/forum/#!forum/fluentd
3
+ about: Create a report with a procedure for reproducing the bug
4
4
 
5
5
  ---
6
6
 
@@ -0,0 +1,5 @@
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name: Ask a Question
4
+ url: https://groups.google.com/forum/#!forum/fluentd
5
+ about: I have questions about Fluentd and plugins. Please ask and answer questions here
@@ -0,0 +1,29 @@
1
+ name: build
2
+
3
+ on:
4
+ push:
5
+ branches: [master]
6
+ pull_request:
7
+ branches: [master]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ ruby-version: [2.7, 2.6, 2.5]
17
+
18
+ steps:
19
+ - uses: actions/checkout@v2
20
+ - name: Set up Ruby
21
+ uses: ruby/setup-ruby@v1
22
+ with:
23
+ ruby-version: ${{ matrix.ruby-version }}
24
+ - name: Install addons
25
+ run: sudo apt-get install libgmp3-dev libcap-ng-dev
26
+ - name: Install dependencies
27
+ run: bundle install
28
+ - name: Run tests
29
+ run: bundle exec rake test TESTOPTS=-v
@@ -0,0 +1,22 @@
1
+ name: "Mark or close stale issues and PRs"
2
+ on:
3
+ schedule:
4
+ - cron: "00 10 * * *"
5
+
6
+ jobs:
7
+ stale:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/stale@v3
11
+ with:
12
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
13
+ days-before-stale: 90
14
+ days-before-close: 30
15
+ stale-issue-message: "This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days"
16
+ stale-pr-message: "This PR has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this PR will be closed in 30 days"
17
+ close-issue-message: "This issue was automatically closed because of stale in 30 days"
18
+ close-pr-message: "This PR was automatically closed because of stale in 30 days"
19
+ stale-pr-label: "stale"
20
+ stale-issue-label: "stale"
21
+ exempt-issue-labels: "bug,enhancement,feature request,pending,work_in_progress,v1,v2"
22
+ exempt-pr-labels: "bug,enhancement,feature request,pending,work_in_progress,v1,v2"
data/.travis.yml CHANGED
@@ -9,44 +9,63 @@ matrix:
9
9
  include:
10
10
  - rvm: 2.4.9
11
11
  os: linux
12
+ env: USE_CAPNG=false
12
13
  - rvm: 2.4.9
13
14
  os: linux-ppc64le
15
+ env: USE_CAPNG=false
14
16
  - rvm: 2.5.7
15
17
  os: linux
18
+ env: USE_CAPNG=false
16
19
  - rvm: 2.5.7
17
20
  os: linux
18
21
  arch: s390x
19
22
  dist: xenial
23
+ env: USE_CAPNG=false
20
24
  - rvm: 2.6.5
21
25
  os: linux
26
+ env: USE_CAPNG=false
27
+ - rvm: 2.6.6
28
+ os: linux
29
+ env: USE_CAPNG=true
22
30
  - rvm: 2.7.0
23
31
  os: linux
32
+ env: USE_CAPNG=false
24
33
  - rvm: ruby-head
25
34
  os: linux
35
+ env: USE_CAPNG=false
26
36
  - rvm: ruby-head
27
37
  os: linux-ppc64le
38
+ env: USE_CAPNG=false
28
39
  - rvm: 2.4.6
29
40
  os: osx
30
41
  osx_image: xcode8.3 # OSX 10.12
42
+ env: USE_CAPNG=false
31
43
  - rvm: ruby-head
32
44
  os: osx
33
45
  osx_image: xcode8.3 # OSX 10.12
46
+ env: USE_CAPNG=false
34
47
  allow_failures:
35
48
  - rvm: 2.4.6
36
49
  os: osx
37
50
  osx_image: xcode8.3
51
+ env: USE_CAPNG=false
38
52
  - rvm: 2.5.7
39
53
  os: linux
40
54
  arch: s390x
41
55
  dist: xenial
56
+ env: USE_CAPNG=false
42
57
  - rvm: ruby-head
58
+ env: USE_CAPNG=false
43
59
 
44
60
  branches:
45
61
  only:
46
62
  - master
47
63
 
48
- before_install:
49
- - gem update --system=3.1.2
64
+ before_install: |
65
+ gem update --system=3.1.2
66
+ if [[ x"${USE_CAPNG}" == "xtrue" ]]; then
67
+ echo 'gem "capng_c"' >> Gemfile.local
68
+ fi
50
69
 
51
70
  sudo: false
52
71
  dist: trusty # for TLSv1.2 support
@@ -55,3 +74,4 @@ addons:
55
74
  apt:
56
75
  packages:
57
76
  - libgmp3-dev
77
+ - libcap-ng-dev
data/CHANGELOG.md CHANGED
@@ -1,5 +1,119 @@
1
+ # v1.12
2
+
3
+ ## Release v1.12.1 - 2021/02/18
4
+
5
+ ### Enhancement
6
+
7
+ * out_http: Add `headers_from_placeholders` parameter
8
+ https://github.com/fluent/fluentd/pull/3241
9
+ * fluent-plugin-config-format: Add `--table` option to use markdown table
10
+ https://github.com/fluent/fluentd/pull/3240
11
+ * Add `--disable-shared-socket`/`disable_shared_socket` to disable ServerEngine's shared socket setup
12
+ https://github.com/fluent/fluentd/pull/3250
13
+
14
+ ### Bug fix
15
+
16
+ * ca_generate: Fix creating TLS certification files which include broken extensions
17
+ https://github.com/fluent/fluentd/pull/3246
18
+ * test: Drop TLS 1.1 tests
19
+ https://github.com/fluent/fluentd/pull/3256
20
+ * Remove old gem constraints to support Ruby 3
21
+
22
+ ### Misc
23
+
24
+ * Use GitHub Actions
25
+ https://github.com/fluent/fluentd/pull/3233
26
+ https://github.com/fluent/fluentd/pull/3255
27
+
28
+ ## Release v1.12.0 - 2021/01/05
29
+
30
+ ### New feature
31
+
32
+ * in_tail: Add `follow_inode` to support log rotation with wild card
33
+ https://github.com/fluent/fluentd/pull/2992
34
+ * in_tail: Handle linux capability
35
+ https://github.com/fluent/fluentd/pull/3155
36
+ https://github.com/fluent/fluentd/pull/3162
37
+ * windows: Add win32 events alternative to unix signals
38
+ https://github.com/fluent/fluentd/pull/3131
39
+
40
+ ### Enhancement
41
+
42
+ * buffer: Enable metadata comparison optimization on all platforms
43
+ https://github.com/fluent/fluentd/pull/3095
44
+ * fluent-plugin-config-formatter: Handle `service_discovery` type
45
+ https://github.com/fluent/fluentd/pull/3178
46
+ * in_http: Add `add_query_params` parameter to add query params to event record
47
+ https://github.com/fluent/fluentd/pull/3197
48
+ * inject: Support `unixtime_micros` and `unixtime_nanos` in `time_type`
49
+ https://github.com/fluent/fluentd/pull/3220
50
+ * Refactoring code
51
+ https://github.com/fluent/fluentd/pull/3167
52
+ https://github.com/fluent/fluentd/pull/3170
53
+ https://github.com/fluent/fluentd/pull/3180
54
+ https://github.com/fluent/fluentd/pull/3196
55
+ https://github.com/fluent/fluentd/pull/3213
56
+ https://github.com/fluent/fluentd/pull/3222
57
+
58
+ ### Bug fix
59
+
60
+ * output: Prevent retry.step from being called too many times in a short time
61
+ https://github.com/fluent/fluentd/pull/3203
62
+
1
63
  # v1.11
2
64
 
65
+ ## Release v1.11.5 - 2020/11/06
66
+
67
+ ### Enhancement
68
+
69
+ * formatter: Provide `newline` parameter to support `CRLF`
70
+ https://github.com/fluent/fluentd/pull/3152
71
+ * out_http: adding support for intermediate certificates
72
+ https://github.com/fluent/fluentd/pull/3146
73
+ * Update serverengine dependency to 2.2.2 or later
74
+
75
+ ### Bug fix
76
+
77
+ * Fix a bug that windows service isn't stopped gracefuly
78
+ https://github.com/fluent/fluentd/pull/3156
79
+
80
+ ## Release v1.11.4 - 2020/10/13
81
+
82
+ ### Enhancement
83
+
84
+ * inject: Support `unixtime_millis` in `time_type` parameter
85
+ https://github.com/fluent/fluentd/pull/3145
86
+
87
+ ### Bug fix
88
+
89
+ * out_http: Fix broken data with `json_array true`
90
+ https://github.com/fluent/fluentd/pull/3144
91
+ * output: Fix wrong logging issue for `${chunk_id}`
92
+ https://github.com/fluent/fluentd/pull/3134
93
+
94
+ ## Release v1.11.3 - 2020/09/30
95
+
96
+ ### Enhancement
97
+
98
+ * in_exec: Add `connect_mode` parameter to read stderr
99
+ https://github.com/fluent/fluentd/pull/3108
100
+ * parser_json: Improve the performance
101
+ https://github.com/fluent/fluentd/pull/3109
102
+ * log: Add `ignore_same_log_interval` parameter
103
+ https://github.com/fluent/fluentd/pull/3119
104
+ * Upgrade win32 gems
105
+ https://github.com/fluent/fluentd/pull/3100
106
+ * Refactoring code
107
+ https://github.com/fluent/fluentd/pull/3094
108
+ https://github.com/fluent/fluentd/pull/3118
109
+
110
+ ### Bug fix
111
+
112
+ * buffer: Fix calculation of timekey stats
113
+ https://github.com/fluent/fluentd/pull/3018
114
+ * buffer: fix binmode usage for prevent gc
115
+ https://github.com/fluent/fluentd/pull/3138
116
+
3
117
  ## Release v1.11.2 - 2020/08/04
4
118
 
5
119
  ### Enhancement
data/README.md CHANGED
@@ -13,7 +13,7 @@ Drone CI for Arm64:
13
13
  [Fluentd](https://www.fluentd.org/) collects events from various data sources and writes them to files, RDBMS, NoSQL, IaaS, SaaS, Hadoop and so on. Fluentd helps you unify your logging infrastructure (Learn more about the [Unified Logging Layer](https://www.fluentd.org/blog/unified-logging-layer)).
14
14
 
15
15
  <p align="center">
16
- <img src="https://raw.githubusercontent.com/fluent/fluentd-docs-gitbook/1.0/images/fluentd-architecture.png" width="500px"/>
16
+ <img src="https://www.fluentd.org/images/fluentd-architecture.png" width="500px"/>
17
17
  </p>
18
18
 
19
19
  An event consists of *tag*, *time* and *record*. Tag is a string separated with '.' (e.g. myapp.access). It is used to categorize events. Time is a UNIX time recorded at occurrence of an event. Record is a JSON object.
@@ -78,7 +78,7 @@ You can run specified test via `TEST` environment variable:
78
78
  - Slack / Community: https://slack.fluentd.org
79
79
  - Newsletters: https://www.fluentd.org/newsletter
80
80
  - Author: [Sadayuki Furuhashi](https://github.com/frsyuki)
81
- - Copyright: 2011-2019 Fluentd Authors
81
+ - Copyright: 2011-2021 Fluentd Authors
82
82
  - License: Apache License, Version 2.0
83
83
 
84
84
  ## Security
data/appveyor.yml CHANGED
@@ -7,6 +7,9 @@ install:
7
7
  - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
8
8
  - ruby --version
9
9
  - gem --version
10
+ # stay 0.14.0 for Windows CI until https://github.com/socketry/protocol-http2/issues/6 will be fixed
11
+ - ps: Write-Output "gem 'protocol-http2', ['<= 0.14.0']" | Out-File -FilePath Gemfile.local -Encoding default
12
+ - type Gemfile.local
10
13
  - ridk.cmd exec bundle install
11
14
  build: off
12
15
  test_script:
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ # -*- coding: utf-8 -*-
3
+ here = File.dirname(__FILE__)
4
+ $LOAD_PATH << File.expand_path(File.join(here, '..', 'lib'))
5
+ require 'fluent/command/cap_ctl'
6
+
7
+ Fluent::CapCtl.new.call
data/bin/fluent-ctl ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ here = File.dirname(__FILE__)
4
+ $LOAD_PATH << File.expand_path(File.join(here, '..', 'lib'))
5
+ require 'fluent/command/ctl'
6
+
7
+ Fluent::Ctl.new.call
data/fluentd.gemspec CHANGED
@@ -18,10 +18,11 @@ Gem::Specification.new do |gem|
18
18
 
19
19
  gem.required_ruby_version = '>= 2.4'
20
20
 
21
+ gem.add_runtime_dependency("bundler")
21
22
  gem.add_runtime_dependency("msgpack", [">= 1.3.1", "< 2.0.0"])
22
23
  gem.add_runtime_dependency("yajl-ruby", ["~> 1.0"])
23
24
  gem.add_runtime_dependency("cool.io", [">= 1.4.5", "< 2.0.0"])
24
- gem.add_runtime_dependency("serverengine", [">= 2.0.4", "< 3.0.0"])
25
+ gem.add_runtime_dependency("serverengine", [">= 2.2.2", "< 3.0.0"])
25
26
  gem.add_runtime_dependency("http_parser.rb", [">= 0.5.1", "< 0.7.0"])
26
27
  gem.add_runtime_dependency("sigdump", ["~> 0.2.2"])
27
28
  gem.add_runtime_dependency("tzinfo", [">= 1.0", "< 3.0"])
@@ -32,11 +33,11 @@ Gem::Specification.new do |gem|
32
33
  fake_platform = ENV['GEM_BUILD_FAKE_PLATFORM'].to_s
33
34
  gem.platform = fake_platform unless fake_platform.empty?
34
35
  if /mswin|mingw/ =~ fake_platform || (/mswin|mingw/ =~ RUBY_PLATFORM && fake_platform.empty?)
35
- gem.add_runtime_dependency("win32-service", ["~> 0.8.3"])
36
- gem.add_runtime_dependency("win32-ipc", ["~> 0.6.1"])
37
- gem.add_runtime_dependency("win32-event", ["~> 0.6.1"])
38
- gem.add_runtime_dependency("windows-pr", ["~> 1.2.5"])
39
- gem.add_runtime_dependency("certstore_c", ["~> 0.1.2"])
36
+ gem.add_runtime_dependency("win32-service", ["~> 2.1.5"])
37
+ gem.add_runtime_dependency("win32-ipc", ["~> 0.7.0"])
38
+ gem.add_runtime_dependency("win32-event", ["~> 0.6.3"])
39
+ gem.add_runtime_dependency("windows-pr", ["~> 1.2.6"])
40
+ gem.add_runtime_dependency("certstore_c", ["~> 0.1.7"])
40
41
  end
41
42
 
42
43
  gem.add_development_dependency("rake", ["~> 13.0"])
@@ -48,6 +49,5 @@ Gem::Specification.new do |gem|
48
49
  gem.add_development_dependency("test-unit", ["~> 3.3"])
49
50
  gem.add_development_dependency("test-unit-rr", ["~> 1.0"])
50
51
  gem.add_development_dependency("oj", [">= 2.14", "< 4"])
51
- gem.add_development_dependency("ext_monitor", [">= 0.1.2", "< 0.2"])
52
- gem.add_development_dependency("async-http")
52
+ gem.add_development_dependency("async-http", ">= 0.50.0")
53
53
  end
@@ -0,0 +1,87 @@
1
+ #
2
+ # Fluent
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ require "fluent/env"
18
+
19
+ if Fluent.linux?
20
+ begin
21
+ require 'capng'
22
+ rescue LoadError
23
+ end
24
+ end
25
+
26
+ module Fluent
27
+ if defined?(CapNG)
28
+ class Capability
29
+ def initialize(target = nil, pid = nil)
30
+ @capng = CapNG.new(target, pid)
31
+ end
32
+
33
+ def usable?
34
+ true
35
+ end
36
+
37
+ def apply(select_set)
38
+ @capng.apply(select_set)
39
+ end
40
+
41
+ def clear(select_set)
42
+ @capng.clear(select_set)
43
+ end
44
+
45
+ def have_capability?(type, capability)
46
+ @capng.have_capability?(type, capability)
47
+ end
48
+
49
+ def update(action, type, capability_or_capability_array)
50
+ @capng.update(action, type, capability_or_capability_array)
51
+ end
52
+
53
+ def have_capabilities?(select_set)
54
+ @capng.have_capabilities?(select_set)
55
+ end
56
+ end
57
+ else
58
+ class Capability
59
+ def initialize(target = nil, pid = nil)
60
+ end
61
+
62
+ def usable?
63
+ false
64
+ end
65
+
66
+ def apply(select_set)
67
+ false
68
+ end
69
+
70
+ def clear(select_set)
71
+ false
72
+ end
73
+
74
+ def have_capability?(type, capability)
75
+ false
76
+ end
77
+
78
+ def update(action, type, capability_or_capability_array)
79
+ false
80
+ end
81
+
82
+ def have_capabilities?(select_set)
83
+ false
84
+ end
85
+ end
86
+ end
87
+ end