From ea4267fac55c7d8a6093a6b03ff0e9c795786d3e Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 1 Mar 2022 23:14:41 +0000 Subject: reorganised --- .../db/basic/servicedirs/s6rc-fdholder/data/autofilled | 1 + .../servicedirs/s6rc-fdholder/data/rules/gid/0/allow | 0 .../servicedirs/s6rc-fdholder/data/rules/gid/0/env | 1 + .../servicedirs/s6rc-fdholder/data/rules/uid/0/allow | 0 .../data/rules/uid/0/env/S6_FDHOLDER_GETDUMP | 1 + .../s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_LIST | 1 + .../data/rules/uid/0/env/S6_FDHOLDER_RETRIEVE_REGEX | 1 + .../data/rules/uid/0/env/S6_FDHOLDER_SETDUMP | 1 + .../data/rules/uid/0/env/S6_FDHOLDER_STORE_REGEX | 1 + .../basic/servicedirs/s6rc-fdholder/data/rules/uid/self | 1 + .../db/basic/servicedirs/s6rc-fdholder/notification-fd | 1 + xi/s6/db/basic/servicedirs/s6rc-fdholder/run | 17 +++++++++++++++++ 12 files changed, 26 insertions(+) create mode 100644 xi/s6/db/basic/servicedirs/s6rc-fdholder/data/autofilled create mode 100644 xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/gid/0/allow create mode 120000 xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/gid/0/env create mode 100644 xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/allow create mode 100644 xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_GETDUMP create mode 100644 xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_LIST create mode 120000 xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_RETRIEVE_REGEX create mode 100644 xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_SETDUMP create mode 100644 xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_STORE_REGEX create mode 120000 xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/self create mode 100644 xi/s6/db/basic/servicedirs/s6rc-fdholder/notification-fd create mode 100755 xi/s6/db/basic/servicedirs/s6rc-fdholder/run (limited to 'xi/s6/db/basic/servicedirs/s6rc-fdholder') diff --git a/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/autofilled b/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/autofilled new file mode 100644 index 0000000..5a7694f --- /dev/null +++ b/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/autofilled @@ -0,0 +1 @@ +udevd-log diff --git a/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/gid/0/allow b/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/gid/0/allow new file mode 100644 index 0000000..e69de29 diff --git a/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/gid/0/env b/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/gid/0/env new file mode 120000 index 0000000..dbe1277 --- /dev/null +++ b/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/gid/0/env @@ -0,0 +1 @@ +../../uid/0/env \ No newline at end of file diff --git a/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/allow b/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/allow new file mode 100644 index 0000000..e69de29 diff --git a/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_GETDUMP b/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_GETDUMP new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_GETDUMP @@ -0,0 +1 @@ + diff --git a/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_LIST b/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_LIST new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_LIST @@ -0,0 +1 @@ + diff --git a/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_RETRIEVE_REGEX b/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_RETRIEVE_REGEX new file mode 120000 index 0000000..8534683 --- /dev/null +++ b/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_RETRIEVE_REGEX @@ -0,0 +1 @@ +S6_FDHOLDER_STORE_REGEX \ No newline at end of file diff --git a/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_SETDUMP b/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_SETDUMP new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_SETDUMP @@ -0,0 +1 @@ + diff --git a/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_STORE_REGEX b/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_STORE_REGEX new file mode 100644 index 0000000..d1e45dc --- /dev/null +++ b/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/0/env/S6_FDHOLDER_STORE_REGEX @@ -0,0 +1 @@ +^pipe:s6rc- diff --git a/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/self b/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/self new file mode 120000 index 0000000..c227083 --- /dev/null +++ b/xi/s6/db/basic/servicedirs/s6rc-fdholder/data/rules/uid/self @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/xi/s6/db/basic/servicedirs/s6rc-fdholder/notification-fd b/xi/s6/db/basic/servicedirs/s6rc-fdholder/notification-fd new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/xi/s6/db/basic/servicedirs/s6rc-fdholder/notification-fd @@ -0,0 +1 @@ +1 diff --git a/xi/s6/db/basic/servicedirs/s6rc-fdholder/run b/xi/s6/db/basic/servicedirs/s6rc-fdholder/run new file mode 100755 index 0000000..0a400c7 --- /dev/null +++ b/xi/s6/db/basic/servicedirs/s6rc-fdholder/run @@ -0,0 +1,17 @@ +#!/bin/execlineb -P +pipeline -dw -- +{ + if -n -- + { + forstdin -x 1 -- i + exit 1 + } + if -nt -- + { + redirfd -r 0 ./data/autofilled + s6-ipcclient -l0 -- s + /lib/s6-rc/s6-rc-fdholder-filler -1 -- + } + s6-svc -t . +} +s6-fdholder-daemon -1 -i data/rules -- s -- cgit v1.2.1