Skip to contentSkip to conversation

semctl.2: Correct SEM_STAT_ANY description

PATCH In review Alejandro Colomar 2 participants 2 messages Dec 29, 2020 – Jan 7, 2021 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 semctl.2: Correct SEM_STAT_ANY description

From: Yang Xu <[email protected]>

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.

---

Hi Michael,

Here's a recent patch from Yang Xu.

Cheers,

Alex

 man2/semctl.2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
man2/semctl.2 +2 -2
index ed5e79efd..e562d0bc4 100644
@@ -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

base-commit: c55f66855eccfcd92b35fe7b13a326121f2ee0fd

Signature · 1 line
2.29.2
#1 lore raw

Hi Alex, hi Xang,

Quoted 11 lines · Alejandro Colomar

From: Yang Xu <[email protected]>

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.

Patch applied. My apologies for the delay.

Thanks,

Michael

Quoted 31 lines

---

Hi Michael,

Here's a recent patch from Yang Xu.

Cheers,

Alex

 man2/semctl.2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
man2/semctl.2 +2 -2
index ed5e79efd..e562d0bc4 100644
@@ -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

base-commit: c55f66855eccfcd92b35fe7b13a326121f2ee0fd

Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/