search for: at_empty_path

Displaying 5 results from an estimated 5 matches for "at_empty_path".

2017 Nov 09
10
Experiment on how to improve our temporary file handing.
...e the temporary file so that there was no way to accidentally leave it behind. On linux there is O_TMPFILE, which allows us to create a file with no name in the file system. A name can be given with linkat. Unfortunately we can't use linkat(fd, "", AT_FDCWD, "destination", AT_EMPTY_PATH) Without special permissions and have instead to depend on proc: linkat(AT_FDCWD, "/proc/self/fd/<num>", AT_FDCWD, "destination", AT_SYMLINK_FOLLOW) Another annoyance is that linkat will not replace the destination and renameat2 doesn't support AT_EMPTY_PATH....
2024 Jun 07
1
missing msdfs referrals from samba directory listing: wrong order in smbd_dirptr_get_entry()?
07.06.2024 07:59, Michael Tokarev wrote: > 07.06.2024 07:54, Jeremy Allison wrote: >>> msdfs is broken in 4.19.? It worked fine in 4.18. > > This is not entirely true. Nope. Things are more interesting than that. I've a 4.19 installation where msdfs links works both in listing and when specified directly. There are 2 other installations of 4.19 where msdfs links
2023 May 30
1
O_PATH, FreeBSD & acl_xx_fd
...criptor by specifying it as the fd argument to > openat() with empty path and flag O_EMPTY_PATH. Such an open behaves as > if the current path of the file referenced by fd is passed, except that > the path walk permissions are not checked. See also the description of > AT_EMPTY_PATH flag for fstatat(2) and related syscalls. Hmm? I?ll have to test it. Yes, this seems to work - after this I can read & write ACLs and stuff: fd = openat(fd, ??, O_EMPTY_PATH); - Peter > On 30 May 2023, at 19:20, Jeremy Allison <jra at samba.org> wrote: > > On Tue, May 30...
2023 May 30
1
O_PATH, FreeBSD & acl_xx_fd
On Tue, May 30, 2023 at 09:57:37AM +0200, Peter Eriksson via samba wrote: >I?ve been looking at an issue when compiling Samba on FreeBSD 13 with the vfs_zfsacl module. > >It seems the logic that detect O_PATH support in Samba doesn?t work right with FreeBSD 13 (since it has implemented O_PATH support) and especially with the acl_get_fd() function. This is a bug (or rather a missing
2012 Jun 17
3
Possible bug, dom0 crash on ubuntu
When booting a recently compiled Xen 4.2 on Ubuntu 12.04, dom0 crashes. I''ve included a serial console log below. I''ve used: Xen 4.2 unstable rev. 25483, compiled on the same machine. I had to apply the AT_EMPTY_PATH patch from http://lists.gnu.org/archive/html/qemu-devel/2012-02/msg03460.html to get it to compile. Linux 3.2.0-25, which is the default kernel in Ubuntu''s repository right now. Ubuntu 12.04 Precise Booting with the default Xen 4.1 from the Ubuntu repositories works. Using the kernel fro...