From glibc:

int
__libc_openat (int fd, const char *file, int oflag, ...)
{ 
  mode_t mode = 0;
  if (__OPEN_NEEDS_MODE (oflag))
    { 
      va_list arg;
      va_start (arg, oflag);
      mode = va_arg (arg, mode_t);
      va_end (arg);
    }
  
  return SYSCALL_CANCEL (openat, fd, file, oflag, mode);
}

/* Detect if open needs mode as a third argument (or for openat as a fourth
   argument).  */
#ifdef __O_TMPFILE
# define __OPEN_NEEDS_MODE(oflag) \
  (((oflag) & O_CREAT) != 0 || ((oflag) & __O_TMPFILE) == __O_TMPFILE)
#else
# define __OPEN_NEEDS_MODE(oflag) (((oflag) & O_CREAT) != 0)
#endif


So, very likely __OPEN_NEEDS_MODE does not support O_TMPFILE on trusty. So, 
this specific test will always fail on trusty. I wonder if this might cause 
issues in the real world, and, then, justify a glibc update on trusty ESM.

Cascardo.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1785207

Title:
  openat03 in ubuntu_ltp_syscall failed with Trusty

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1785207/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to