Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3599

ERROR log message error: UNTRUSTED: State directory /var/cfengine (mode XYZ) was not private! is confusing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: 3.12.6, 3.15.3, 3.18.0
    • Fix Version/s: 3.12.7, 3.15.4, 3.18.0
    • Component/s: cf-agent, Logging
    • Labels:
      None

      Description

      An error message about untrusted directory is misleading. It says state directory, and then points to workdir.

      #ifndef __MINGW32__
              if (statbuf.st_mode & 022)
              {
                  Log(LOG_LEVEL_ERR, "UNTRUSTED: State directory %s (mode %jo) was not private!", workdir,
                        (uintmax_t)(statbuf.st_mode & 0777));
              }
      

      Should it say "UNTRUSTED: Working directory" or should "statedir" be passed instead of "workdir"?

        Attachments

          Activity

            People

            • Assignee:
              a10042 Nick Anderson
              Reporter:
              a10042 Nick Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel