Re: [PATCH 1/2] man/man2/seccomp.2: Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH

Alejandro Colomar <[email protected]>
Newsgroups org.kernel.vger.linux-man
Message-ID <aguR0Zb5E9R7k2RK@devuan>
Hi Tycho,

On 2026-05-18T08:04:40-0600, Tycho Andersen wrote:
> On Sat, May 16, 2026 at 11:38:48PM +0200, Alejandro Colomar wrote:
> > Hi,
> > 
> > On 2026-05-16T21:53:17+0100, funsafemath wrote:
> > > Document SECCOMP_FILTER_FLAG_TSYNC_ESRCH flag, which allows to
> > > use SECCOMP_FILTER_FLAG_TSYNC and SECCOMP_FILTER_FLAG_NEW_LISTENER
> > > flags together by returning ESRCH on synchronization error instead
> > > of the thread ID.
> > > 
> > > <https://lore.kernel.org/r/[email protected]>
> > > ---
> > 
> > Would you mind signing the patch?
> > 
> > >  man/man2/seccomp.2 | 15 +++++++++++++++
> > >  1 file changed, 15 insertions(+)
> > > 
> > > diff --git a/man/man2/seccomp.2 b/man/man2/seccomp.2
> > > index 75c7b2d58..0729a653c 100644
> > > --- a/man/man2/seccomp.2
> > > +++ b/man/man2/seccomp.2
> > > @@ -241,6 +241,21 @@ .SH DESCRIPTION
> > >  .B SECCOMP_MODE_STRICT
> > >  or if it has attached new seccomp filters to itself,
> > >  diverging from the calling thread's filter tree.
> > > +.TP
> > > +.BR SECCOMP_FILTER_FLAG_TSYNC_ESRCH " (since Linux 5.7)"
> > > +.\" commit 51891498f2da78ee64dfad88fa53c9e85fb50abf
> > > +Return
> > > +.B ESRCH
> > 
> > I expect that in user space, we'll see -1 in the return value, and ESRCH
> > in errno, right?  If so, we should say "Fail with ESRCH ...".
> 
> Yes, exactly. Probably worth changing the wording in the commit
> message as well.

Thanks!  I've amended the commit message while applying v2.


Have a lovely night!
Alex

> 
> Tycho

-- 
<https://www.alejandro-colomar.es>
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEES7Jt9u9GbmlWADAi64mZXMKQwqkFAmoLkfgACgkQ64mZXMKQ
wqlR5RAAiTiX5BTS5qDYg4suvneG1Db5aOHyb7OWQLQj6oGaMPd/MDfzPej07mMn
OasRGr2ZKZGrUHkBcOkTtdVPX9oa/V9dY0oFNJayMwr/J8D0/rNZLxYlZ7GYxCCw
NayyHIeHhW4Hx1Ytxkl0MvAa9U7LrRplenvami+8Z4A4SlCZZ9E/0gYuqhjiC4e7
qL8bRz/l0Mtn5tqQGDBTBQib6JarmHcYJPDdbvVeZTqrVpfXIT5tavkoh0WCuvwN
e5Sh0qBgS4HY2YZn7iqOw6ZvpDvhc2i3bNMrpBytoyDny8EgOzsGK2Fx+hPLCwaE
Kq8SFT5MAqP96p2eVvc9W33AHJedQqCF7assWaQLHyl+Lzk9Gttdz9dHPKoU2VMB
FlKUwp6pCHzmvoXVJzBksUQwIOQpEg1YYJrVw7/4EUWxGBI7+nXqKuTM8lCXAi84
Y5gs9QJYy873WQCAxyruutOgPN2r8DJ8FY4WhPZ4UQibS3KblgW0q4QXcidn9YPy
T1wy21sAVvHOr0urYfNRg9AS5HnDE5DA4IJj8aajd5tuJmCVt+SO+yEoLQwkLMao
A0OguIRVmYjbVijJsaizPTqUdg/Cgzv3SJ9voKLQgtwLltMMVk74CVbrBnurIf0W
6WAVgLm3H6nvWPHthwhD8V4FX69GdyNdtUBtDtgLcjooX9P4fyE=
=u21w
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.