Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-23628

confusing error message "Got error 1 from setreuid()"

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.4(EOL), 10.5
    • 10.5
    • Plugin - pam
    • None
    • Linux

    Description

      Customer is getting the error in their log file, but it doesn't have additional information or typical error format.

      The error:
      Got error 1 from setreuid()

      Could be clarified for example:
      2020-07-07 10:32:14 0 [ERROR] Got error 1 from setreuid(). Is auth_pam_tool installed suid root?

      Attachments

        Activity

          mschorm Michal Schorm added a comment -

          That must be coming from this line:
          https://github.com/MariaDB/server/blob/10.5/plugin/auth_pam/auth_pam_tool.c#L75

          There are several possible errors generated by the setreuid() call:
          https://man7.org/linux/man-pages/man2/setreuid.2.html#ERRORS

          Telling which error it was might make it easier to debug.

          Though most common will IMO be the permissions issue.

          mschorm Michal Schorm added a comment - That must be coming from this line: https://github.com/MariaDB/server/blob/10.5/plugin/auth_pam/auth_pam_tool.c#L75 There are several possible errors generated by the setreuid() call: https://man7.org/linux/man-pages/man2/setreuid.2.html#ERRORS Telling which error it was might make it easier to debug. Though most common will IMO be the permissions issue.

          People

            holyfoot Alexey Botchkov
            mpflaum Maria M Pflaum (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.