From 9be3843552841022df589c9125b4789f70027cbc Mon Sep 17 00:00:00 2001 From: Marek Kulik Date: Sep 27 2021 12:53:59 +0000 Subject: Add RPM whitelist exception for rpmlint Include RPM errors and warnings in whitelist Resolves: #2001477 --- diff --git a/proxysql.rpmlintrc b/proxysql.rpmlintrc index be36da0..ebbd047 100644 --- a/proxysql.rpmlintrc +++ b/proxysql.rpmlintrc @@ -1,5 +1,18 @@ +# SPEC + # Ignore 'unversioned bundled provides...' # This filter ignore error that is caused by bundled library: clickhouse-cpp # clickhouse-cpp was not officially versioned until Mar 26 2020. # Source package that is included with this package is from 2019. addFilter("unversioned-explicit-provides bundled\(clickhouse-cpp\)") + +# RPM + +# This is default permission for configuration file used by authors. +# https://github.com/sysown/proxysql/blob/v2.x/docker/images/proxysql/rhel-compliant/rhel7/rpmmacros/rpmbuild/SPECS/proxysql.spec#L47 +# Additional privileges are not needed for proper functioning. +addFilter("non-readable /etc/proxysql.cnf 640") + +# Ignore this warning, 'proxysql' user is created in %pre section +addFilter(r"non-standard-(gid|uid) /var/lib/proxysql proxysql") +addFilter("non-standard-uid /etc/proxysql.cnf proxysql")