|
|
303495d |
# Keep matching patterns enough not to hide unintended errors and warnings.
|
|
|
b65d1d3 |
|
|
|
b65d1d3 |
# There is no way to implement this with `%{SOURCE0}` without `%{_sourcedir}`.
|
|
|
b65d1d3 |
# The order in the .spec file could be possibly different.
|
|
|
e6a3dff |
addFilter(r'ruby\.(spec|src):20: E: use-of-RPM_SOURCE_DIR$')
|
|
|
4108f57 |
|
|
|
4108f57 |
# The used version is not obvious.
|
|
|
e6a3dff |
addFilter(r'ruby\.(spec|src):\d+: W: unversioned-explicit-provides bundled\(ccan-build_assert\)$')
|
|
|
e6a3dff |
addFilter(r'ruby\.(spec|src):\d+: W: unversioned-explicit-provides bundled\(ccan-check_type\)$')
|
|
|
e6a3dff |
addFilter(r'ruby\.(spec|src):\d+: W: unversioned-explicit-provides bundled\(ccan-container_of\)$')
|
|
|
e6a3dff |
addFilter(r'ruby\.(spec|src):\d+: W: unversioned-explicit-provides bundled\(ccan-list\)$')
|
|
|
fbaee91 |
|
|
|
fbaee91 |
# The template files do not have to have executable bits.
|
|
|
fbaee91 |
addFilter(r'^rubygem-bundler\.noarch: E: non-executable-script /usr/share/gems/gems/bundler-[\d\.]+/lib/bundler/templates/[\w/\.]+ 644 /usr/bin/env ')
|
|
|
26bc979 |
|
|
|
26bc979 |
# The bundled gem files permissions are overridden as 644 by `make install`.
|
|
|
26bc979 |
# https://bugs.ruby-lang.org/issues/17840
|
|
|
b0ce095 |
# https://github.com/rubygems/rubygems/issues/5255
|
|
|
b0ce095 |
# https://github.com/ruby/debug/pull/481
|
|
|
b0ce095 |
# https://github.com/ruby/net-ftp/pull/12
|
|
|
b0ce095 |
# https://github.com/ruby/net-imap/pull/53
|
|
|
b0ce095 |
# https://github.com/ruby/net-pop/pull/7
|
|
|
b0ce095 |
# https://github.com/ruby/prime/pull/16
|
|
|
b0ce095 |
addFilter(r'^.*: E: non-executable-script /usr/share/gems/gems/(debug|net-(ftp|imap|pop)|prime)-[\d\.]+/bin/\w+ 644 ')
|
|
|
b0ce095 |
|
|
|
b0ce095 |
# Ruby provides API to set the cipher list.
|
|
|
b0ce095 |
addFilter(r'^ruby-libs\.\w+: W: crypto-policy-non-compliance-openssl /usr/lib(64)?/ruby/openssl.so SSL_CTX_set_cipher_list$')
|
|
|
b0ce095 |
|
|
|
b0ce095 |
# `gethostbyname` is part of deprecated Ruby API. There is also request to drop the API altogether:
|
|
|
b0ce095 |
# https://bugs.ruby-lang.org/issues/13097
|
|
|
b0ce095 |
# https://bugs.ruby-lang.org/issues/17944
|
|
|
b0ce095 |
addFilter(r'^ruby-libs\.\w+: W: binary-or-shlib-calls-gethostbyname /usr/lib(64)?/ruby/socket.so$')
|
|
|
a09dbbe |
|
|
|
a09dbbe |
# Nothing referred and no dependency information should be no problem.
|
|
|
a09dbbe |
# https://bugs.ruby-lang.org/issues/16558#note-2
|
|
|
b0ce095 |
addFilter(r'^ruby-libs\.\w+: E: shared-library-without-dependency-information /usr/lib(64)?/ruby/enc/gb2312.so$')
|
|
|
aee17a2 |
# Compatibility for rpmlint 1.11.
|
|
|
aee17a2 |
addFilter(r'^ruby-libs\.\w+: E: shared-lib-without-dependency-information /usr/lib(64)?/ruby/enc/gb2312.so$')
|
|
|
b0ce095 |
|
|
|
b0ce095 |
# These are Ruby plugins, where Ruby always load glibc prior the library.
|
|
|
b0ce095 |
addFilter(r'^ruby-libs\.\w+: W: library-not-linked-against-libc /usr/lib(64)?/ruby/.*.so$')
|
|
|
b0ce095 |
|
|
|
df8cc89 |
# The function `chroot` without using `chdir` is detected by rpmlint with the
|
|
|
df8cc89 |
# following message. However it looks a false positive as the `chroot` in the
|
|
|
df8cc89 |
# `dir.c` is just used as a Ruby binding `Dir.chroot` for the function.
|
|
|
df8cc89 |
#
|
|
|
df8cc89 |
# ruby-libs.x86_64: E: missing-call-to-chdir-with-chroot /usr/lib64/libruby.so.N.N.N
|
|
|
df8cc89 |
# This executable appears to call chroot without using chdir to change the
|
|
|
df8cc89 |
# current directory. This is likely an error and permits an attacker to break
|
|
|
df8cc89 |
# out of the chroot by using fchdir. While that's not always a security issue,
|
|
|
df8cc89 |
# this has to be checked.
|
|
|
df8cc89 |
addFilter(r'^ruby-libs\.\w+: E: missing-call-to-chdir-with-chroot /usr/lib(64)?/libruby.so.[\d/.]+$')
|
|
|
df8cc89 |
|
|
|
b0ce095 |
# Rake ships some examples.
|
|
|
b0ce095 |
addFilter(r'^rubygem-rake.noarch: W: devel-file-in-non-devel-package /usr/share/gems/gems/rake-[\d\.]+/doc/example/\w+.c$')
|
|
|
b0ce095 |
|
|
|
b0ce095 |
# Some executables don't have their manual pages. Is it worth of use help2man?
|
|
|
b0ce095 |
addFilter(r'^.+: W: no-manual-page-for-binary (bundler|gem|rbs|rdbg|rdoc|ruby-mri|typeprof)$')
|
|
|
b0ce095 |
|
|
|
b0ce095 |
# Default gems does not come with any documentation.
|
|
|
b0ce095 |
addFilter(r'^rubygem-(bigdecimal|io-console|json|psych)\.\w+: W: no-documentation$')
|
|
|
b0ce095 |
|
|
|
b0ce095 |
# rubygems-devel ships only RPM macros and generators. Their placement is given
|
|
|
b0ce095 |
# by RPM and can't be modified.
|
|
|
b0ce095 |
addFilter(r'rubygems-devel.noarch: W: only-non-binary-in-usr-lib$')
|
|
|
9e774fb |
|
|
|
9e774fb |
# The empty gem.build_complete file is false positive. This error is gone in rpmlint 2.0+.
|
|
|
9e774fb |
# https://github.com/rpm-software-management/rpmlint/commit/e34ce874f27d733628f51c9884ac951af072bed2
|
|
|
9e774fb |
addFilter(r'^ruby(gem)?-(bigdecimal|bundled-gems|io-console|json|psych|rbs)\.\w+: E: zero-length /usr/lib(64)?/gems/ruby/.*/gem.build_complete')
|