Daniel P. Berrangé
5b8569dd6e
util: add APIs for facilitating use of systemd activation FDs
...
When receiving multiple FDs from systemd during service activation it is
neccessary to identify which purpose each FD is used for. While this
could be inferred by looking for the specific IP ports or UNIX socket
paths, this requires the systemd config to always match what is expected
by the code. Using systemd FD names we can remove this restriction and
simply identify FDs based on an arbitrary name.
The FD names are passed by systemd in the LISTEN_FDNAMES env variable
which is populated with the socket unit file names, unless overriden
by using the FileDescriptorName setting.
This is supported since the system 227 release and unfortunately RHEL7
lacks this version. Thus the code has some back compat support whereby
we look at the TCP ports or the UNIX socket paths to identify what
socket maps to which name. This back compat code is written such that
is it easly deleted when we are able to mandate newer systemd.
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-07-12 16:55:39 +01:00
..
2019-02-24 13:20:51 +04:00
2019-02-24 13:20:51 +04:00
2018-12-03 14:31:41 +01:00
2018-12-17 15:02:11 +00:00
2019-06-20 14:02:36 +02:00
2019-06-20 14:02:36 +02:00
2019-04-16 13:46:17 +02:00
2019-04-16 13:46:17 +02:00
2019-03-13 12:06:52 -06:00
2019-03-06 15:53:53 +01:00
2019-02-21 13:06:16 -05:00
2019-05-23 16:29:48 +01:00
2019-02-01 12:57:13 -05:00
2019-02-01 12:57:13 -05:00
2019-03-22 12:59:56 +03:00
2019-06-20 09:13:37 +02:00
2019-02-05 17:15:05 +01:00
2019-07-08 16:10:22 -05:00
2019-07-08 16:10:22 -05:00
2019-03-12 15:29:44 +01:00
2019-04-18 17:08:33 +02:00
2019-04-18 17:08:33 +02:00
2018-08-13 15:50:01 +02:00
2019-07-11 16:19:12 +02:00
2019-06-26 12:28:31 +02:00
2019-06-26 12:28:31 +02:00
2019-07-12 17:09:43 +02:00
2019-01-29 19:16:19 -05:00
2019-06-25 17:11:56 +02:00
2019-06-25 17:11:56 +02:00
2018-12-17 14:43:33 +00:00
2018-12-17 14:43:33 +00:00
2019-03-06 11:12:48 -05:00
2019-06-03 17:59:38 +02:00
2018-09-20 13:06:02 -04:00
2018-10-05 15:53:29 +02:00
2019-06-21 12:59:42 +01:00
2019-02-26 11:41:18 +01:00
2018-08-14 15:52:35 +02:00
2019-04-03 14:44:32 +02:00
2018-08-13 15:50:01 +02:00
2019-06-21 12:59:42 +01:00
2019-06-17 15:19:54 +01:00
2018-08-13 14:19:41 -04:00
2019-04-15 20:03:55 -04:00
2019-04-16 13:11:08 -04:00
2019-04-16 13:11:08 -04:00
2019-04-15 20:03:55 -04:00
2019-02-24 13:20:51 +04:00
2019-02-24 13:20:51 +04:00
2018-08-15 10:15:29 +02:00
2018-09-20 10:16:39 +02:00
2019-05-17 16:01:11 +02:00
2019-06-20 00:22:39 +02:00
2019-02-11 17:40:44 -05:00
2019-06-20 00:22:38 +02:00
2018-12-13 16:08:38 +00:00
2018-09-20 10:16:39 +02:00
2019-04-10 12:26:32 +02:00
2018-12-13 16:08:38 +00:00
2018-08-15 10:15:29 +02:00
2019-04-16 13:46:17 +02:00
2019-04-11 12:47:23 -04:00
2018-09-20 10:16:39 +02:00
2019-02-11 17:40:44 -05:00
2019-03-14 10:05:25 +01:00
2018-12-11 15:03:08 -05:00
2018-09-20 10:16:39 +02:00
2019-07-09 10:27:19 +02:00
2019-03-08 14:59:20 +01:00
2019-01-31 17:45:41 +01:00
2019-05-23 16:29:48 +01:00
2019-01-31 17:45:41 +01:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2019-03-14 10:05:25 +01:00
2018-09-20 10:16:39 +02:00
2019-04-10 12:26:32 +02:00
2018-12-17 17:52:46 +01:00
2018-09-20 10:16:39 +02:00
2018-08-13 15:50:01 +02:00
2019-05-06 18:05:17 -05:00
2019-06-07 16:18:45 +02:00
2018-12-13 16:08:38 +00:00
2019-04-20 07:48:42 +02:00
2018-12-14 10:47:13 +00:00
2018-12-13 16:08:38 +00:00
2018-08-13 15:50:01 +02:00
2019-06-03 18:07:16 +02:00
2019-07-08 16:10:22 -05:00
2019-04-10 13:58:30 +02:00
2019-06-20 13:47:41 +02:00
2019-03-14 10:05:25 +01:00
2018-12-14 10:47:13 +00:00
2019-06-20 00:22:39 +02:00
2019-06-20 13:47:41 +02:00
2019-06-19 17:12:34 +02:00
2019-07-05 18:19:19 +01:00
2019-07-03 08:36:04 +02:00
2019-07-03 08:36:04 +02:00
2019-01-24 18:59:38 -05:00
2019-07-03 10:18:41 +02:00
2019-07-03 10:18:36 +02:00
2019-04-10 12:26:32 +02:00
2018-11-16 13:42:39 +01:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00
2018-12-05 10:39:54 +01:00
2018-11-16 13:42:39 +01:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00
2018-09-20 10:16:39 +02:00
2018-12-13 16:08:38 +00:00
2019-02-12 08:51:23 -05:00
2019-03-07 12:12:11 +01:00
2019-05-14 15:58:37 +02:00
2019-06-25 17:11:56 +02:00
2019-02-12 08:51:23 -05:00
2019-02-12 08:51:23 -05:00
2019-06-03 17:51:12 +02:00
2019-04-04 09:35:40 -05:00
2019-03-14 10:05:21 +01:00
2019-06-19 17:12:34 +02:00
2019-06-19 17:12:34 +02:00
2018-09-20 10:16:39 +02:00
2019-06-19 17:12:34 +02:00
2019-06-04 20:56:58 +02:00
2019-06-19 17:12:34 +02:00
2019-04-17 08:30:55 +02:00
2019-06-19 17:12:34 +02:00
2018-11-26 16:38:26 -07:00
2019-06-19 17:12:34 +02:00
2018-09-20 10:16:39 +02:00
2019-04-10 12:26:32 +02:00
2018-12-13 16:08:38 +00:00
2019-06-04 09:29:35 +02:00
2019-05-04 23:39:35 +02:00
2018-12-13 16:08:38 +00:00
2018-09-20 10:16:39 +02:00
2019-04-10 09:12:04 +02:00
2018-12-14 10:47:13 +00:00
2018-09-20 10:16:39 +02:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2018-12-13 16:08:38 +00:00
2018-12-17 17:52:46 +01:00
2018-12-18 10:12:09 -05:00
2019-02-03 17:46:29 -05:00
2019-05-07 09:56:17 +02:00
2019-04-10 12:26:32 +02:00
2019-04-10 12:26:32 +02:00
2019-06-19 17:12:34 +02:00
2019-02-01 12:08:37 -05:00
2019-06-19 17:12:34 +02:00
2018-12-05 10:39:54 +01:00
2018-12-14 10:47:13 +00:00
2019-05-04 23:39:35 +02:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2019-04-03 14:44:32 +02:00
2019-04-11 12:47:23 -04:00
2018-12-13 16:08:38 +00:00
2019-02-14 18:03:10 +01:00
2019-04-10 12:26:32 +02:00
2018-12-13 16:08:38 +00:00
2019-06-19 17:12:34 +02:00
2019-04-03 11:31:38 +01:00
2018-12-13 16:08:38 +00:00
2019-06-21 12:59:42 +01:00
2019-07-09 15:01:54 +02:00
2019-06-17 15:19:54 +01:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2019-07-11 15:26:54 +01:00
2019-04-10 12:26:32 +02:00
2019-04-10 12:26:32 +02:00
2019-06-19 17:12:34 +02:00
2019-04-10 12:26:32 +02:00
2019-06-17 15:19:54 +01:00
2018-09-20 10:16:39 +02:00
2019-06-17 17:47:18 +02:00
2018-12-13 16:08:38 +00:00
2019-04-15 12:47:44 -04:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-12-14 10:47:13 +00:00
2018-12-13 16:08:38 +00:00
2019-07-09 10:27:19 +02:00
2019-04-10 12:26:32 +02:00
2019-07-10 17:34:58 -05:00
2018-10-12 09:30:56 -05:00
2019-04-04 09:35:40 -05:00
2019-03-25 09:01:53 -05:00
2019-05-06 18:05:17 -05:00
2019-02-12 08:51:23 -05:00
2018-12-13 16:08:38 +00:00
2019-07-12 16:55:39 +01:00
2019-01-23 07:54:58 +01:00
2019-05-07 11:01:14 +02:00
2018-12-13 16:08:38 +00:00
2018-09-20 10:16:38 +02:00
2019-06-12 09:26:25 +02:00
2018-12-13 16:08:38 +00:00
2018-12-13 16:08:38 +00:00
2018-09-20 10:16:39 +02:00
2019-04-15 20:03:55 -04:00
2019-02-12 10:14:53 +01:00
2019-04-16 13:11:08 -04:00
2019-04-16 13:11:08 -04:00
2019-04-15 20:03:55 -04:00