Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-104974

"Ensure the authselect custom profile is selected" selects blank profile when not using sudo for the selection

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • None
    • scap-security-guide
    • No
    • Low
    • rhel-security-compliance
    • None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      During Ansible remediation using an Ansible user that requires sudo the rule as written will select a blank profile that will persist until manually fixed or rolled back.

      The remediation generated is;

      - name: Set number of Password Hashing Rounds - password-auth - Ensure the authselect custom profile is selected
        ansible.builtin.command:
          cmd: authselect select {{ authselect_custom_profile }}
        register: result_pam_authselect_select_profile
        when:
          - result_authselect_check_cmd is success
          - result_authselect_profile is not skipped
          - authselect_current_profile is not match("custom/")
          - authselect_custom_profile is not match(authselect_current_profile)
      

      Without the `with-sudo` option added to the `authselect select` command a blank profile is selected, rather than the current profile in use and this needs to be manually corrected or rolled back after the run.

              vpolasek@redhat.com Vojtech Polasek
              rhn-support-pdudley Paul Dudley
              Vojtech Polasek Vojtech Polasek
              SSG Security QE SSG Security QE
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: