]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
semctl.2: Correct SEM_STAT_ANY description
authorYang Xu <xuyang2018.jy@cn.fujitsu.com>
Tue, 29 Dec 2020 11:03:11 +0000 (12:03 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 7 Jan 2021 13:29:14 +0000 (14:29 +0100)
Since kernel commit a280d6dc77eb
("ipc/sem: introduce semctl(SEM_STAT_ANY)"),
it only skips read access check when using SEM_STAT_ANY command.
And it should use the semid_ds struct instead of seminfo struct.
Fix this.

Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Acked-by: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/semctl.2

index fb0d34c4cb1c79de06fa2796a3543eb0e7d6ff1e..a2d3db67774199fc649ed22c5e839131e3ecd589 100644 (file)
@@ -297,8 +297,8 @@ all semaphore sets on the system.
 .TP
 .BR SEM_STAT_ANY " (Linux-specific, since Linux 4.17)"
 Return a
-.I seminfo
-structure containing the same information as for
+.I semid_ds
+structure as for
 .BR SEM_STAT .
 However,
 .I sem_perm.mode