Class List Method List File List

# Module: Yast::SecurityLevelsInclude

Defined in:
  ../../src/include/security/levels.rb

## Instance Method Summary (collapse)

- - (Object) initialize_security_levels(include_target)

## Instance Method Details

### - (`Object`) initialize_security_levels(include_target)

    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    # File '../../src/include/security/levels.rb', line 45

    def initialize_security_levels(include_target)
      textdomain "security"

      # Level names definitions
      @LevelsNames = {
        # level name
        "Level1" => _("Home Workstation"),
        # level name
        "Level2" => _("Networked Workstation"),
        # level name
        "Level3" => _("Network Server")
      }

      @LevelsLabels = {
        # RadioButton label
        "Level1" => _("&Home Workstation"),
        # RadioButton label
        "Level2" => _("N&etworked Workstation"),
        # RadioButton label
        "Level3" => _("Network &Server")
      }

      # Levels definitions
      @Levels =
        # end of Levels
        {
          "Level1" => {
            "CONSOLE_SHUTDOWN"                          => "reboot",
            "CRACKLIB_DICT_PATH"                        => "/usr/lib/cracklib_dict",
            "CWD_IN_ROOT_PATH"                          => "no",
            "CWD_IN_USER_PATH"                          => "no",
            "DISPLAYMANAGER_REMOTE_ACCESS"              => "no",
            "kernel.sysrq"                              => "1",
            "FAIL_DELAY"                                => "1",
            "GID_MAX"                                   => "60000",
            "GID_MIN"                                   => "1000",
            "DISPLAYMANAGER_SHUTDOWN"                   => "all",
            "HIBERNATE_SYSTEM"                          => "active_console",
            "PASSWD_ENCRYPTION"                         => "sha512",
            "PASSWD_USE_CRACKLIB"                       => "yes",
            "PASS_MAX_DAYS"                             => "99999",
            "PASS_MIN_DAYS"                             => "0",
            "PASS_MIN_LEN"                              => "5",
            "PASS_WARN_AGE"                             => "7",
            "PERMISSION_SECURITY"                       => "easy",
            "RUN_UPDATEDB_AS"                           => "nobody",
            "UID_MAX"                                   => "60000",
            "UID_MIN"                                   => "1000",
            "SYS_UID_MAX"                               => "499",
            "SYS_UID_MIN"                               => "100",
            "SYS_GID_MAX"                               => "499",
            "SYS_GID_MIN"                               => "100",
            "USERADD_CMD"                               => "/usr/sbin/useradd.local",
            "USERDEL_PRECMD"                            => "/usr/sbin/userdel-pre.local",
            "USERDEL_POSTCMD"                           => "/usr/sbin/userdel-post.local",
            "PASSWD_REMEMBER_HISTORY"                   => "0",
            "SYSTOHC"                                   => "yes",
            "SYSLOG_ON_NO_ERROR"                        => "yes",
            "DISPLAYMANAGER_ROOT_LOGIN_REMOTE"          => "no",
            "DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN" => "no",
            "SMTPD_LISTEN_REMOTE"                       => "no",
            "DISABLE_STOP_ON_REMOVAL"                   => "no",
            "DISABLE_RESTART_ON_UPDATE"                 => "no",
            "net.ipv4.tcp_syncookies"                   => "1",
            "net.ipv4.ip_forward"                       => "0",
            "net.ipv6.conf.all.forwarding"              => "0"
          },
          "Level2" => {
            "CONSOLE_SHUTDOWN"                          => "ignore",
            "CRACKLIB_DICT_PATH"                        => "/usr/lib/cracklib_dict",
            "CWD_IN_ROOT_PATH"                          => "no",
            "CWD_IN_USER_PATH"                          => "no",
            "DISPLAYMANAGER_REMOTE_ACCESS"              => "no",
            "kernel.sysrq"                              => "0",
            "FAIL_DELAY"                                => "6",
            "GID_MAX"                                   => "60000",
            "GID_MIN"                                   => "1000",
            "DISPLAYMANAGER_SHUTDOWN"                   => "root",
            "HIBERNATE_SYSTEM"                          => "active_console",
            "PASSWD_ENCRYPTION"                         => "sha512",
            "PASSWD_USE_CRACKLIB"                       => "yes",
            "PASS_MAX_DAYS"                             => "99999",
            "PASS_MIN_DAYS"                             => "1",
            "PASS_MIN_LEN"                              => "5",
            "PASS_WARN_AGE"                             => "14",
            "PERMISSION_SECURITY"                       => "easy",
            "RUN_UPDATEDB_AS"                           => "nobody",
            "UID_MAX"                                   => "60000",
            "UID_MIN"                                   => "1000",
            "SYS_UID_MAX"                               => "499",
            "SYS_UID_MIN"                               => "100",
            "SYS_GID_MAX"                               => "499",
            "SYS_GID_MIN"                               => "100",
            "USERADD_CMD"                               => "/usr/sbin/useradd.local",
            "USERDEL_PRECMD"                            => "/usr/sbin/userdel-pre.local",
            "USERDEL_POSTCMD"                           => "/usr/sbin/userdel-post.local",
            "PASSWD_REMEMBER_HISTORY"                   => "0",
            "SYSTOHC"                                   => "yes",
            "SYSLOG_ON_NO_ERROR"                        => "yes",
            "DISPLAYMANAGER_ROOT_LOGIN_REMOTE"          => "no",
            "DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN" => "no",
            "SMTPD_LISTEN_REMOTE"                       => "no",
            "DISABLE_STOP_ON_REMOVAL"                   => "no",
            "DISABLE_RESTART_ON_UPDATE"                 => "no",
            "net.ipv4.tcp_syncookies"                   => "1",
            "net.ipv4.ip_forward"                       => "0",
            "net.ipv6.conf.all.forwarding"              => "0"
          },
          "Level3" => {
            "CONSOLE_SHUTDOWN"                          => "ignore",
            "CRACKLIB_DICT_PATH"                        => "/usr/lib/cracklib_dict",
            "CWD_IN_ROOT_PATH"                          => "no",
            "CWD_IN_USER_PATH"                          => "no",
            "DISPLAYMANAGER_REMOTE_ACCESS"              => "no",
            "kernel.sysrq"                              => "0",
            "FAIL_DELAY"                                => "3",
            "GID_MAX"                                   => "60000",
            "GID_MIN"                                   => "1000",
            "DISPLAYMANAGER_SHUTDOWN"                   => "root",
            "HIBERNATE_SYSTEM"                          => "active_console",
            "PASSWD_ENCRYPTION"                         => "sha512",
            "PASSWD_USE_CRACKLIB"                       => "yes",
            "PASS_MAX_DAYS"                             => "99999",
            "PASS_MIN_DAYS"                             => "1",
            "PASS_MIN_LEN"                              => "6",
            "PASS_WARN_AGE"                             => "14",
            "PERMISSION_SECURITY"                       => "secure",
            "RUN_UPDATEDB_AS"                           => "nobody",
            "UID_MAX"                                   => "60000",
            "UID_MIN"                                   => "1000",
            "SYS_UID_MAX"                               => "499",
            "SYS_UID_MIN"                               => "100",
            "SYS_GID_MAX"                               => "499",
            "SYS_GID_MIN"                               => "100",
            "USERADD_CMD"                               => "/usr/sbin/useradd.local",
            "USERDEL_PRECMD"                            => "/usr/sbin/userdel-pre.local",
            "USERDEL_POSTCMD"                           => "/usr/sbin/userdel-post.local",
            "PASSWD_REMEMBER_HISTORY"                   => "0",
            "SYSTOHC"                                   => "yes",
            "SYSLOG_ON_NO_ERROR"                        => "yes",
            "DISPLAYMANAGER_ROOT_LOGIN_REMOTE"          => "no",
            "DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN" => "no",
            "SMTPD_LISTEN_REMOTE"                       => "no",
            "DISABLE_STOP_ON_REMOVAL"                   => "no",
            "DISABLE_RESTART_ON_UPDATE"                 => "no",
            "net.ipv4.tcp_syncookies"                   => "1",
            "net.ipv4.ip_forward"                       => "0",
            "net.ipv6.conf.all.forwarding"              => "0"
          }
        }

      # EOF
    end