The following error messages occur when building with gcc on AIX v7.1: ./source3/smbd/open.c: In function 'non_widelink_open': ../source3/smbd/open.c:573:11: error: 'O_NOFOLLOW' undeclared (first use in this function) flags |= O_NOFOLLOW; ^ ../source3/smbd/open.c:573:11: note: each undeclared identifier is reported only once for each function it appears in ../source3/smbd/open.c: In function 'fd_open': ../source3/smbd/open.c:647:12: error: 'O_NOFOLLOW' undeclared (first use in this function) flags |= O_NOFOLLOW; ^
Due to inherent race conditions we are no longer supporting systems that don't have O_NOFOLLOW as they are impossible to secure w.r.t. pathname translation. Does AIX 7.1 have O_NOFOLLOW available ?
I believe AIX does support O_NOFOLLOW. I found the following fix for AIX 7.1 that mentions it. http://www-01.ibm.com/support/docview.wss?uid=isg1IV64988 -----Original Message----- From: samba-bugs@samba.org [mailto:samba-bugs@samba.org] Sent: Tuesday, June 06, 2017 10:58 AM To: Lehman, Timothy (JSC-CD42)[Leidos Innovations Corporation] <timothy.j.lehman@nasa.gov> Subject: [Bug 12822] O_NOFOLLOW undeclared in open.c error when building on AIX with gcc https://bugzilla.samba.org/show_bug.cgi?id=12822 Jeremy Allison <jra@samba.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|samba-qa@samba.org |jra@samba.org Status|NEW |ASSIGNED --- Comment #1 from Jeremy Allison <jra@samba.org> --- Due to inherent race conditions we are no longer supporting systems that don't have O_NOFOLLOW as they are impossible to secure w.r.t. pathname translation. Does AIX 7.1 have O_NOFOLLOW available ? -- You are receiving this mail because: You reported the bug. You are on the CC list for the bug.
So the question is why isn't it being found/used by the configure code ?
O_NOFOLLOW is available with _XOPEN_SOURCE >= 700