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

Generated include files installed as mode 0444 instead of 0644

    Details

    • Type: Bug
    • Status: Confirmed
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.1, 10.0, 5.5
    • Fix Version/s: 10.1, 10.0
    • Component/s: Compiling
    • Labels:
      None
    • Environment:
      Gentoo Linux

      Description

      Gentoo bug 554258 says:
      "While the issue is not immediately noticeable since usually all write operations on those files (e.g. stripping) are done as root. However, this is upstream issue that will eventually cause some random failures.

      For example, this will fail if the whole build & install is done as unprivileged user. Or when SELinux (without dac_override) is effective [pointed out by perfinion]."

      include/CMakeLists.txt:

      FOREACH(f ${HEADERS_GEN_CONFIGURE})
        INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${f} DESTINATION ${INSTALL_INCLUDEDIR} COMPONENT Development PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)
      ENDFOREACH(f)
      

      Should be:

      FOREACH(f ${HEADERS_GEN_CONFIGURE})
        INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${f} DESTINATION ${INSTALL_INCLUDEDIR} COMPONENT Development PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
      ENDFOREACH(f)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              There are no comments yet on this issue.

                People

                • Assignee:
                  serg Sergei Golubchik
                  Reporter:
                  grknight Brian Evans
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated: