Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1377847 - strace: Mode not shown for O_TMPFILE
strace: Mode not shown for O_TMPFILE
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: strace (Show other bugs)
7.3
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: DJ Delorie
Michal Kolar
Vladimír Slávik
:
Depends On: 1377846 1436879
Blocks: 1390370 1381083
  Show dependency treegraph
 
Reported: 2016-09-20 14:29 EDT by Florian Weimer
Modified: 2017-08-01 18:03 EDT (History)
12 users (show)

See Also:
Fixed In Version: strace-4.12-3.el7
Doc Type: Bug Fix
Doc Text:
*strace* displays correctly the `O_TMPFILE` flag and mode for `open()` function Previously, the *strace* utility did not recognize existence of the `O_TMPFILE` flag for the system function `open()` and its requirement for presence of mode option. As a consequence, the *strace* output did not show name of the respective flag and lacked the mode option value. The *strace* utility has been extended to recognize this situation. As a result, the `O_TMPFILE` flag and mode are displayed correctly.
Story Points: ---
Clone Of: 1377846
Environment:
Last Closed: 2017-08-01 18:03:54 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2018 normal SHIPPED_LIVE strace bug fix update 2017-08-01 15:30:28 EDT

  None (edit)
Description Florian Weimer 2016-09-20 14:29:04 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.
Comment 6 Michal Kolar 2017-03-23 10:00:34 EDT
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
Comment 14 Michal Kolar 2017-04-18 07:27:19 EDT
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.
Comment 21 errata-xmlrpc 2017-08-01 18:03:54 EDT
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

Note You need to log in before you can comment on or make changes to this bug.