Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-64490

Not possible to disable statx syscalls

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Out of scope
    • Affects Version/s: 5.10.0 Beta 4
    • Fix Version/s: None
    • Component/s: Core: I/O
    • Labels:
      None
    • Environment:
      Linux 4.13.11, glibc 2.26, systemd 235
    • Commits:
      8eb3944dac81b8c51d7bac7784204d457551b50c

      Description

      Even if one passes -no-feature-statx, the code in https://github.com/qt/qtbase/blob/5.10/src/corelib/io/qfilesystemengine_unix.cpp#L98 makes Qt use the statx syscall whenever the kernel of the system it's being built on supports it. This causes serious issues: for instance, in systemd 235 there is a whitelist for allowed syscalls in containers and syscalls not known by libseccomp (such as statx) are blocked. This makes it impossible to build Qt (or most Qt applications) in a systemd container with systemd 235 and kernel >=4.11.

       This can also potentially cause issues when trying to run Qt libraries compiled on a system with kernel >=4.11 on another system with an older kernel (such as the current LTS series)

       

       

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-64490
          # Subject Branch Project Status CR V

            Activity

              People

              • Assignee:
                thiago Thiago Macieira
                Reporter:
                arojas Antonio Rojas
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes