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

Not possible to disable statx syscalls

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.10.0 Beta 4
    • Core: I/O
    • None
    • Linux 4.13.11, glibc 2.26, systemd 235
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              thiago Thiago Macieira
              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