From: Nadia.Derbey-6ktuUTfB/bM@public.gmane.org
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org,
sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org,
xemul-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org,
kir-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org,
linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Nadia.Derbey-6ktuUTfB/bM@public.gmane.org
Subject: signal handling description for Michaels CLONE_NEWPID man page
Date: Thu, 27 Nov 2008 08:07:21 +0100 [thread overview]
Message-ID: <20081127070806.626288939@bull.net> (raw)
In-Reply-To: 20081127070720.954560982@bull.net
[-- Attachment #1: pidns_signals.patch --]
[-- Type: text/plain, Size: 2091 bytes --]
Michael,
Here is the proposal for a description of signals handling in pid
namespaces.
This applies on top of your CLONE_NEWPID patch.
Regards,
Nadia
---
man2/clone.2 | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
Index: man-pages-3.13/man2/clone.2
===================================================================
--- man-pages-3.13.orig/man2/clone.2 2008-11-24 09:34:30.000000000 +0100
+++ man-pages-3.13/man2/clone.2 2008-11-27 09:17:53.000000000 +0100
@@ -226,6 +226,29 @@ configuration option and requires that t
.RB (CAP_SYS_ADMIN ).
This flag can't be specified in conjunction with
.BR CLONE_THREAD .
+
+.BR "Signals handling:"
+just like all the system calls that address a PID, signals can only be sent
+to a process whose PID belongs to the same namespace as the caller.
+
+There are ways signals can be sent across namespaces boundaries such that
+the sender does not have a valid pid in the receiver's pid namespace.
+In such cases, the sender pid will be seen by the receiver as a 0 value
+(this has an impact, for example, on the
+.BR siginfo_t
+structure contents - NOTE, this is still under development).
+
+The "init" process of a PID namespace has a particular status, since it
+is known both by its children as PID 1 and by its father's PID namespace
+as any other PID. Thus, the "init" process of a PID namespace can be sent
+any signal by a process that belongs to its ancestor's PID namespace (given
+that the sender has the appropriate permission). But the only signals that
+can be sent to the "init" process of a PID namespace from its own namespace
+are those for which it has explicitly installed signal handlers.
+More precisely, signals are sent successfully (i.e
+.BR kill (2)
+will not fail), but the "init" process will silently ignore unhandled signals.
+
.TP
.BR CLONE_PARENT " (since Linux 2.3.12)"
If
--
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next parent reply other threads:[~2008-11-27 7:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20081127070720.954560982@bull.net>
2008-11-27 7:07 ` Nadia.Derbey-6ktuUTfB/bM [this message]
[not found] ` <20081127070806.626288939-6ktuUTfB/bM@public.gmane.org>
2008-11-28 21:58 ` signal handling description for Michaels CLONE_NEWPID man page Michael Kerrisk
[not found] ` <cfd18e0f0811281358s2e831b04qc56277db403c2039-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-12-01 7:36 ` Nadia Derbey
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=20081127070806.626288939@bull.net \
--to=nadia.derbey-6ktuutfb/bm@public.gmane.org \
--cc=kir-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
--cc=sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
--cc=xemul-GEFAQzZX7r8dnm+yROfE0A@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox