Date: Fri, 09 Aug 2024 17:55:36 +0000 From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 275295] Linuxulator: faccessat2 unsupported flag 0x100 Message-ID: <bug-275295-4077-RgXc2TpFOR@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-275295-4077@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275295 Fernando ApesteguĂa <fernape@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fernape@FreeBSD.org --- Comment #7 from Fernando ApesteguĂa <fernape@FreeBSD.org> --- Created attachment 252634 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=252634&action=edit Patch to support AT_SYMLINK_NOFOLLOW in faccess(2) I gave this a try and came up with this patch. It adds support for AT_SYMLINK_NOFOLLOW in faccessat(2) and it removes the restriction in linux_faccessat2. I didn't test the linuxolator part though. Would you test it? You don't need to build world, that is only to update a couple of manual pages. I tested this with access_test.c and the following files: ~/test$ ls -l file link_to_file --w------- 1 fernape fernape 0 Jul 29 19:23 file lrwxr-xr-x 1 fernape fernape 4 Jul 29 19:23 link_to_file@ -> file ~/test$ ./a.out file link_to_file accessat: Permission denied accessat: Permission denied With AT_SYMLINK_NOFOLLOW: accessat: Permission denied link is accessible -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275295-4077-RgXc2TpFOR>
