Adhemerval Zanella 65341f7bbe linux: Use fchmodat2 on fchmod for flags different than 0 (BZ 26401)
Linux 6.6 (09da082b07bbae1c) added support for fchmodat2, which has
similar semantics as fchmodat with an extra flag argument.  This
allows fchmodat to implement AT_SYMLINK_NOFOLLOW and AT_EMPTY_PATH
without the need for procfs.

The syscall is registered on all architectures (with value of 452
except on alpha which is 562, commit 78252deb023cf087).

The tst-lchmod.c requires a small fix where fchmodat checks two
contradictory assertions ('(st.st_mode & 0777) == 2' and
'(st.st_mode & 0777) == 3').

Checked on x86_64-linux-gnu on a 6.6 kernel.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
2023-11-20 13:15:24 -03:00
..
2007-02-21 09:36:46 +00:00
2023-02-06 16:16:19 +00:00
2021-06-15 10:42:11 -03:00
2023-06-01 12:40:05 -04:00
2023-06-01 12:40:05 -04:00
2023-06-01 12:40:05 -04:00
2023-06-01 12:40:05 -04:00
2021-06-15 10:42:11 -03:00
2021-06-15 10:42:11 -03:00
2021-06-15 10:42:11 -03:00
2023-06-01 12:40:05 -04:00
2023-06-01 12:40:05 -04:00
2021-06-15 10:42:11 -03:00
2023-05-20 18:16:13 +02:00
2023-06-01 12:40:05 -04:00
2023-06-01 12:40:05 -04:00
2023-06-01 12:40:05 -04:00
2023-06-01 12:40:05 -04:00
2021-06-15 10:42:11 -03:00
2021-06-15 10:42:11 -03:00
2021-07-08 14:08:14 -03:00