From 90b12bd71bb9fc79a4640b9112c13ef529d0196a Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 5 Dec 2014 22:26:11 +0000 Subject: Initial commit --- doc/fifodir.html | 123 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 doc/fifodir.html (limited to 'doc/fifodir.html') diff --git a/doc/fifodir.html b/doc/fifodir.html new file mode 100644 index 0000000..99805ed --- /dev/null +++ b/doc/fifodir.html @@ -0,0 +1,123 @@ + + + + + s6: fifodirs + + + + + + +

+s6
+Software
+skarnet.org +

+ +

Fifodirs

+ +

+ A fifodir is a rendez-vous point between the notifier +of certain events and its listeners. It is implemented via a +directory in the filesystem. No data is stored; it is appropriate to +create fifodirs in a RAM filesystem. +

+ +

Manipulating fifodirs

+ +

C API

+ + + +

Unix API

+ + + +

Internals and Unix permissions

+ + + +

+Fifodirs are created by, so they always originally have the same uid and gid as, +their notifier. A notifier must be able to make his fifodir either publically +accessible (anyone can subscribe) or restricted (only a given group can +subscribe). +

+ +

+ A publically accessible fifodir must have rights 1733: +

+ + + +

+ A restricted fifodir must have the gid g of the group of allowed +listeners and have rights 3730. Unless the notifier is root, it +must be in the group of allowed listeners to be able to create +such a fifodir. +

+ + + +

+ A named pipe in a fifodir must always belong to its listener and have +rights 0622: +

+ + + +

+ The libftrig interface takes care of all +the subtleties. +

+ + + -- cgit v1.2.3