code: def pkg_security(pkgs):
      
      security_packages = Utils().read_file("/etc/slpkg/pkg_security")
      packages = []
      for read in security_packages.splitlines():
          read = read.lstrip()
          if not read.startswith("#"):
              packages.append(read.replace("\n", ""))
      for p in pkgs:
          for pkg in packages:
              if p == pkg:
                  Msg().security_pkg(p)
                  if not Msg().answer() in ["y", "Y"]:
                      raise SystemExit()
docs: Check packages before install or upgrade for security
      reasons. Configuration file in the /etc/slpkg/pkg_security