Class List Method List File List

# Module: Yast::SecurityWidgetsInclude

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

## Instance Method Summary (collapse)

- - (Object) initialize_security_widgets(include_target)

## Instance Method Details

### - (`Object`) initialize_security_widgets(include_target)

    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
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    # File '../../src/include/security/widgets.rb', line 83

    def initialize_security_widgets(include_target)
      textdomain "security"

      # All widgets are here
      @WIDGETS =
        #     "" : $[
        # 	"Widget" : "",
        # 	/* Widget label * /
        # 	"Label" : _(""),
        # 	/* Widget values * /
        # 	"Options" : [["",_("")]],
        # 	"Value" : ""
        #     ],
        {
          "CONSOLE_SHUTDOWN"             => {
            "Widget"  => "ComboBox",
            # ComboBox label
            "Label"   => _(
              "&Interpretation of Ctrl + Alt + Del"
            ),
            "Options" => [
              # ComboBox value
              ["ignore", _("Ignore")],
              # ComboBox value
              ["reboot", _("Reboot")],
              # ComboBox value
              ["halt", _("Halt")]
            ],
            "Value"   => "reboot"
          },
          "CWD_IN_ROOT_PATH"             => {
            "Widget" => "CheckBox",
            # CheckBox label
            "Label"  => _("&Current Directory in root's Path"),
            "Value"  => "yes"
          },
          "CWD_IN_USER_PATH"             => {
            "Widget" => "CheckBox",
            # CheckBox label
            "Label"  => _(
              "Curr&ent Directory in Path of Regular Users"
            ),
            "Value"  => "yes"
          },
          "DISPLAYMANAGER_REMOTE_ACCESS" => {
            "Widget" => "CheckBox",
            # CheckBox label
            "Label"  => _("Allow Remote &Graphical Login"),
            "Value"  => "no"
          },
          "kernel.sysrq"                 => {
            "Widget"   => "ComboBox",
            # CheckBox label
            "Label"    => _("&Magic SysRq Keys"),
            "Options"  => [
              # ComboBox value
              ["0", _("Disable")],
              # ComboBox value
              ["1", _("Enable All Functions")]
            ],
            "Editable" => "yes"
          },
          "FAIL_DELAY"                   => {
            "Widget" => "IntField",
            # IntField label
            "Label"  => _(
              "&Delay after Incorrect Login Attempt"
            ),
            "Value"  => "3"
          },
          "GID_MAX"                      => {
            "Widget" => "IntField",
            # IntField label
            "Label"  => _("Maxim&um"),
            "Value"  => "60000"
          },
          "GID_MIN"                      => {
            "Widget" => "IntField",
            # IntField label
            "Label"  => _("M&inimum"),
            "Value"  => "101"
          },
          "DISPLAYMANAGER_SHUTDOWN"      => {
            "Widget"  => "ComboBox",
            # ComboBox label
            "Label"   => _(
              "&Shutdown Behaviour of KDM Login Manager:"
            ),
            "Options" => [
              # ComboBox value
              ["root", _("Only root")],
              # ComboBox value
              ["all", _("All Users")],
              # ComboBox value
              ["none", _("Nobody")],
              # ComboBox value
              #	    ["local",_("Local Users")],
              # ComboBox value
              ["auto", _("Automatic")]
            ],
            "Value"   => "all"
          },
          "HIBERNATE_SYSTEM"             => {
            "Widget"  => "ComboBox",
            # ComboBox label
            "Label"   => _("System Hybernation"),
            "Options" => [
              # ComboBox value
              ["active_console", _("User on the active console")],
              # ComboBox value
              ["anyone", _("Anyone can hibernate")],
              # ComboBox value
              ["auth_admin", _("Authentication always required")]
            ],
            "Value"   => "active_console"
          },
          "PASSWD_ENCRYPTION"            => {
            "Widget"  => "ComboBox",
            # ComboBox label
            "Label"   => _("P&assword Encryption Method"),
            # ComboBox values
            "Options" => [
              ["des", "DES"],
              ["md5", "MD5"],
              ["sha256", "SHA-256"],
              ["sha512", "SHA-512"]
            ],
            "Value"   => "des",
            "Notify"  => "yes"
          },
          "PASSWD_USE_CRACKLIB"          => {
            "Widget" => "CheckBox",
            # CheckBox label
            "Label"  => _("&Check New Passwords"),
            "Notify" => "yes",
            "Value"  => "yes"
          },
          "PASS_MAX_DAYS"                => {
            "Widget" => "IntField",
            # IntField label
            "Label"  => _("Maxim&um"),
            "Value"  => "99999"
          },
          "PASSWD_REMEMBER_HISTORY"      => {
            "Widget"   => "IntField",
            # IntField label
            "Label"    => _("Numb&er of Passwords to Remember"),
            "MinValue" => 0,
            "MaxValue" => 400
          },
          "PASS_MIN_DAYS"                => {
            "Widget" => "IntField",
            # IntField label
            "Label"  => _("M&inimum"),
            "Value"  => "0"
          },
          "PASS_MIN_LEN"                 => {
            "Widget" => "IntField",
            # IntField label
            "Label"  => _(
              "&Minimum Acceptable Password Length"
            ),
            "Value"  => "5"
          },
          "PASS_WARN_AGE"                => {
            "Widget" => "IntField",
            # IntField label
            "Label"  => _(
              "&Days before Password Expires Warning"
            ),
            "Value"  => "7"
          },
          "PERMISSION_SECURITY"          => {
            "Widget"  => "ComboBox",
            # ComboBox label
            "Label"   => _("&File Permissions"),
            "Options" => [
              # ComboBox value
              ["easy", _("Easy")],
              # ComboBox value
              ["secure", _("Secure")],
              # ComboBox value
              ["paranoid", _("Paranoid")]
            ],
            "Value"   => "secure"
          },
          "RUN_UPDATEDB_AS"              => {
            "Widget"  => "ComboBox",
            # ComboBox label
            "Label"   => _("&User Launching updatedb"),
            "Options" => ["nobody", "root"],
            "Value"   => "nobody"
          },
          "UID_MAX"                      => {
            "Widget" => "IntField",
            # IntField label
            "Label"  => _("Ma&ximum"),
            "Value"  => "60000"
          },
          "UID_MIN"                      => {
            "Widget" => "IntField",
            # IntField label
            "Label"  => _("&Minimum"),
            "Value"  => "100"
          }
        }

      # EOF
    end