All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ivana Hutarova Varekova <varekova-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: prctl.2: PR_SET_SECCOMP - _exit behavior
Date: Thu, 18 Nov 2010 15:51:38 +0100	[thread overview]
Message-ID: <4CE53D7A.6040502@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]

prctl.2 man page (man-pages-3.30) wrote:
  PR_SET_SECCOMP ... After the secure computing mode has been set to 1, 
the only system calls that the thread is permitted to make are read(2), 
write(2),  _exit(2), and sigreturn(2),
but _exit(2) wrapper from 2.3 does not call _exit() sysscall but invokes 
exit_group(2) syscall(see exit.2). This may lead to misunderstanding. 
prctl.2 man page may contain some note about this fact too.
The patch which adds this note to prctl is attached
Ivana HUtarova Varekova

[-- Attachment #2: man-pages-3.30-prctl.patch --]
[-- Type: text/x-patch, Size: 695 bytes --]

diff -up man-pages-3.30/man2/prctl.2.pom man-pages-3.30/man2/prctl.2
--- man-pages-3.30/man2/prctl.2.pom	2010-11-01 15:55:38.000000000 +0100
+++ man-pages-3.30/man2/prctl.2	2010-11-18 14:42:50.000000000 +0100
@@ -236,9 +236,15 @@ After the secure computing mode has been
 the only system calls that the thread is permitted to make are
 .BR read (2),
 .BR write (2),
-.BR _exit (2),
+.BR sigreturn (2)
 and
-.BR sigreturn (2).
+.BR _exit (2).
+In glibc up to version 2.3, the
+.BR _exit()
+wrapper function invoked the kernel system call of the same name.
+Since glibc 2.3, the  wrapper  function
+invokes
+.BR exit_group(2).
 Other system calls result in the delivery of a
 .BR SIGKILL
 signal.

                 reply	other threads:[~2010-11-18 14:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CE53D7A.6040502@redhat.com \
    --to=varekova-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.