2006-06-29 20:29:40 +00:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
# System wide rpmlint default configuration. Do not modify, override/add
|
|
|
|
# options in /etc/rpmlint/config and/or ~/.rpmlintrc as needed.
|
|
|
|
|
2009-05-19 19:49:43 +00:00
|
|
|
import os.path
|
|
|
|
import re
|
2010-01-25 22:20:10 +00:00
|
|
|
import sys
|
2009-05-19 19:49:43 +00:00
|
|
|
|
2006-06-29 20:29:40 +00:00
|
|
|
from Config import *
|
2009-05-19 19:49:43 +00:00
|
|
|
import Pkg
|
|
|
|
|
2006-06-29 20:29:40 +00:00
|
|
|
|
2010-01-25 22:20:10 +00:00
|
|
|
setOption("CompressExtension", "gz")
|
|
|
|
setOption("DefaultPythonVersion", sys.version[:3])
|
|
|
|
setOption("KernelModuleRPMsOK", False)
|
2009-09-13 22:15:36 +00:00
|
|
|
setOption("MaxLineLength", 80)
|
2010-01-25 22:20:10 +00:00
|
|
|
setOption("NetworkEnabled", True)
|
2017-10-29 16:29:04 +00:00
|
|
|
setOption("ReleaseExtension", r'\.(fc|rhe?l|el)\d+(?=\.|$)')
|
2017-09-11 15:34:49 +00:00
|
|
|
setOption("UseDebugSource", True)
|
2009-06-21 21:17:41 +00:00
|
|
|
setOption("UseDefaultRunlevels", False)
|
|
|
|
setOption("UseEpoch", False)
|
|
|
|
setOption("UseUTF8", True)
|
2010-01-25 22:20:10 +00:00
|
|
|
setOption("UseVersionInChangeLog", True)
|
2014-02-09 12:19:54 +00:00
|
|
|
setOption("ValidSrcPerms", (int("664",8), int("644",8), ))
|
2018-05-04 01:35:36 +00:00
|
|
|
setOption("ValidGroups", [])
|
2010-01-25 22:20:10 +00:00
|
|
|
|
2006-06-29 20:29:40 +00:00
|
|
|
setOption("ValidShells", (
|
2009-11-02 21:40:42 +00:00
|
|
|
"<lua>",
|
2006-06-29 20:29:40 +00:00
|
|
|
"/bin/sh",
|
|
|
|
"/bin/bash",
|
|
|
|
"/sbin/ldconfig",
|
|
|
|
"/usr/bin/perl",
|
|
|
|
"/usr/bin/python",
|
2020-06-10 12:40:10 +00:00
|
|
|
"/usr/bin/python2",
|
|
|
|
"/usr/bin/python3",
|
2006-06-29 20:29:40 +00:00
|
|
|
))
|
2007-07-31 20:54:22 +00:00
|
|
|
|
2006-06-29 20:29:40 +00:00
|
|
|
setOption("DanglingSymlinkExceptions", (
|
|
|
|
['consolehelper$', 'usermode'],
|
|
|
|
['consolehelper-gtk$', 'usermode-gtk'],
|
|
|
|
))
|
2007-07-31 20:54:22 +00:00
|
|
|
|
|
|
|
setOption("ValidLicenses", (
|
|
|
|
# These are the short names for all of the Fedora approved licenses.
|
|
|
|
# The master list is kept here: http://fedoraproject.org/wiki/Licensing
|
2018-08-11 09:51:52 +00:00
|
|
|
# Last synced with revision "2.47, July 3, 2018" of that page.
|
2008-10-23 20:25:52 +00:00
|
|
|
'AAL',
|
2010-11-01 21:31:14 +00:00
|
|
|
'Abstyles',
|
2007-08-29 19:47:29 +00:00
|
|
|
'Adobe',
|
2008-05-21 17:56:07 +00:00
|
|
|
'ADSL',
|
2007-08-05 13:35:20 +00:00
|
|
|
'AFL',
|
2013-03-06 21:09:55 +00:00
|
|
|
'Afmparse',
|
2007-12-06 12:13:44 +00:00
|
|
|
'AGPLv1',
|
|
|
|
'AGPLv3',
|
2013-10-09 23:44:45 +00:00
|
|
|
'AGPLv3+',
|
2010-03-03 20:43:08 +00:00
|
|
|
'AGPLv3 with exceptions',
|
2010-01-25 22:20:10 +00:00
|
|
|
'AMDPLPA',
|
2010-04-21 21:52:53 +00:00
|
|
|
'AML',
|
2007-12-06 12:13:44 +00:00
|
|
|
'AMPAS BSD',
|
2018-08-11 09:51:52 +00:00
|
|
|
'ANTLR-PD',
|
2013-03-06 21:09:55 +00:00
|
|
|
'APAFML',
|
2014-12-09 19:47:16 +00:00
|
|
|
'App-s2p',
|
2010-04-21 21:52:53 +00:00
|
|
|
'APSL 2.0',
|
2007-08-29 19:47:29 +00:00
|
|
|
'ARL',
|
2018-08-11 09:51:52 +00:00
|
|
|
'Array',
|
2010-04-21 21:52:53 +00:00
|
|
|
'Artistic 2.0',
|
|
|
|
'Artistic clarified',
|
2007-07-31 20:54:22 +00:00
|
|
|
'ASL 1.0',
|
|
|
|
'ASL 1.1',
|
|
|
|
'ASL 2.0',
|
2012-08-14 19:50:21 +00:00
|
|
|
'Bahyph',
|
2010-11-01 21:31:14 +00:00
|
|
|
'Barr',
|
2011-10-12 18:51:03 +00:00
|
|
|
'Beerware',
|
2010-08-19 15:57:17 +00:00
|
|
|
'BeOpen',
|
2012-08-14 19:50:21 +00:00
|
|
|
'Bibtex',
|
2007-08-05 13:35:20 +00:00
|
|
|
'BitTorrent',
|
2007-07-31 20:54:22 +00:00
|
|
|
'Boost',
|
2011-10-12 18:51:03 +00:00
|
|
|
'Borceux',
|
2007-07-31 20:54:22 +00:00
|
|
|
'BSD',
|
2010-01-25 22:20:10 +00:00
|
|
|
'BSD Protection',
|
2007-08-05 13:35:20 +00:00
|
|
|
'BSD with advertising',
|
2011-10-12 18:51:03 +00:00
|
|
|
'BSD with attribution',
|
2008-10-23 20:25:52 +00:00
|
|
|
'CATOSL',
|
2010-01-25 22:20:10 +00:00
|
|
|
'CC0',
|
2007-07-31 20:54:22 +00:00
|
|
|
'CeCILL',
|
2008-09-12 17:00:21 +00:00
|
|
|
'CeCILL-B',
|
|
|
|
'CeCILL-C',
|
2018-08-11 09:51:52 +00:00
|
|
|
'CDDL-1.0',
|
|
|
|
'CDDL-1.1',
|
2008-09-12 17:00:21 +00:00
|
|
|
'CNRI',
|
2007-07-31 20:54:22 +00:00
|
|
|
'Condor',
|
2007-08-16 15:37:38 +00:00
|
|
|
'Copyright only',
|
2010-04-21 21:52:53 +00:00
|
|
|
'CPAL',
|
|
|
|
'CPL',
|
2018-08-11 09:51:52 +00:00
|
|
|
'CPM',
|
2015-09-25 17:51:08 +00:00
|
|
|
'CRC32',
|
2010-11-01 21:31:14 +00:00
|
|
|
'Crossword',
|
2007-08-05 13:35:20 +00:00
|
|
|
'Crystal Stacker',
|
2013-03-06 21:09:55 +00:00
|
|
|
'Cube',
|
2012-08-14 19:50:21 +00:00
|
|
|
'diffmark',
|
2013-10-09 23:44:45 +00:00
|
|
|
'DMIT',
|
2008-05-21 17:56:07 +00:00
|
|
|
'DOC',
|
2010-11-01 21:31:14 +00:00
|
|
|
'Dotseqn',
|
2011-10-12 18:51:03 +00:00
|
|
|
'DSDP',
|
2009-01-20 20:55:36 +00:00
|
|
|
'dvipdfm',
|
2017-09-08 21:25:17 +00:00
|
|
|
'DWPL',
|
2008-07-26 17:09:14 +00:00
|
|
|
'ECL 1.0',
|
|
|
|
'ECL 2.0',
|
2007-07-31 20:54:22 +00:00
|
|
|
'eCos',
|
|
|
|
'EFL 2.0',
|
2011-10-12 18:51:03 +00:00
|
|
|
'eGenix',
|
2008-10-23 20:25:52 +00:00
|
|
|
'Entessa',
|
2015-05-29 16:09:59 +00:00
|
|
|
'EPICS',
|
2018-08-11 09:51:52 +00:00
|
|
|
'EPL-1.0',
|
|
|
|
'EPL-2.0',
|
2008-07-26 17:09:14 +00:00
|
|
|
'ERPL',
|
2007-07-31 20:54:22 +00:00
|
|
|
'EU Datagrid',
|
2010-01-31 23:14:18 +00:00
|
|
|
'EUPL 1.1',
|
2009-01-20 20:55:36 +00:00
|
|
|
'Eurosym',
|
2008-05-21 17:56:07 +00:00
|
|
|
'Fair',
|
2018-08-11 09:51:52 +00:00
|
|
|
'FDK-AAC',
|
|
|
|
'FSFAP',
|
2013-03-06 21:09:55 +00:00
|
|
|
'FSFUL',
|
|
|
|
'FSFULLR',
|
2007-09-28 15:45:05 +00:00
|
|
|
'FTL',
|
2007-08-05 13:35:20 +00:00
|
|
|
'Giftware',
|
2008-07-26 17:09:14 +00:00
|
|
|
'GL2PS',
|
2007-08-05 13:35:20 +00:00
|
|
|
'Glide',
|
2011-10-12 18:51:03 +00:00
|
|
|
'Glulxe',
|
2007-08-29 19:47:29 +00:00
|
|
|
'gnuplot',
|
2007-07-31 20:54:22 +00:00
|
|
|
'GPL+',
|
2007-08-05 13:35:20 +00:00
|
|
|
'GPL+ or Artistic',
|
2009-03-19 23:01:23 +00:00
|
|
|
'GPL+ with exceptions',
|
2008-05-29 00:19:04 +00:00
|
|
|
'GPLv1',
|
2008-09-12 17:00:21 +00:00
|
|
|
'GPLv2 or Artistic',
|
2007-09-28 15:45:05 +00:00
|
|
|
'GPLv2+ or Artistic',
|
2007-07-31 20:54:22 +00:00
|
|
|
'GPLv2',
|
2007-08-05 13:35:20 +00:00
|
|
|
'GPLv2 with exceptions',
|
2007-07-31 20:54:22 +00:00
|
|
|
'GPLv2+',
|
2007-09-28 15:45:05 +00:00
|
|
|
'GPLv2+ with exceptions',
|
2007-07-31 20:54:22 +00:00
|
|
|
'GPLv3',
|
2007-09-28 15:45:05 +00:00
|
|
|
'GPLv3 with exceptions',
|
2007-07-31 20:54:22 +00:00
|
|
|
'GPLv3+',
|
2007-09-28 15:45:05 +00:00
|
|
|
'GPLv3+ with exceptions',
|
2012-08-14 19:50:21 +00:00
|
|
|
'HaskellReport',
|
2015-05-29 16:09:59 +00:00
|
|
|
'HSRL',
|
2007-07-31 20:54:22 +00:00
|
|
|
'IBM',
|
2007-08-05 13:35:20 +00:00
|
|
|
'IJG',
|
2007-08-29 19:47:29 +00:00
|
|
|
'ImageMagick',
|
2007-07-31 20:54:22 +00:00
|
|
|
'iMatix',
|
2007-09-28 15:45:05 +00:00
|
|
|
'Imlib2',
|
2018-08-11 09:51:52 +00:00
|
|
|
'Inner-Net',
|
2007-07-31 20:54:22 +00:00
|
|
|
'Intel ACPI',
|
|
|
|
'Interbase',
|
2007-08-05 13:35:20 +00:00
|
|
|
'ISC',
|
2007-07-31 20:54:22 +00:00
|
|
|
'Jabber',
|
2007-08-15 14:36:00 +00:00
|
|
|
'JasPer',
|
2009-05-18 19:40:22 +00:00
|
|
|
'JPython',
|
2012-08-14 19:50:21 +00:00
|
|
|
'Julius',
|
2009-06-21 21:17:41 +00:00
|
|
|
'Knuth',
|
2010-11-01 21:31:14 +00:00
|
|
|
'Latex2e',
|
2008-03-03 21:39:58 +00:00
|
|
|
'LBNL BSD',
|
2012-08-14 19:50:21 +00:00
|
|
|
'Leptonica',
|
2007-07-31 20:54:22 +00:00
|
|
|
'LGPLv2',
|
|
|
|
'LGPLv2 with exceptions',
|
|
|
|
'LGPLv2+',
|
2008-09-12 17:00:21 +00:00
|
|
|
'LGPLv2+ or Artistic',
|
2008-03-03 21:39:58 +00:00
|
|
|
'LGPLv2+ with exceptions',
|
2007-07-31 20:54:22 +00:00
|
|
|
'LGPLv3',
|
2008-03-03 21:39:58 +00:00
|
|
|
'LGPLv3 with exceptions',
|
2007-07-31 20:54:22 +00:00
|
|
|
'LGPLv3+',
|
2008-03-03 21:39:58 +00:00
|
|
|
'LGPLv3+ with exceptions',
|
2010-11-01 21:31:14 +00:00
|
|
|
'Lhcyr',
|
2007-08-05 13:35:20 +00:00
|
|
|
'libtiff',
|
2008-07-26 17:09:14 +00:00
|
|
|
'LLGPL',
|
2009-05-18 19:40:22 +00:00
|
|
|
'Logica',
|
2013-10-09 23:44:45 +00:00
|
|
|
'LOSLA',
|
2007-07-31 20:54:22 +00:00
|
|
|
'LPL',
|
2007-08-15 14:36:00 +00:00
|
|
|
'LPPL',
|
2012-08-14 19:50:21 +00:00
|
|
|
'MakeIndex',
|
2007-07-31 20:54:22 +00:00
|
|
|
'mecab-ipadic',
|
2012-08-14 19:50:21 +00:00
|
|
|
'midnight',
|
2009-09-13 22:15:36 +00:00
|
|
|
'MirOS',
|
2007-07-31 20:54:22 +00:00
|
|
|
'MIT',
|
2013-03-06 21:09:55 +00:00
|
|
|
'MITNFA',
|
2008-05-21 17:56:07 +00:00
|
|
|
'MIT with advertising',
|
2009-11-02 21:40:42 +00:00
|
|
|
'mod_macro',
|
2008-07-26 17:09:14 +00:00
|
|
|
'Motosoto',
|
2007-07-31 20:54:22 +00:00
|
|
|
'MPLv1.0',
|
|
|
|
'MPLv1.1',
|
2012-08-14 19:50:21 +00:00
|
|
|
'MPLv2.0',
|
2009-09-13 22:15:36 +00:00
|
|
|
'MS-PL',
|
2010-04-21 21:52:53 +00:00
|
|
|
'MS-RL',
|
2013-03-06 21:09:55 +00:00
|
|
|
'MTLL',
|
|
|
|
'Mup',
|
2010-04-21 21:52:53 +00:00
|
|
|
'Naumen',
|
2007-07-31 20:54:22 +00:00
|
|
|
'NCSA',
|
2008-05-21 17:56:07 +00:00
|
|
|
'NetCDF',
|
2007-07-31 20:54:22 +00:00
|
|
|
'Netscape',
|
2009-09-13 22:15:36 +00:00
|
|
|
'Newmat',
|
2010-11-01 21:31:14 +00:00
|
|
|
'Newsletr',
|
2010-04-21 21:52:53 +00:00
|
|
|
'NGPL',
|
2018-08-11 09:51:52 +00:00
|
|
|
'NISTSL',
|
2012-08-14 19:50:21 +00:00
|
|
|
'NLPL',
|
2014-02-10 21:04:28 +00:00
|
|
|
'Nmap',
|
2007-07-31 20:54:22 +00:00
|
|
|
'Nokia',
|
2010-04-21 21:52:53 +00:00
|
|
|
'NOSL',
|
2009-01-20 20:55:36 +00:00
|
|
|
'Noweb',
|
2016-04-18 19:42:40 +00:00
|
|
|
'OGL',
|
2010-05-18 19:58:31 +00:00
|
|
|
'OML',
|
2007-07-31 20:54:22 +00:00
|
|
|
'OpenLDAP',
|
2007-09-03 17:30:14 +00:00
|
|
|
'OpenPBS',
|
2010-04-21 21:52:53 +00:00
|
|
|
'OpenSSL',
|
2007-09-28 15:45:05 +00:00
|
|
|
'OReilly',
|
2007-07-31 20:54:22 +00:00
|
|
|
'OSL 1.0',
|
2007-08-29 19:47:29 +00:00
|
|
|
'OSL 1.1',
|
2007-08-05 13:35:20 +00:00
|
|
|
'OSL 2.0',
|
2008-07-26 17:09:14 +00:00
|
|
|
'OSL 2.1',
|
2007-08-05 13:35:20 +00:00
|
|
|
'OSL 3.0',
|
2012-08-14 19:50:21 +00:00
|
|
|
'Par',
|
2007-07-31 20:54:22 +00:00
|
|
|
'Phorum',
|
|
|
|
'PHP',
|
2009-01-20 20:55:36 +00:00
|
|
|
'PlainTeX',
|
2009-05-18 19:40:22 +00:00
|
|
|
'Plexus',
|
2010-03-03 20:43:08 +00:00
|
|
|
'PostgreSQL',
|
2012-08-14 19:50:21 +00:00
|
|
|
'psfrag',
|
2008-09-12 17:00:21 +00:00
|
|
|
'psutils',
|
2007-07-31 20:54:22 +00:00
|
|
|
'Public Domain',
|
|
|
|
'Python',
|
2008-05-29 00:19:04 +00:00
|
|
|
'Qhull',
|
2007-07-31 20:54:22 +00:00
|
|
|
'QPL',
|
2018-08-11 09:51:52 +00:00
|
|
|
'radvd',
|
2010-01-25 22:20:10 +00:00
|
|
|
'Rdisc',
|
2014-02-10 21:04:28 +00:00
|
|
|
'REX',
|
2008-05-29 00:19:04 +00:00
|
|
|
'RiceBSD',
|
2010-04-21 21:52:53 +00:00
|
|
|
'Romio',
|
2007-07-31 20:54:22 +00:00
|
|
|
'RPSL',
|
2018-08-11 09:51:52 +00:00
|
|
|
'RSA',
|
2010-11-01 21:31:14 +00:00
|
|
|
'Rsfs',
|
2007-07-31 20:54:22 +00:00
|
|
|
'Ruby',
|
2009-05-18 19:40:22 +00:00
|
|
|
'Saxpath',
|
2018-08-11 09:51:52 +00:00
|
|
|
'Sequence',
|
2009-03-19 23:01:23 +00:00
|
|
|
'SCEA',
|
2008-07-26 17:09:14 +00:00
|
|
|
'SCRIP',
|
2008-05-21 17:56:07 +00:00
|
|
|
'Sendmail',
|
2007-07-31 20:54:22 +00:00
|
|
|
'Sleepycat',
|
|
|
|
'SISSL',
|
2007-08-29 19:47:29 +00:00
|
|
|
'SLIB',
|
2009-03-19 23:01:23 +00:00
|
|
|
'SNIA',
|
2013-05-17 17:41:17 +00:00
|
|
|
'softSurfer',
|
2007-07-31 20:54:22 +00:00
|
|
|
'SPL',
|
2013-03-06 21:09:55 +00:00
|
|
|
'STMPL',
|
|
|
|
'SWL',
|
2017-09-08 21:25:17 +00:00
|
|
|
'TCGL',
|
2007-08-15 14:36:00 +00:00
|
|
|
'TCL',
|
2008-09-12 17:00:21 +00:00
|
|
|
'Teeworlds',
|
2014-12-09 19:47:16 +00:00
|
|
|
'TGPPL',
|
|
|
|
'TGPPL with exceptions',
|
2010-11-01 21:31:14 +00:00
|
|
|
'Threeparttable',
|
2008-09-12 17:00:21 +00:00
|
|
|
'TMate',
|
2013-10-09 23:44:45 +00:00
|
|
|
'Tolua',
|
2011-10-12 18:51:03 +00:00
|
|
|
'TORQUEv1.1',
|
2010-01-25 22:20:10 +00:00
|
|
|
'TOSL',
|
2014-02-10 21:04:28 +00:00
|
|
|
'TPDL',
|
2009-01-20 20:55:36 +00:00
|
|
|
'TPL',
|
2015-05-29 16:09:59 +00:00
|
|
|
'TTWL',
|
2018-08-11 09:51:52 +00:00
|
|
|
'Tumbolia',
|
2016-06-14 18:00:16 +00:00
|
|
|
'UCAR',
|
2007-08-15 14:36:00 +00:00
|
|
|
'UCD',
|
2014-12-09 19:47:16 +00:00
|
|
|
'Unicode',
|
|
|
|
'Unlicense',
|
2007-07-31 20:54:22 +00:00
|
|
|
'Vim',
|
|
|
|
'VNLSL',
|
2010-04-21 21:52:53 +00:00
|
|
|
'VOSTROM',
|
2007-07-31 20:54:22 +00:00
|
|
|
'VSL',
|
|
|
|
'W3C',
|
2009-01-20 20:55:36 +00:00
|
|
|
'Webmin',
|
2010-11-01 21:31:14 +00:00
|
|
|
'Wsuipa',
|
2007-08-02 19:14:13 +00:00
|
|
|
'WTFPL',
|
2008-05-21 17:56:07 +00:00
|
|
|
'wxWidgets',
|
2018-08-11 09:51:52 +00:00
|
|
|
'wxWindows',
|
2008-05-21 17:56:07 +00:00
|
|
|
'Xerox',
|
2007-07-31 20:54:22 +00:00
|
|
|
'xinetd',
|
2012-08-14 19:50:21 +00:00
|
|
|
'xpp',
|
2010-01-25 22:20:10 +00:00
|
|
|
'XSkat',
|
2008-07-26 17:09:14 +00:00
|
|
|
'YPLv1.1',
|
2010-11-01 21:31:14 +00:00
|
|
|
'Zed',
|
2007-07-31 20:54:22 +00:00
|
|
|
'Zend',
|
2010-04-21 21:52:53 +00:00
|
|
|
'zlib',
|
|
|
|
'zlib with acknowledgement',
|
2007-07-31 20:54:22 +00:00
|
|
|
'ZPLv1.0',
|
|
|
|
'ZPLv2.0',
|
2007-08-29 19:47:29 +00:00
|
|
|
'ZPLv2.1',
|
2007-07-31 20:54:22 +00:00
|
|
|
# Documentation licenses
|
|
|
|
'CDL',
|
|
|
|
'FBSDDL',
|
|
|
|
'GFDL',
|
2007-08-29 19:47:29 +00:00
|
|
|
'IEEE',
|
2010-06-23 19:06:20 +00:00
|
|
|
'LDPL',
|
2007-08-29 19:47:29 +00:00
|
|
|
'OFSFDL',
|
2007-07-31 20:54:22 +00:00
|
|
|
'Open Publication',
|
2008-05-29 00:19:04 +00:00
|
|
|
'Public Use',
|
2013-03-06 21:09:55 +00:00
|
|
|
'Verbatim',
|
2007-07-31 20:54:22 +00:00
|
|
|
# Content licenses
|
|
|
|
'CC-BY',
|
2008-05-21 17:56:07 +00:00
|
|
|
'CC-BY-ND',
|
2010-04-21 21:52:53 +00:00
|
|
|
'CC-BY-SA',
|
2009-01-20 20:55:36 +00:00
|
|
|
'DMTF',
|
2007-07-31 20:54:22 +00:00
|
|
|
'DSL',
|
2008-05-21 17:56:07 +00:00
|
|
|
'EFML',
|
2007-07-31 20:54:22 +00:00
|
|
|
'Free Art',
|
2008-09-12 17:00:21 +00:00
|
|
|
'GeoGratis',
|
2009-01-20 20:55:36 +00:00
|
|
|
'Green OpenMusic',
|
2008-10-23 20:25:52 +00:00
|
|
|
'OAL',
|
2018-08-11 09:51:52 +00:00
|
|
|
'PDDL-1.0',
|
2007-08-02 19:14:13 +00:00
|
|
|
# Font licenses
|
2010-03-03 20:43:08 +00:00
|
|
|
'AMS',
|
2007-07-31 20:54:22 +00:00
|
|
|
'Arphic',
|
2007-09-28 15:45:05 +00:00
|
|
|
'Baekmuk',
|
2007-08-10 18:56:05 +00:00
|
|
|
'Bitstream Vera',
|
2018-08-11 09:51:52 +00:00
|
|
|
'Charter',
|
2010-03-03 20:43:08 +00:00
|
|
|
'DoubleStroke',
|
2018-08-11 09:51:52 +00:00
|
|
|
'ec',
|
|
|
|
'Elvish',
|
2008-09-12 17:00:21 +00:00
|
|
|
'Hershey',
|
2018-08-11 09:51:52 +00:00
|
|
|
'HOFL',
|
2010-03-03 20:43:08 +00:00
|
|
|
'IPA',
|
2008-05-21 17:56:07 +00:00
|
|
|
'Liberation',
|
|
|
|
'Lucida',
|
2010-03-03 20:43:08 +00:00
|
|
|
'MgOpen',
|
2007-08-15 14:36:00 +00:00
|
|
|
'mplus',
|
2007-08-12 19:29:43 +00:00
|
|
|
'OFL',
|
2010-03-03 20:43:08 +00:00
|
|
|
'PTFL',
|
2018-08-11 09:51:52 +00:00
|
|
|
'Punknova',
|
2007-12-06 12:13:44 +00:00
|
|
|
'STIX',
|
2007-08-15 14:36:00 +00:00
|
|
|
'Utopia',
|
2010-03-03 20:43:08 +00:00
|
|
|
'Wadalab',
|
2007-09-03 17:30:14 +00:00
|
|
|
'XANO',
|
2007-07-31 20:54:22 +00:00
|
|
|
# Others
|
|
|
|
'Redistributable, no modification permitted',
|
|
|
|
'Freely redistributable without restriction',
|
|
|
|
))
|
|
|
|
|
2010-01-25 22:20:10 +00:00
|
|
|
setOption('SystemLibPaths', ('/lib', '/lib64', '/usr/lib', '/usr/lib64'))
|
|
|
|
|
2014-06-25 16:39:23 +00:00
|
|
|
# Add systemd dir to ignored path for UsrLibBinaryException
|
2018-04-16 20:22:54 +00:00
|
|
|
setOption('UsrLibBinaryException', r'^/usr/lib(64)?/(perl|python|ruby|menu|pkgconfig|ocaml|systemd|lib[^/]+\.(so|l?a)$|\.build-id)')
|
2014-06-25 16:39:23 +00:00
|
|
|
|
2009-05-19 19:49:43 +00:00
|
|
|
# Get standard users and groups from the setup package's uidgid file
|
|
|
|
setOption('StandardUsers', [])
|
|
|
|
setOption('StandardGroups', [])
|
|
|
|
setup_pkg = None
|
|
|
|
try:
|
|
|
|
setup_pkg = Pkg.InstalledPkg('setup')
|
|
|
|
except:
|
|
|
|
pass
|
|
|
|
if setup_pkg:
|
2010-03-03 20:43:08 +00:00
|
|
|
users = set()
|
|
|
|
groups = set()
|
|
|
|
uidgid_regex = re.compile(r'^\s*(\S+)\s+(-|\d+)\s+(-|\d+|\(\d+\))\s')
|
2009-05-19 19:49:43 +00:00
|
|
|
for uidgid_file in [x for x in setup_pkg.files() if x.endswith('/uidgid')]:
|
|
|
|
if os.path.exists(uidgid_file):
|
|
|
|
fobj = open(uidgid_file)
|
|
|
|
try:
|
|
|
|
for line in fobj.read().strip().splitlines():
|
|
|
|
res = uidgid_regex.search(line)
|
|
|
|
if res:
|
|
|
|
name = res.group(1)
|
|
|
|
if res.group(2) != '-':
|
2010-03-03 20:43:08 +00:00
|
|
|
users.add(name)
|
|
|
|
if res.group(3) != '-' and not '(' in res.group(3):
|
|
|
|
groups.add(name)
|
2009-05-19 19:49:43 +00:00
|
|
|
del res
|
|
|
|
del line
|
|
|
|
finally:
|
|
|
|
fobj.close()
|
|
|
|
del fobj
|
2010-03-03 20:43:08 +00:00
|
|
|
setOption('StandardUsers', sorted(users))
|
|
|
|
setOption('StandardGroups', sorted(groups))
|
|
|
|
del uidgid_regex, uidgid_file, users, groups
|
2009-05-19 19:49:43 +00:00
|
|
|
del setup_pkg
|
2006-06-29 20:29:40 +00:00
|
|
|
|
|
|
|
# Output filters
|
2010-01-25 22:20:10 +00:00
|
|
|
addFilter("source-or-patch-not-compressed")
|
2006-06-29 20:29:40 +00:00
|
|
|
addFilter("%mklibname")
|
|
|
|
addFilter("no-dependency-on (perl|python)-base")
|
|
|
|
addFilter("no-dependency-on locales-")
|
|
|
|
addFilter("(python|perl5)-naming-policy-not-applied")
|
|
|
|
addFilter("no-(packager-tag|signature)")
|
|
|
|
addFilter("incoherent-version-in-name")
|
|
|
|
addFilter("invalid-build-requires")
|
|
|
|
addFilter("ghost-files-without-postin")
|
|
|
|
addFilter("postin-without-ghost-file-creation")
|
|
|
|
addFilter("no-major-in-name")
|
|
|
|
addFilter("no-provides")
|
|
|
|
addFilter("executable-in-library-package")
|
|
|
|
addFilter("non-versioned-file-in-library-package")
|
|
|
|
addFilter("requires-on-release")
|
|
|
|
addFilter("jar-not-indexed")
|
|
|
|
addFilter("outside-libdir-files")
|
2018-04-18 16:37:02 +00:00
|
|
|
addFilter("-debug(info|source).* no-documentation")
|
2007-09-03 17:30:14 +00:00
|
|
|
addFilter("-debuginfo.* /usr/lib/debug/")
|
2018-04-18 18:38:08 +00:00
|
|
|
addFilter("-debugsource.* /usr/src/debug/")
|
2006-06-29 20:29:40 +00:00
|
|
|
addFilter("non-standard-dir-in-usr libexec")
|
2007-09-03 17:30:14 +00:00
|
|
|
addFilter("^gpg-pubkey:")
|
2007-04-12 20:45:44 +00:00
|
|
|
addFilter(" doc-file-dependency .* /bin/sh$")
|
2007-07-31 20:54:22 +00:00
|
|
|
addFilter("hardcoded-library-path .*/lib/udev(/|$)")
|
2008-10-23 20:14:20 +00:00
|
|
|
addFilter("not-standard-release-extension")
|
2019-07-11 13:45:19 +00:00
|
|
|
addFilter("explicit-lib-dependency (liberation-fonts|libertas-.*-firmware|libvirt$|.*-(java|python|utils)$)")
|
2016-06-14 18:00:16 +00:00
|
|
|
addFilter("explicit-lib-dependency (python-.*lib.*|python2-.*lib.*|python3-.*lib.*)$")
|
2018-09-10 05:17:54 +00:00
|
|
|
addFilter("explicit-lib-dependency libreoffice.*$")
|
2009-01-13 23:24:27 +00:00
|
|
|
addFilter("filename-too-long-for-joliet")
|
2009-01-20 20:44:54 +00:00
|
|
|
addFilter("symlink-should-be-")
|
2017-10-29 16:29:04 +00:00
|
|
|
addFilter(r"dangling-\S*symlink /usr/share/doc/HTML/\S+/common .+/common$")
|
|
|
|
addFilter(r"hidden-file-or-dir .*/man5/\.k5login\.5[^/]+$")
|
|
|
|
addFilter(r"blender.+ (wrong-script-interpreter|non-executable-script) .+/blender/.+\.py.*BPY.*")
|
2010-12-06 17:32:05 +00:00
|
|
|
# Fedora 12 and newer no longer need a buildroot defined, to have the buildroot cleaned at the beginning
|
|
|
|
# of %install, and do not need to define a %clean section unless the default is invalid.
|
|
|
|
addFilter("no-cleaning-of-buildroot")
|
|
|
|
addFilter("no-buildroot-tag")
|
|
|
|
addFilter("no-%clean-section")
|
2011-04-25 01:58:38 +00:00
|
|
|
# Only EL4 needs the files-attr-not-set check, because rpm 4.4 and newer no longer need a %defattr line
|
|
|
|
# (it automatically provides one).
|
|
|
|
addFilter("files-attr-not-set")
|
2018-06-17 18:21:44 +00:00
|
|
|
# Don't bother with the non-ghost-in-run checks, /var/lock and /var/run are
|
|
|
|
# symlinks to /run/lock and /run respectively, and /run is a tmpfs
|
|
|
|
addFilter("non-ghost-in-run")
|
2011-12-15 19:25:38 +00:00
|
|
|
# Someone thought it was a good idea to make .desktop files executable. They were wrong.
|
|
|
|
# Nevertheless, I do not yet control the universe, so we squelch the error here.
|
2017-10-29 16:29:04 +00:00
|
|
|
addFilter(r"script-without-shebang .*\.desktop$")
|
2013-03-06 21:09:55 +00:00
|
|
|
# Some files in /etc/ are not meant to be modified by the sysadmin
|
|
|
|
addFilter("non-conffile-in-etc /etc/rpm/.*$")
|
|
|
|
addFilter("non-conffile-in-etc /etc/rc.d/init.d/.*$")
|
2014-02-10 21:04:28 +00:00
|
|
|
# Fixed in rpm >= 4.7.1
|
|
|
|
addFilter("broken-syntax-in-scriptlet-requires")
|
2014-05-12 19:26:34 +00:00
|
|
|
# Files that are intentionally not supposed to be readable
|
|
|
|
# Contains passwords
|
|
|
|
addFilter("non-readable /etc/ovirt-engine/isouploader.conf")
|
2015-05-29 16:09:59 +00:00
|
|
|
# Ignore webservers which are just broken.
|
2017-10-29 16:29:04 +00:00
|
|
|
addFilter(r"invalid-url .*\.googlecode\.com/.*HTTP Error 404")
|
|
|
|
addFilter(r"invalid-url .*\.jboss\.org/.*HTTP Error 403")
|
|
|
|
addFilter(r"invalid-url .*bitbucket\.org/.*HTTP Error 403")
|
|
|
|
addFilter(r"invalid-url .*github\.com/.*HTTP Error 403")
|
2016-08-26 20:00:01 +00:00
|
|
|
# Don't care about long descriptions on debuginfo packages
|
|
|
|
# They automatically include the package name and are always
|
|
|
|
# quite long.
|
|
|
|
addFilter("-debuginfo.* description-line-too-long")
|
2017-10-29 16:52:00 +00:00
|
|
|
# ignore "common" jargon words
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1424684#c9
|
2019-07-11 13:45:19 +00:00
|
|
|
addFilter(r"spelling-error.* \b(runtime|Runtime|metadata|cryptographic|multi|linux|filesystem|filesystems|backend|backends|userspace|addon|wayland|Wayland|util|utils|lossless|virtualization|toolkits|libvirtd|crypto|glyphs|GStreamer|http|extensibility|codec|codecs|truetype|scalable|pluggable|pixbuf|Kerberos|customizable|bitstream|tcp|libXss|libs|libc|encodings|GLib|udev|posix|libpng|glapi|gbm|freedesktop|spi|realtime|preprocessor|libaudit|hypervisor|embeddable|distributable|devel|config|cairo|bootloader|adaptors|pragma|passphrase|malloc|libvirt|libmagic|io|datetime|boolean|argparse|py|pinentry|namespace|middleware|lowlevel|libxcb|libudev|libsoup|libgcrypt|libcom|iSCSI|initramfs|GObject|executables|dialogs|checkpolicy|bitmapped|assistive|btrfs|crypttab|defrag|dracut|hostname|luks|mountpoints|netdev|rpmnew|rpmsave|storaged|tss|unlocker)\b")
|
2018-04-17 20:17:35 +00:00
|
|
|
# Fedora no longer uses explicit ldconfig %post/%postun as of Fedora 28
|
|
|
|
addFilter("library-without-ldconfig-postin")
|
|
|
|
addFilter("library-without-ldconfig-postun")
|
2018-12-07 17:10:37 +00:00
|
|
|
# Ignore 700 dir perms here
|
|
|
|
addFilter("non-standard-dir-perm /etc/.* 700")
|
|
|
|
addFilter("non-standard-dir-perm /var/lib/.* 700")
|
2019-01-16 14:13:27 +00:00
|
|
|
# Fedora no longer requires install-info scriptlets
|
|
|
|
addFilter("info-files-without-install-info-postin")
|
|
|
|
addFilter("info-files-without-install-info-postun")
|
2020-04-29 01:24:35 +00:00
|
|
|
addFilter("postin-without-install-info")
|
2020-08-21 13:07:34 +00:00
|
|
|
# pip 20.2 generates PEP 376 "REQUESTED" marker (empty)
|
|
|
|
addFilter(r"zero-length .+/site-packages/.+\.dist-info/REQUESTED\b")
|
2021-01-25 14:05:32 +00:00
|
|
|
# py.typed files are empty
|
|
|
|
addFilter(r"zero-length .+/site-packages/.+/py\.typed\b")
|
2021-04-13 08:48:05 +00:00
|
|
|
# specfile-errors are listed twice, once with reason and once without
|
|
|
|
# we filter out the empty ones
|
|
|
|
addFilter(r"\.(src|spec): (E|W): specfile-error\s+$")
|
2011-12-15 19:25:38 +00:00
|
|
|
|
2015-09-25 17:51:08 +00:00
|
|
|
bad_crypto_warning = \
|
|
|
|
'''This application package calls a function to explicitly set crypto ciphers
|
|
|
|
for SSL/TLS. That may cause the application not to use the system-wide set
|
|
|
|
cryptographic policy and should be modified in accordance to:
|
|
|
|
https://fedoraproject.org/wiki/Packaging:CryptoPolicies'''
|
|
|
|
|
|
|
|
call_blacklist = {'crypto-policy-non-compliance-openssl' :
|
|
|
|
{'f_name' : 'SSL_CTX_set_cipher_list',
|
2017-10-29 16:29:04 +00:00
|
|
|
'good_param' : 'PROFILE=SYSTEM',
|
2015-09-25 17:51:08 +00:00
|
|
|
'description' : bad_crypto_warning},
|
|
|
|
'crypto-policy-non-compliance-gnutls-1' :
|
|
|
|
{'f_name' : 'gnutls_priority_set_direct',
|
|
|
|
'description' : bad_crypto_warning},
|
|
|
|
'crypto-policy-non-compliance-gnutls-2' :
|
|
|
|
{'f_name' : 'gnutls_priority_init',
|
2019-05-28 11:35:51 +00:00
|
|
|
'good_param' : 'SYSTEM',
|
2015-09-25 17:51:08 +00:00
|
|
|
'description' : bad_crypto_warning}
|
|
|
|
}
|
|
|
|
setOption("WarnOnFunction", call_blacklist)
|
|
|
|
|
2010-11-01 21:20:23 +00:00
|
|
|
# https://bugzilla.redhat.com/496737, https://bugzilla.redhat.com/646455
|
|
|
|
for pkg, exe in (("coreutils", "/bin/su"),
|
|
|
|
("krb5-workstation", "/usr/kerberos/bin/ksu"),
|
|
|
|
("passwd", "/usr/bin/passwd"),
|
|
|
|
("sudo", "/usr/bin/sudo(edit)?"),
|
|
|
|
("upstart", "/sbin/initctl"),
|
|
|
|
("usermode", "/usr/sbin/userhelper")):
|
|
|
|
addFilter("%s.* (setuid-binary|non-standard-executable-perm) %s (root )?04"
|
|
|
|
% (pkg, exe))
|