Daniel P. Berrangé
c891f17c2b
tests: stop stubbing libselinux APIs for purpose of data overrides
...
We currently create stub 'setcon', 'setcon_raw' and 'security_disable'
APIs in the securityselinuxhelper.c mock, which set env variables to
control how other mock'd libselinux APIs respond. These stubs merely
set some env variables, and we have no need to call these stubs from
the library code, only test code.
The 'security_disable' API is now deprecated in libselinux, so we
stubbing it generates compiler warnings. Rather than workaround that,
just stop stubbing these APIs and set the required env variables
directly. With this change, we now only mock API calls we actually
use from the library code.
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2024-10-16 15:47:52 +01:00
..
2024-01-15 14:56:35 +01:00
2023-08-25 10:07:36 +02:00
2023-02-14 13:59:45 +01:00
2022-12-01 14:22:39 +01:00
2024-10-09 14:46:51 +02:00
2023-05-16 10:26:33 +02:00
2023-05-16 10:26:33 +02:00
2024-10-16 14:39:09 +02:00
2023-03-06 20:55:49 +01:00
2024-01-30 10:58:13 +01:00
2024-01-04 22:26:10 +01:00
2024-10-02 16:06:50 +02:00
2024-06-24 13:51:04 +01:00
2024-01-08 01:00:08 -05:00
2024-01-08 01:00:08 -05:00
2024-08-05 11:42:35 +02:00
2024-08-05 11:42:35 +02:00
2024-02-26 11:09:57 +01:00
2024-02-26 10:59:47 +01:00
2024-02-26 10:59:47 +01:00
2023-06-05 13:23:06 +02:00
2023-06-05 13:23:06 +02:00
2023-07-20 15:23:34 +02:00
2024-10-16 14:39:08 +02:00
2024-10-16 14:39:09 +02:00
2024-03-21 14:42:27 +01:00
2023-07-20 15:23:43 +02:00
2023-07-20 15:23:24 +02:00
2024-07-19 15:18:40 +02:00
2024-01-15 14:56:35 +01:00
2024-05-16 14:57:02 +02:00
2024-05-16 14:57:02 +02:00
2024-01-07 23:59:00 -05:00
2024-09-24 08:24:00 +02:00
2024-01-15 14:56:36 +01:00
2024-02-09 14:45:20 -06:00
2024-09-24 10:12:08 +02:00
2024-07-10 12:32:23 +02:00
2024-10-16 14:39:09 +02:00
2024-10-16 14:39:09 +02:00
2022-11-03 09:19:54 +01:00
2024-03-12 10:34:43 +01:00
2024-07-25 16:51:17 +02:00
2023-04-06 12:48:22 +02:00
2024-09-13 12:57:42 +02:00
2024-01-15 14:56:35 +01:00
2024-09-24 08:24:00 +02:00
2023-01-02 20:39:09 +01:00
2024-01-08 01:00:08 -05:00
2024-09-13 12:57:42 +02:00
2024-09-05 15:24:55 +02:00
2023-11-27 10:12:34 +01:00
2023-12-14 17:10:22 +01:00
2024-09-12 09:51:58 +02:00
2024-01-07 23:59:00 -05:00
2024-01-07 23:59:00 -05:00
2023-07-20 11:22:08 +02:00
2022-11-09 18:22:47 +01:00
2024-03-12 17:37:51 +01:00
2024-03-12 17:37:51 +01:00
2023-11-24 09:53:14 +01:00
2024-05-23 14:32:24 +02:00
2024-05-02 19:56:45 +02:00
2023-07-19 08:42:08 +02:00
2024-03-21 14:42:27 +01:00
2022-12-01 14:22:39 +01:00
2024-05-08 15:57:31 +01:00
2024-01-30 10:58:13 +01:00
2024-05-08 16:01:34 +01:00
2024-10-02 16:06:50 +02:00
2024-09-24 08:24:00 +02:00
2023-08-25 12:36:37 +02:00
2022-11-09 18:22:47 +01:00
2024-06-24 13:51:04 +01:00
2024-01-08 01:00:08 -05:00
2024-08-05 11:42:35 +02:00
2024-02-26 14:35:52 +01:00
2024-04-24 09:38:54 -04:00
2024-03-14 15:17:48 +01:00
2023-08-03 16:41:19 +02:00
2022-12-01 14:22:39 +01:00
2023-08-03 16:41:19 +02:00
2023-06-05 13:23:06 +02:00
2022-12-01 14:22:39 +01:00
2023-07-20 15:23:34 +02:00
2024-10-16 14:39:08 +02:00
2023-04-03 09:19:06 +02:00
2023-04-03 09:19:07 +02:00
2024-04-24 14:12:17 +02:00
2024-02-01 10:39:40 +01:00
2023-07-20 15:23:43 +02:00
2023-07-20 15:23:24 +02:00
2024-07-19 15:18:40 +02:00
2023-09-12 11:06:41 -05:00
2024-07-04 09:27:34 +02:00
2023-07-20 15:23:16 +02:00
2024-09-24 08:24:00 +02:00
2024-06-06 09:29:58 +02:00
2024-10-16 14:39:09 +02:00
2024-06-06 09:32:43 +02:00
2024-06-06 09:32:43 +02:00
2024-02-09 14:45:20 -06:00
2024-04-09 16:55:25 +02:00
2024-07-02 09:13:47 +02:00
2024-07-10 12:32:23 +02:00
2024-08-26 16:10:04 +02:00
2024-09-24 10:12:08 +02:00
2024-10-16 14:39:09 +02:00
2023-03-03 13:52:37 +01:00
2024-10-16 15:47:52 +01:00
2024-10-16 15:47:52 +01:00
2024-10-16 15:47:52 +01:00
2023-08-03 16:41:19 +02:00
2024-07-25 16:51:17 +02:00
2024-04-15 09:24:16 +02:00
2024-06-06 09:29:58 +02:00
2024-03-21 14:42:27 +01:00
2024-09-25 08:38:09 +02:00
2024-08-09 16:34:33 +02:00
2024-10-01 12:53:49 +02:00
2024-06-06 09:29:58 +02:00
2023-04-03 09:19:07 +02:00
2023-12-14 17:10:22 +01:00
2022-12-01 14:22:39 +01:00
2023-04-06 12:48:22 +02:00
2024-09-10 14:25:37 +02:00
2022-12-01 14:22:39 +01:00
2024-09-13 12:57:42 +02:00
2024-03-14 15:17:48 +01:00
2023-03-03 13:52:37 +01:00
2023-04-03 08:21:27 +02:00
2023-04-01 11:40:35 +02:00
2022-12-12 10:36:13 +00:00
2024-10-03 13:29:26 +02:00
2024-03-14 15:17:48 +01:00
2023-05-10 14:44:22 +02:00
2024-05-22 23:19:18 -04:00
2024-01-15 14:56:35 +01:00
2024-01-07 23:57:09 -05:00
2024-10-16 15:47:52 +01:00
2024-08-16 13:11:57 +02:00
2022-12-01 14:22:39 +01:00
2024-09-24 08:24:00 +02:00
2024-03-14 15:17:48 +01:00
2023-05-16 08:48:17 +02:00
2024-09-24 08:24:00 +02:00
2022-12-01 14:22:39 +01:00
2022-12-01 14:22:39 +01:00
2023-03-13 13:29:07 +01:00
2023-08-03 16:41:19 +02:00
2023-08-03 16:35:11 +02:00
2022-11-21 15:36:08 +01:00
2022-11-21 15:36:08 +01:00
2024-01-04 22:26:10 +01:00
2023-03-15 12:46:21 +01:00
2024-03-14 15:17:48 +01:00
2024-01-31 17:24:07 +01:00
2024-01-31 17:24:07 +01:00
2023-07-19 13:09:11 +02:00
2024-09-13 12:57:42 +02:00
2024-08-28 08:46:16 +02:00
2023-06-29 11:51:27 +02:00
2024-09-05 15:24:55 +02:00
2024-09-24 08:24:00 +02:00
2023-11-24 09:53:14 +01:00
2024-02-07 14:19:42 +01:00
2024-04-15 09:28:32 +02:00
2024-03-14 15:17:48 +01:00
2024-10-01 12:57:02 +02:00
2023-02-08 16:50:45 +01:00
2024-03-14 15:17:48 +01:00
2024-09-12 09:51:58 +02:00
2024-05-02 15:57:29 -06:00
2024-05-02 15:57:29 -06:00