Red Hat Bugzilla – Bug 1377847
strace: Mode not shown for O_TMPFILE
Last modified: 2017-08-01 18:03:54 EDT
+++ This bug was initially created as a clone of Bug #1377846 +++ I get this: open("/tmp", O_RDWR|O_EXCL|O_DIRECTORY|O_TMPFILE) = 3 openat(AT_FDCWD, "/tmp", O_RDWR|O_EXCL|O_DIRECTORY|O_TMPFILE) = 3 O_TMPFILE reqires the mode argument (just like O_CREAT), so strace should show it as well. Seen with strace-4.13-1.fc24.x86_64.
Seems not resolved. O_TMPFILE flag is not declared on RHEL7.4 and __O_TMPFILE flag does not work correctly. RHEL 7.4: strace-4.12-1.el7 kernel-3.10.0-595.el7 kernel-4.5.0-15.2.1.el7.aarch64 O_TMPFILE flag undeclared; strace log for __O_TMPFILE flag: open("/tmp", O_WRONLY|O_DIRECTORY|0x400000) = -1 EISDIR (Is a directory) openat(AT_FDCWD, "/tmp", O_WRONLY|O_DIRECTORY|0x400000) = 3 RHEL 7.4 with Pegas kernel: 4.5.0-15.2.1.el7.aarch64 --> kernel-4.10.0-4.el7.aarch64 3.10.0-595.el7 --> kernel-4.10.0-4.el7 (ppc64le;x86_64;s390x) strace log for __O_TMPFILE flag: open("/tmp", O_WRONLY|O_DIRECTORY|0x400000) = 3 openat(AT_FDCWD, "/tmp", O_WRONLY|O_DIRECTORY|0x400000) = 3 Fedora 25: strace-4.14-1.fc25.armv7hl kernel-4.8.6-300.fc25.armv7hl strace-4.16-1.fc25 kernel-4.9.14-200.fc25 (i386;x86_64;ppc64;ppc64le;aarch64) O_TMPFILE flag declared; strace log: open("/tmp", O_WRONLY|O_DIRECTORY|O_TMPFILE, 0700) = 3 openat(AT_FDCWD, "/tmp", O_WRONLY|O_DIRECTORY|O_TMPFILE, 0700) = 3 Please review. Thanks
Reproduced against strace-4.8-11.el7 and verified against strace-4.12-3.el7 with kernel-3.10.0-637.el7, kernel-4.5.0-15.2.1.el7.aarch64.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:2018