Al Viro
66f8a85bbd
BACKPORT: LSM: hide struct security_mnt_opts from any generic code
...
Keep void * instead, allocate on demand (in parse_str_opts, at the
moment). Eventually both selinux and smack will be better off
with private structures with several strings in those, rather than
this "counter and two pointers to dynamically allocated arrays"
ugliness. This commit allows to do that at leisure, without
disrupting anything outside of given module.
Changes:
* instead of struct security_mnt_opt use an opaque pointer
initialized to NULL.
* security_sb_eat_lsm_opts(), security_sb_parse_opts_str() and
security_free_mnt_opts() take it as var argument (i.e. as void **);
call sites are unchanged.
* security_sb_set_mnt_opts() and security_sb_remount() take
it by value (i.e. as void *).
* new method: ->sb_free_mnt_opts(). Takes void *, does
whatever freeing that needs to be done.
* ->sb_set_mnt_opts() and ->sb_remount() might get NULL as
mnt_opts argument, meaning "empty".
Reviewed-by: David Howells <dhowells@redhat.com >
Change-Id: I4dbd7e91c91dae3e99e6e9a7f3f0ee523368a17b
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2025-09-20 03:23:24 +01:00
..
2023-01-19 21:49:59 +09:00
2020-04-02 15:28:16 +02:00
2021-01-28 16:05:07 +08:00
2021-12-15 13:45:50 +08:00
2022-02-24 14:27:47 +08:00
2021-12-15 13:45:50 +08:00
2021-12-15 13:45:50 +08:00
2024-06-02 18:41:12 +01:00
2025-07-17 10:07:57 +02:00
2022-03-16 13:20:26 +01:00
2022-04-21 17:37:54 +08:00
2022-06-14 16:59:39 +02:00
2023-08-25 11:24:56 +00:00
2022-09-05 10:26:29 +02:00
2021-12-15 13:45:50 +08:00
2024-06-02 18:41:12 +01:00
2023-05-30 12:42:14 +01:00
2020-06-30 23:17:12 -04:00
2020-11-16 09:22:34 +01:00
2024-06-02 15:10:52 +01:00
2021-12-15 13:45:50 +08:00
2025-09-20 03:21:20 +01:00
2022-02-24 14:22:44 +08:00
2024-06-02 19:23:58 +01:00
2025-09-20 03:19:49 +01:00
2025-09-20 00:49:22 +01:00
2022-01-20 11:18:48 +08:00
2021-09-29 16:09:10 +00:00
2025-09-20 01:45:46 +01:00
2024-06-02 15:19:47 +01:00
2022-10-26 13:19:32 +02:00
2025-07-17 10:08:05 +02:00
2021-01-29 01:24:04 +08:00
2021-08-09 16:20:50 +02:00
2025-06-11 10:19:25 +02:00
2020-04-06 16:26:54 -07:00
2021-05-27 11:23:54 +08:00
2020-05-01 15:18:12 +02:00
2020-08-19 08:15:05 +02:00
2024-09-04 13:12:59 +02:00
2023-06-14 09:45:37 +00:00
2022-12-17 00:25:35 +02:00
2021-01-29 01:55:39 +08:00
2022-04-19 16:15:29 +02:00
2021-01-29 02:25:26 +08:00
2024-12-17 21:41:20 +00:00
2020-04-29 16:31:17 +02:00
2021-01-28 18:27:30 +08:00
2025-09-20 03:22:09 +01:00
2025-09-20 03:22:12 +01:00
2025-09-20 03:22:51 +01:00
2025-09-20 03:22:58 +01:00
2025-09-20 03:22:51 +01:00
2025-09-20 03:21:49 +01:00
2025-09-20 03:23:05 +01:00
2025-09-20 03:22:01 +01:00
2020-04-01 16:26:56 -07:00
2025-09-20 03:22:21 +01:00
2025-09-20 03:22:32 +01:00
2022-09-15 12:17:02 +02:00
2025-09-20 03:19:08 +01:00
2020-09-09 19:04:31 +02:00
2021-09-26 13:39:48 +02:00
2025-09-20 03:21:30 +01:00
2025-09-20 03:19:50 +01:00
2025-09-20 03:23:12 +01:00
2025-09-20 03:21:14 +01:00
2020-04-02 16:27:12 -07:00
2024-12-17 21:40:58 +00:00
2020-04-27 22:52:00 -07:00
2025-09-20 03:21:20 +01:00
2024-07-18 11:39:31 +02:00
2025-09-20 03:21:34 +01:00
2025-09-20 03:21:33 +01:00
2025-09-20 03:21:33 +01:00
2025-09-20 03:21:33 +01:00
2025-09-20 03:21:33 +01:00
2025-09-20 03:19:53 +01:00
2021-05-26 11:48:35 +02:00
2021-11-30 13:20:26 +01:00
2020-04-27 22:51:59 -07:00
2025-09-20 03:22:28 +01:00
2020-04-17 03:23:39 +00:00
2023-08-08 19:49:17 +02:00
2023-12-19 09:45:25 +00:00
2021-12-15 13:45:50 +08:00
2024-09-12 11:46:23 +01:00
2023-04-05 11:15:42 +02:00
2025-09-20 03:23:17 +01:00
2025-09-20 03:21:23 +01:00
2020-11-09 13:11:29 +00:00
2023-05-17 11:13:06 +02:00
2020-04-17 10:48:45 +02:00
2020-04-22 15:31:42 +00:00
2021-03-05 07:01:46 +01:00
2025-03-19 23:15:11 +00:00
2021-01-23 15:49:55 +01:00
2024-06-02 15:06:06 +01:00
2021-12-15 13:45:50 +08:00
2020-05-01 21:56:54 -07:00
2025-08-04 15:06:56 +01:00
2024-02-23 08:12:53 +01:00
2024-06-02 18:49:18 +01:00
2025-02-07 03:34:24 +01:00
2021-03-11 14:05:02 +01:00
2022-11-10 17:46:55 +01:00
2020-05-01 15:18:13 +02:00
2021-10-27 09:53:13 +02:00
2020-06-27 09:50:13 +02:00
2024-06-02 18:55:27 +01:00
2024-05-17 11:42:37 +02:00
2020-05-03 08:45:31 +02:00
2023-09-23 10:47:59 +02:00
2020-05-15 10:16:16 +01:00
2025-09-20 03:20:38 +01:00
2021-04-07 14:37:10 +02:00
2020-04-13 15:24:19 +00:00
2024-09-04 13:13:08 +02:00
2021-12-08 08:50:13 +01:00
2025-09-20 03:23:12 +01:00
2020-10-14 10:31:21 +02:00
2025-09-20 03:23:22 +01:00
2024-06-02 15:53:52 +01:00
2024-07-19 13:17:59 +00:00
2022-01-20 11:18:48 +08:00
2025-09-20 03:21:20 +01:00
2021-01-30 13:32:12 +01:00
2020-08-13 21:50:48 -07:00
2021-03-11 17:13:52 +01:00
2024-06-02 19:25:21 +01:00
2020-04-17 20:26:06 +00:00
2025-08-04 15:06:56 +01:00
2021-01-28 22:59:35 +08:00
2020-11-05 11:08:54 +01:00
2024-03-26 18:22:37 -04:00
2020-04-27 22:51:55 -07:00
2024-04-15 10:17:13 +00:00
2025-09-20 01:45:20 +01:00
2025-09-20 01:31:57 +01:00
2025-09-20 03:21:20 +01:00
2022-06-25 11:49:07 +02:00
2024-08-19 05:31:56 +02:00
2025-02-07 03:34:27 +01:00
2020-09-23 12:10:59 +02:00
2022-01-20 11:18:48 +08:00
2021-03-04 09:39:59 +01:00
2020-05-10 10:30:12 +02:00
2023-09-23 10:48:11 +02:00
2021-03-30 14:37:00 +02:00
2023-10-10 21:44:57 +02:00
2025-02-07 03:34:27 +01:00
2023-03-11 16:31:51 +01:00
2023-10-25 11:16:17 +02:00
2021-08-27 18:03:43 +02:00
2025-09-20 03:22:10 +01:00
2021-02-03 23:23:26 +01:00
2025-06-01 18:10:49 +01:00
2020-07-29 10:16:57 +02:00
2020-05-01 21:56:54 -07:00
2021-01-29 00:42:55 +08:00
2020-05-10 10:30:11 +02:00
2020-04-17 10:48:41 +02:00
2022-01-20 11:18:48 +08:00
2021-01-29 00:42:55 +08:00
2020-05-03 08:45:31 +02:00
2024-06-02 18:49:18 +01:00
2021-12-08 08:50:11 +01:00
2023-06-28 10:15:27 +02:00
2021-03-19 00:18:59 +08:00
2025-09-20 03:20:43 +01:00
2021-08-27 15:24:34 +02:00
2020-05-03 08:45:30 +02:00
2024-11-08 16:19:06 +01:00
2024-12-05 11:21:28 +00:00
2025-04-03 10:09:44 +02:00
2021-01-09 13:43:48 +01:00
2023-03-11 16:31:35 +01:00
2025-09-20 03:19:33 +01:00
2025-09-20 03:23:11 +01:00
2022-07-02 16:27:39 +02:00
2020-04-23 10:30:24 +02:00
2021-03-05 07:01:18 +01:00
2021-01-29 02:25:26 +08:00
2022-08-25 11:15:23 +02:00
2020-06-22 09:05:15 +02:00
2020-10-14 10:31:26 +02:00
2020-05-03 08:45:30 +02:00
2025-09-20 03:21:20 +01:00
2022-07-06 18:47:22 -07:00
2021-02-07 15:41:31 +01:00
2020-04-27 22:52:00 -07:00
2025-04-03 10:09:49 +02:00
2020-04-29 16:31:19 +02:00
2025-09-20 03:21:20 +01:00
2025-02-07 03:34:23 +01:00
2023-10-10 21:45:00 +02:00
2025-09-20 03:19:49 +01:00
2025-09-20 03:21:17 +01:00
2025-09-20 03:23:01 +01:00
2021-01-28 22:46:46 +08:00
2020-09-09 19:48:58 +02:00
2025-09-20 03:23:24 +01:00
2025-09-20 03:23:20 +01:00
2022-06-21 20:47:53 +02:00
2022-01-20 11:18:48 +08:00
2025-03-19 23:15:11 +00:00
2023-01-18 11:30:49 +01:00
2023-10-25 11:16:31 +02:00
2021-10-09 14:11:03 +02:00
2020-03-26 14:45:13 -07:00
2025-09-20 03:23:11 +01:00
2021-09-22 11:48:12 +02:00
2025-09-20 01:32:03 +01:00
2020-05-30 00:09:49 +00:00
2020-04-08 14:34:09 -07:00
2025-09-20 03:19:50 +01:00
2025-09-20 03:21:20 +01:00
2022-12-08 11:18:34 +01:00
2020-05-03 08:45:30 +02:00
2025-09-20 03:21:20 +01:00
2024-06-02 18:49:42 +01:00
2025-09-20 03:22:10 +01:00
2024-06-16 13:23:35 +02:00
2025-09-20 03:23:22 +01:00
2021-08-27 16:46:06 +02:00
2021-03-30 14:37:02 +02:00
2024-06-02 19:12:37 +01:00
2025-09-20 03:19:49 +01:00
2021-06-30 19:17:14 +02:00
2022-05-18 09:42:47 +02:00
2025-09-20 03:22:40 +01:00
2023-06-21 15:39:57 +02:00
2020-11-18 19:18:44 +01:00
2020-11-18 19:18:44 +01:00
2023-06-21 15:39:57 +02:00
2025-05-05 15:34:17 +02:00
2022-04-15 14:15:03 +02:00
2020-10-01 13:14:41 +02:00
2025-06-11 10:19:26 +02:00
2023-09-23 10:47:58 +02:00
2025-09-20 03:21:20 +01:00
2020-10-07 08:00:08 +02:00
2022-06-14 16:59:38 +02:00
2023-02-25 11:51:51 +01:00
2020-04-13 10:45:06 +02:00
2020-04-17 10:48:45 +02:00
2024-07-05 09:00:32 +02:00
2020-04-16 12:19:26 -07:00
2020-04-16 12:19:27 -07:00
2021-12-08 08:50:11 +01:00
2020-04-13 16:30:04 -07:00
2021-01-06 14:45:00 +01:00
2022-11-02 05:02:22 +01:00
2020-10-29 09:55:15 +01:00
2025-04-03 10:09:42 +02:00
2021-04-03 14:09:44 +00:00
2021-08-09 16:19:52 +02:00
2020-11-16 09:22:35 +01:00
2021-12-15 13:45:50 +08:00
2025-09-20 01:31:57 +01:00
2020-06-16 12:51:47 -07:00
2025-04-04 11:11:27 +02:00
2023-09-23 10:48:11 +02:00
2020-10-22 13:50:23 +02:00
2020-10-22 13:50:22 +02:00
2025-07-14 23:25:04 +01:00
2020-04-23 10:30:20 +02:00
2025-09-20 03:21:45 +01:00
2023-02-22 12:28:07 +00:00
2023-11-25 18:54:24 +00:00
2022-03-23 20:51:13 +08:00
2023-08-11 11:45:40 +02:00
2022-01-07 01:52:30 +08:00
2021-12-15 13:45:50 +08:00
2020-05-20 08:18:45 +02:00
2025-03-11 08:34:59 +01:00
2023-06-14 09:45:37 +00:00
2025-04-04 11:35:21 +02:00
2022-06-25 11:49:11 +02:00
2023-11-20 10:29:18 +01:00
2025-09-20 03:21:20 +01:00
2025-09-20 03:21:51 +01:00
2025-09-20 03:21:09 +01:00
2025-03-19 23:15:11 +00:00
2022-06-13 16:45:31 +00:00
2025-09-20 03:21:14 +01:00
2021-06-30 08:48:19 -04:00
2022-06-14 16:59:13 +02:00
2023-11-30 09:36:03 +00:00
2024-03-26 18:22:40 -04:00
2023-10-25 11:43:43 +00:00
2023-10-25 11:16:20 +02:00
2023-08-30 16:31:56 +02:00
2023-02-25 15:35:59 +00:00
2022-07-02 16:27:31 +02:00
2025-09-20 03:23:01 +01:00
2025-09-20 03:22:16 +01:00
2025-09-20 03:20:10 +01:00
2025-09-20 03:20:11 +01:00
2025-09-20 03:20:11 +01:00
2020-04-17 05:00:40 +00:00
2020-04-08 00:21:27 -07:00
2024-09-12 11:02:55 +02:00
2025-09-20 01:34:20 +01:00
2021-01-29 02:10:02 +08:00
2023-11-08 11:22:19 +01:00
2025-03-19 23:15:11 +00:00
2021-12-14 10:18:04 +01:00
2022-07-12 16:29:03 +02:00
2021-12-22 13:47:02 +08:00
2025-09-20 03:22:16 +01:00
2025-09-20 03:23:24 +01:00
2020-04-02 15:28:22 +02:00
2020-12-30 15:59:58 +01:00
2020-10-01 13:14:30 +02:00
2023-08-11 11:45:22 +02:00
2024-05-02 16:17:14 +02:00
2025-09-20 03:19:44 +01:00
2023-03-22 13:27:11 +01:00
2025-09-20 01:50:24 +01:00
2022-06-25 11:49:11 +02:00
2025-09-20 03:22:31 +01:00
2025-09-20 03:23:05 +01:00
2022-01-20 11:18:48 +08:00
2025-09-20 03:22:28 +01:00
2025-09-20 03:22:29 +01:00
2025-09-20 03:23:04 +01:00
2021-01-28 13:27:29 +08:00
2024-06-02 15:20:14 +01:00
2025-09-20 03:21:46 +01:00
2021-03-17 16:43:51 +01:00
2023-05-30 12:42:13 +01:00
2024-06-01 07:55:42 +00:00
2020-04-17 10:48:43 +02:00
2025-09-20 01:32:02 +01:00
2020-04-23 10:30:19 +02:00
2024-07-06 10:19:40 +00:00
2025-09-20 03:21:20 +01:00
2021-03-07 12:19:01 +01:00
2025-09-20 03:22:08 +01:00
2022-01-05 12:34:57 +01:00
2024-06-02 18:55:27 +01:00
2021-03-24 11:07:37 +01:00
2023-05-18 15:51:07 +00:00
2020-04-27 22:52:00 -07:00
2020-11-19 12:25:33 +01:00
2020-04-27 22:52:00 -07:00
2020-11-16 09:22:35 +01:00
2025-09-20 03:19:51 +01:00
2025-09-20 03:21:20 +01:00
2023-01-18 11:30:05 +01:00
2022-06-25 11:49:10 +02:00
2025-09-20 03:21:17 +01:00
2022-03-23 09:10:41 +01:00
2025-09-20 03:19:25 +01:00
2020-12-30 15:59:58 +01:00
2025-09-20 03:19:44 +01:00
2023-03-22 13:27:11 +01:00
2022-01-20 11:18:48 +08:00
2022-07-29 17:10:37 +02:00
2023-05-17 11:13:27 +02:00
2025-07-17 10:07:54 +02:00
2021-03-30 14:36:58 +02:00
2025-09-20 03:22:48 +01:00
2021-12-15 13:45:50 +08:00
2025-09-20 03:22:30 +01:00
2025-09-20 03:22:01 +01:00
2024-02-23 08:12:39 +01:00
2021-03-24 11:07:34 +01:00
2025-03-19 23:15:11 +00:00
2020-05-03 08:45:29 +02:00
2025-09-20 01:50:26 +01:00
2025-09-20 03:22:45 +01:00
2025-02-07 03:34:21 +01:00
2022-03-16 13:20:27 +01:00
2025-09-20 03:20:33 +01:00
2021-03-25 19:13:03 +00:00
2022-03-16 13:20:27 +01:00
2025-09-20 01:31:56 +01:00
2025-09-20 03:21:38 +01:00
2025-09-20 03:21:20 +01:00
2023-05-17 11:13:15 +02:00
2020-04-02 15:28:23 +02:00
2022-02-24 14:23:26 +08:00
2020-04-09 15:27:37 +00:00
2023-08-25 11:24:56 +00:00
2025-09-20 03:21:20 +01:00
2025-09-20 03:23:10 +01:00
2021-03-07 12:19:01 +01:00