Skip to contentSkip to conversation

typo in capabilities(7) man page

DISCUSSION Christian Seiler 2 participants 2 messages Jan 13, 2015 – Jan 16, 2015 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

Dear Maintainers,

I have found a small typo in capabilities(7). As per instructions[1], I'm reporting it directly via email.

Under the capability CAP_SYS_ADMIN it says that you need it if you want to

'forge UID when passing socket credentials;'

This should read instead:

'forge PID when passing socket credentials;'

Rationale:

UID/GID are governed by CAP_SET[UG]ID instead (which is already correctly mentioned in the man page), only PID requires CAP_SYS_ADMIN.

The check in the kernel source can be found in:
<https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/net/core/scm.c#n47>

Thanks!

Christian

[1] <https://www.kernel.org/doc/man-pages/reporting_bugs.html>

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Hello Christian,

Quoted 19 lines · Christian Seiler

Dear Maintainers,

I have found a small typo in capabilities(7). As per instructions[1], I'm reporting it directly via email.

Under the capability CAP_SYS_ADMIN it says that you need it if you want to

'forge UID when passing socket credentials;'

This should read instead:

'forge PID when passing socket credentials;'

Rationale:

UID/GID are governed by CAP_SET[UG]ID instead (which is already correctly mentioned in the man page), only PID requires CAP_SYS_ADMIN.

Quoted 8 lines

The check in the kernel source can be found in:
<https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/net/core/scm.c#n47>

Thanks!

Christian

[1] <https://www.kernel.org/doc/man-pages/reporting_bugs.html>

Thanks for the very complete report! Yes, the page needs fixing, and I've done that.

Cheers,

Michael

Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html