freebsd-nq/sys/compat
David Bright 9afb12bab4 Add an shm_rename syscall
Add an atomic shm rename operation, similar in spirit to a file
rename. Atomically unlink an shm from a source path and link it to a
destination path. If an existing shm is linked at the destination
path, unlink it as part of the same atomic operation. The caller needs
the same permissions as shm_unlink to the shm being renamed, and the
same permissions for the shm at the destination which is being
unlinked, if it exists. If those fail, EACCES is returned, as with the
other shm_* syscalls.

truss support is included; audit support will come later.

This commit includes only the implementation; the sysent-generated
bits will come in a follow-on commit.

Submitted by:	Matthew Bryan <matthew.bryan@isilon.com>
Reviewed by:	jilles (earlier revision)
Reviewed by:	brueffer (manpages, earlier revision)
Relnotes:	yes
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D21423
2019-09-26 15:32:28 +00:00
..
cloudabi [2/3] Add an initial seal argument to kern_shm_open() 2019-09-25 17:35:03 +00:00
cloudabi32 makesyscalls.sh: always use absolute path for syscalls.conf 2019-05-30 20:56:23 +00:00
cloudabi64 makesyscalls.sh: always use absolute path for syscalls.conf 2019-05-30 20:56:23 +00:00
freebsd32 Add an shm_rename syscall 2019-09-26 15:32:28 +00:00
ia32 Make randomized stack gap between strings and pointers to argv/envs. 2019-07-31 20:23:10 +00:00
lindebugfs LinuxKPI: Finalize move of lindebugfs from ports to base. 2019-05-19 15:44:21 +00:00
linprocfs Fix /proc/mounts for autofs(5) mounts. 2019-09-04 18:00:54 +00:00
linsysfs Create a "drm" subdirectory for drm devices in linsysfs. Recent versions of 2019-09-23 12:27:55 +00:00
linux linux: add trivial renameat2 implementation 2019-09-11 13:01:59 +00:00
linuxkpi/common Use true and false when dealing with bool type in the LinuxKPI. 2019-09-11 08:24:47 +00:00
ndis Fix compilation with 'option NDISAPI + device ndis' and 2019-01-30 11:40:12 +00:00
netbsd
x86bios x86bios: use M_NOWAIT with mallocs 2018-09-13 07:04:00 +00:00