Paul Eggert
4b05739168
cp: fclonefileat security fix + CLONE_ACL + fixups
...
* src/copy.c: Some changes if HAVE_FCLONEFILEAT && !USE_XATTR.
(fd_has_acl): New function.
(CLONE_ACL): Default to 0.
(copy_reg): Use CLONE_NOFOLLOW to avoid races like CVE-2021-30995
<https://www.trendmicro.com/en_us/research/22/a/
analyzing-an-old-bug-and-discovering-cve-2021-30995-.html>.
Use CLONE_ACL if available and working, falling back to cloning
without it if it fails due to EINVAL.
If the only problem with fclonefileat is that it would create the
file with the wrong timestamp, or with too few permissions,
do that but fix the timestamp and permissions afterwards,
rather than falling back on a traditional copy.
2023-02-16 15:40:06 -08:00
..
2022-09-15 00:44:01 -05:00
2021-03-29 14:10:09 +01:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-02-06 13:09:40 +00:00
2023-02-06 13:09:40 +00:00
2023-01-01 14:50:15 +00:00
2023-02-16 15:40:06 -08:00
2023-01-27 11:03:38 -08:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2022-01-31 12:07:39 -08:00
2023-02-03 16:42:01 +00:00
2021-09-15 15:35:53 +01:00
2023-01-17 21:44:48 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-06 14:26:40 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-02-06 13:09:40 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-05 12:47:41 -08:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-02-10 18:06:54 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2005-07-18 07:52:37 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2021-10-31 22:36:46 -07:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-05 12:47:41 -08:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-02 23:30:07 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2003-07-06 06:08:40 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-31 08:54:37 -08:00
2023-01-07 15:50:51 -08:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2012-01-09 21:51:59 +01:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-27 11:03:38 -08:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-05 12:47:41 -08:00
2023-01-06 14:26:40 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-02-10 18:06:54 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-05 12:47:41 -08:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-06 14:26:40 +00:00
2023-01-06 14:26:40 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-06 14:26:40 +00:00
2023-01-01 14:50:15 +00:00
2023-02-06 13:09:40 +00:00
2023-02-06 13:09:40 +00:00
2023-01-01 14:50:15 +00:00
2023-01-05 12:47:41 -08:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-02-06 16:28:53 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-06 14:26:40 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2007-07-10 19:00:00 +02:00
2007-07-10 19:00:00 +02:00
2023-01-01 14:50:15 +00:00
2012-01-09 21:51:59 +01:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-02-05 14:15:03 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00
2023-01-01 14:50:15 +00:00