# This line is mandatory to access the configuration functions
from Config import *
setBadness('dbus-file-unauthorized', 0)
    setBadness('suse-other-error','20')
setBadness      ('suse-other-error-123','200')
# # Output filters
addFilter(r"arch-independent-package-contains-binary-or-object ")
addFilter('.*arch-independent-package-contains-binary-or-object.*/boot/vc/.*.elf')
addFilter("class-path-in-manifest")
addFilter("deprecated-grep")
addFilter(".*desktopfile-without-binary.*")
addFilter("desktopfile-without-binary")
addFilter('devel-dependency')
addFilter('devel-dependency python-devel')
addFilter('devel-dependency python2-devel')
# These are binaries not executed on the CPU but on the graphics card
addFilter('devel-dependency python3-devel')
addFilter("devel-file-in-non-devel-package")
addFilter("devel-file-in-non-devel-package .*/clang/.*/include/.*")
addFilter("devel-file-in-non-devel-package .*/clang/.*/lib/.*")
addFilter('devel-file-in-non-devel-package .*/commands/src/compiler.c')
addFilter('devel-file-in-non-devel-package .*/Cython/.*')
addFilter("devel-file-in-non-devel-package .*/lib.*/*.a")
addFilter("devel-file-in-non-devel-package .*/lib.*/*.so")
addFilter("devel-file-in-non-devel-package .*/site-packages/cffi/_cffi_include.h")
addFilter("devel-file-in-non-devel-package .*/site-packages/cffi/_embedding.h")
addFilter("devel-file-in-non-devel-package .*/site-packages/cffi/parse_c_type.h")
addFilter('devel-file-in-non-devel-package .*/tests/.*')
addFilter(".*no-manual-page-for-binary.*")
addFilter("devel-file-in-non-devel-package .*/usr/include/.*")
addFilter("devel-file-in-non-devel-package .* /usr/lib.*/liblftp-.*.so")
addFilter('devel-file-in-non-devel-package .*/wcs/.*')
addFilter('doc-file-dependency')
addFilter("doc-file-dependency .*")
addFilter("doc-file-dependency .*\.py ")
addFilter("doc-file-dependency .*\.py ")
addFilter("E: devel-file-in-non-devel-package .*site-packages.*fake_libc_include.*")
addFilter("E: devel-file-in-non-devel-package")
addFilter("E: shlib-policy-name-error")
addFilter("executable-stack")
addFilter("explicit-lib-dependency")
addFilter("explicit-lib-dependency libgobject-2_0-0")
addFilter("explicit-lib-dependency .*libmpv1")
addFilter("explicit-lib-dependency libqt5_sql_backend")
addFilter("explicit-lib-dependency .*-tblib")
addFilter("file-contains-date-and-time")
addFilter("files-duplicate.*/usr/share/doc/packages")
addFilter("hidden-file-or-dir")
addFilter("hidden-file-or-dir /usr/lib/python.*/site-packages/tldextract/.tld_set_snapshot")
addFilter("incoherent-init-script-name quasselcore")
addFilter("incoherent-init-script-name raw")
addFilter("incoherent-logrotate-file /etc/logrotate.d/quasselcore")
addFilter("incorrect-fsf-address")
addFilter("init-script-without-%restart_on_update-postun /etc/init.d/raw")
addFilter("init-script-without-%stop_on_removal-preun /etc/init.d/raw")
addFilter("libguilereadline.* devel-file-in-non-devel-package")
addFilter("incoherent-init-script-name quasselcore")
addFilter("libvlccore.* shared-lib-calls-exit")
addFilter("missing-PT_GNU_STACK-section")
addFilter("name-repeated-in-summary")
addFilter("net-snmp-devel.* files-duplicate.*man.*")
addFilter("net-snmp.*incoherent-init-script-name")
addFilter("no-binary")
addFilter("no-dependency-on libffmpeg.*")
addFilter(".*no-manual-page-for-binary.*")
# /usr/local/bin/dib-python interpreter is only used inside
# the generated image so it's not something that affects the
# host or the package itself.
addFilter("no-manual-page-for-binary")
addFilter(".* no-manual-page-for-binary mitm.*")
addFilter(".* no-manual-page-for-binary path.*")
addFilter("no-manual-page-for-binary rst.*")
addFilter("no-manual-page-for-binary .*subunit.*")
addFilter("non-conffile-in-etc /etc/rpm/macros.python3")
addFilter("non-conffile-in-etc /etc/sysconfig/SuSEfirewall2.d/services/quassel")
addFilter("non-etc-or-var-file-marked-as-conffile")
addFilter('non-executable-script')
addFilter("non-executable-script")
addFilter("non-executable-script.*/usr/lib/python.*/site-packages/ansible/(cli|galaxy|module_utils|plugins/action|runner|utils)/.*.py");
addFilter("non-executable-script.*/usr/lib/python.*/site-packages/ansible/modules/.*");
addFilter(".*non-executable-script.*/usr/lib/python2.7/site-packages/diskimage_builder/lib/.*")
addFilter("non-standard-uid /var/lib/quasselcore quasslecore")
addFilter("non-standard-uid /var/log/quassel quasslecore")
addFilter("no-reload-entry /etc/init.d/raw")
addFilter(".*obsolete-not-provided.*")
addFilter("pem-certificate")
addFilter("pem-certificate .*/site-packages/distributed/tests/.*\.pem")
addFilter("perl.* devel-file-in-non-devel-package")
addFilter("perl-SNMP.* zero-length.*\.bs")
addFilter("python-naming-policy-not-applied")
addFilter("pyzmq-devel.*: W: no-dependency-on python\(abi\)")
addFilter('ratbagd.* dbus-file-unauthorized.*')
addFilter("script-without-shebang")
addFilter("shlib-fixed-dependency")
addFilter("strict-aliasing-punning")
addFilter("unstripped-binary-or-object")
addFilter ("W: devel-file-in-non-devel-package")
addFilter("W: files-attr-not-set")
addFilter(".*W:.*files-duplicate.*/pam/su.*/pam.d/su-l.*")
addFilter("W: files-duplicate /usr/share/x11vnc/classes/index.vnc /usr/share/x11vnc/classes/ssl/index.vnc")
addFilter("W: hidden-file-or-dir /usr/lib/python3.*/site-packages/openlp/.version")
addFilter("W: no-binary");
addFilter("W: obsolete-suse-version-check.*")
addFilter("W: patch-not-applied Patch5: x11vnc-thread-auth.diff")
addFilter(".*W:.*permissions-symlink.*/bin/mount.*")
addFilter(".*W:.*permissions-symlink.*/bin/su.*")
addFilter(".*W:.*permissions-symlink.*/bin/umount.*")
addFilter("W: python-naming-policy-not-applied .*")
addFilter("W: python-naming-policy-not-applied")
addFilter("wrong-file-end-of-line-encoding")
addFilter("wrong-file-end-of-line-encoding /usr/share/doc/packages/antlr-manual/examples/")
addFilter(".*wrong-script-interpreter.*/usr/lib/python2.7/site-packages/diskimage_builder/elements/.*")
addFilter("W: shlib-policy-missing-suffix")
addFilter("W: suse-branding-unversioned-requires")
addFilter(".*ZEO/tests/.*pem$")
addFilter("zero-length /usr/lib64/python3.3/test/namespace_pkgs/module_and_namespace_package/a_test/empty")
addFilter("zero-length /usr/lib64/python3.3/test/nullcert.pem")
addFilter("zero-length /usr/share/doc/packages/antlr-manual/examples/csharp/csharp_v1/testfiles/Empty.cs")
addFilter("zero-length /usr/share/doc/packages/python-alembic-doc/html/_static/site_custom_css.css")
addFilter("zlib-devel.*: W: no-dependency-on zlib*/zlib-libs/libzlib")
addFilter("zlib.src.*: W: make-check-outside-check-section time make check")
# These are binaries not executed on the CPU but on the graphics card
addFilter('.*arch-independent-package-contains-binary-or-object.*/boot/vc/.*.elf')
# These are binaries not executed on the CPU but on the graphics card
addFilter('.*arch-independent-package-contains-binary-or-object.*/boot/vc/.*.elf')

import os
import time

print(time.time())
print(os.geteuid())
print("I can do anyting as the above user")
