Miklos Szeredi
79b2e7bda7
UPSTREAM: fuse: add FUSE_WRITE_KILL_PRIV
...
In the FOPEN_DIRECT_IO case the write path doesn't call file_remove_privs()
and that means setuid bit is not cleared if unpriviliged user writes to a
file with setuid bit set.
pjdfstest chmod test 12.t tests this and fails.
Fix this by adding a flag to the FUSE_WRITE message that requests clearing
privileges on the given file. This needs
This better than just calling fuse_remove_privs(), because the attributes
may not be up to date, so in that case a write may miss clearing the
privileges.
Test case:
$ passthrough_ll /mnt/pasthrough-mnt -o default_permissions,allow_other,cache=never
$ mkdir /mnt/pasthrough-mnt/testdir
$ cd /mnt/pasthrough-mnt/testdir
$ prove -rv pjdfstests/tests/chmod/12.t
Reported-by: Vivek Goyal <vgoyal@redhat.com >
Change-Id: Ibbdc754c6c5c96f33dc87a8a906c6c58b68b414b
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com >
Tested-by: Vivek Goyal <vgoyal@redhat.com >
2025-12-03 06:31:58 -05:00
..
2025-09-02 08:35:31 +00:00
2022-08-25 11:15:11 +02:00
2019-08-05 04:34:41 -07:00
2019-09-19 09:09:29 +02:00
2020-06-07 13:17:54 +02:00
2024-12-16 01:21:42 +02:00
2020-06-25 15:33:10 +02:00
2025-07-01 00:56:04 +03:00
2023-04-06 14:00:28 +03:00
2023-08-11 11:45:11 +02:00
2025-08-28 03:25:52 +03:00
2021-04-01 13:29:57 +05:30
2023-08-11 11:45:32 +02:00
2025-09-30 21:35:05 +01:00
2025-08-28 03:26:01 +03:00
2024-02-23 08:12:42 +01:00
2025-08-28 03:26:47 +03:00
2019-12-31 16:34:57 +01:00
2024-11-08 16:19:15 +01:00
2019-08-06 19:06:52 +02:00
2023-06-08 10:42:23 +00:00
2020-04-13 10:45:03 +02:00
2021-01-12 01:05:05 +00:00
2024-01-23 14:08:46 +00:00
2019-07-24 12:26:58 -07:00
2021-07-20 16:16:01 +02:00
2022-11-11 10:43:35 -08:00
2019-04-05 12:50:03 -07:00
2020-04-24 15:19:09 -07:00
2020-07-25 21:10:18 +05:30
2021-04-27 11:51:47 -07:00
2025-12-03 06:31:58 -05:00
2020-08-04 19:37:49 +05:30
2020-12-30 11:25:48 +01:00
2025-08-28 03:27:22 +03:00
2025-09-16 13:55:16 +02:00
2023-06-09 10:23:54 +02:00
2025-08-20 17:20:40 +01:00
2019-02-27 10:08:58 +01:00
2024-10-31 21:43:13 +00:00
2020-01-14 20:07:01 +01:00
2020-09-20 23:45:10 +05:30
2019-10-31 11:03:09 -07:00
2020-08-04 19:37:49 +05:30
2020-01-15 14:52:07 +00:00
2021-01-06 14:44:59 +01:00
2019-09-16 08:21:47 +02:00
2020-09-23 12:10:59 +02:00
2021-01-06 14:44:59 +01:00
2020-04-27 22:51:59 -07:00
2020-08-10 19:48:02 +02:00
2025-08-31 10:09:58 +01:00
2023-05-17 11:13:09 +02:00
2025-08-20 17:19:08 +01:00
2021-01-06 14:44:59 +01:00
2020-12-10 12:39:56 +05:30
2021-09-27 15:54:11 +05:30
2020-06-17 06:00:22 +05:30
2020-06-17 06:00:22 +05:30
2020-06-25 17:35:34 -04:00
2020-05-28 12:20:07 +02:00
2024-09-12 11:02:52 +02:00
2023-07-13 21:06:22 +03:00
2022-01-05 12:34:59 +01:00
2020-11-05 11:08:51 +01:00
2025-09-30 21:35:02 +01:00
2019-07-21 09:03:02 +02:00
2024-12-13 22:44:19 +01:00
2021-04-03 14:09:44 +00:00
2023-09-23 10:48:05 +02:00
2025-06-11 10:19:27 +02:00
2025-08-28 03:25:33 +03:00
2022-11-24 03:17:53 +02:00
2019-10-07 15:27:39 -04:00
2019-05-16 16:07:15 -07:00
2021-06-28 10:09:35 +05:30
2021-06-28 10:09:35 +05:30
2019-08-10 03:28:16 -07:00
2020-07-07 12:09:16 +05:30
2019-04-05 12:50:03 -07:00
2019-08-09 21:46:53 +05:30
2020-03-26 10:50:04 +05:30
2019-02-22 12:52:20 -08:00
2022-06-25 11:48:59 +02:00
2024-05-02 16:17:14 +02:00
2019-05-28 14:45:21 -07:00
2020-02-01 14:39:37 +00:00
2021-09-22 11:48:04 +02:00
2020-04-02 15:28:16 +02:00
2021-09-08 04:43:44 -07:00
2019-02-14 16:04:19 -08:00
2019-06-17 19:51:56 +02:00
2025-08-28 03:26:13 +03:00
2019-03-01 12:40:58 +05:30
2019-11-11 09:48:22 +02:00
2020-02-19 23:31:49 -08:00
2020-01-09 15:11:34 -08:00
2023-01-18 11:30:30 +01:00
2023-09-23 10:48:08 +02:00
2022-11-24 03:17:53 +02:00
2019-07-16 00:46:24 -07:00
2020-05-13 22:59:08 -07:00
2019-06-04 08:02:33 +02:00
2021-05-22 10:59:31 +02:00
2025-07-17 10:07:54 +02:00
2019-02-06 10:14:35 -07:00
2025-08-20 17:19:10 +01:00
2023-03-11 16:32:00 +01:00
2022-11-17 20:55:50 +05:30
2020-07-22 09:32:09 +02:00
2025-09-02 08:35:50 +00:00
2020-04-22 20:28:40 +00:00
2023-01-25 00:39:14 +00:00
2020-01-26 19:04:57 +00:00
2021-04-01 13:29:57 +05:30
2025-08-13 09:44:36 +02:00
2019-02-22 13:00:38 +02:00
2020-10-25 11:48:14 +01:00
2020-12-02 08:48:07 +01:00
2025-08-28 03:26:49 +03:00
2022-03-08 19:04:07 +01:00
2024-08-19 05:32:03 +02:00