1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-04 21:47:31 +03:00
Mike Yuan 26d98cdd78
tmpfiles: add conditionalized execute bit (X) support
According to setfacl(1), "the character X stands for
the execute permission if the file is a directory
or already has execute permission for some user."

After this commit, parse_acl() would return 3 acl
objects. The newly-added acl_exec object contains
entries that are subject to conditionalized execute
bit mangling. In tmpfiles, we would iterate the acl_exec
object, check the permission of the target files,
and remove the execute bit if necessary.

Here's an example entry:
A /tmp/test - - - - u:test:rwX

Closes #25114
2023-04-27 15:15:09 +08:00
..
2022-10-14 15:56:58 +02:00
2022-06-28 13:10:05 +02:00
2023-04-13 00:13:44 +08:00
2022-06-28 16:05:31 +02:00
2022-11-16 00:12:16 +01:00
2023-03-10 11:41:03 +01:00
2022-06-28 13:10:05 +02:00
2023-02-12 00:54:07 +01:00
2022-12-07 10:26:31 +01:00
2023-04-22 17:41:17 +01:00
2021-01-04 11:01:17 +00:00
2021-06-30 23:33:00 +09:00
2023-01-19 23:11:36 +09:00
2023-03-08 15:32:59 +01:00
2023-02-22 14:46:19 +09:00
2023-04-20 21:54:59 +02:00
2023-03-10 11:41:03 +01:00
2022-08-23 12:14:58 +02:00
2023-03-14 18:03:32 +01:00
2022-08-28 00:03:36 +09:00
2023-03-10 11:41:03 +01:00
2023-01-20 15:32:16 +09:00
2020-12-16 17:21:48 +01:00