xujing
39ee48a0f8
pid1: add env var to override default mount rate limit interval
...
(cherry picked from commit ba1f969e3d261da60e85338a394a3607e0a205a4)
2024-11-12 21:34:03 +08:00
hanjinpeng
5a1e73b638
systemctl: fix printing of RootImageOptions
...
(cherry picked from commit 426002625d6bba31a0cf6925c4c85075122c51ab)
2024-11-07 19:05:12 +08:00
xujing
2b45f712d7
mount: optimize mountinfo traversal by decoupling device discovery
...
(cherry picked from commit 6887b918443912bf1c901ac4f530ff93b1d77eb8)
2024-11-07 09:28:43 +08:00
xujing
2b312b44c0
cgroup: fix cgroup v2 cpuset function error and optimize the code of cpuset and freezer
...
(cherry picked from commit b6d240c672f4ac0327394f4d5e9c9b15d2e7cc1e)
2024-09-23 16:20:41 +08:00
h30032433
ddf911b10b
dont create dont-synthesize-nobody when login shell is /sbin/nologin or /usr/sbin/nologin
...
(cherry picked from commit ad22ea4e73c16741f302b80a552982dbea9de216)
2024-08-14 11:26:56 +08:00
hanjinpeng
a44311428a
cgtop: fix sscanf return code checks
...
sscanf can return EOF on error, so check that we get a result instead.
2024-07-26 14:08:00 +08:00
dufuhang
3a390e6003
sd-event: fix fd leak when fd is owned by IO event source
...
When an IO event source owns relevant fd, replacing with a new fd leaks
the previously assigned fd.
===
sd_event_add_io(event, &s, fd, ...);
sd_event_source_set_io_fd_own(s, true);
sd_event_source_set_io_fd(s, new_fd); <-- The previous fd is not closed.
sd_event_source_unref(s); <-- new_fd is closed as expected.
===
Without the change, valgrind reports the leak:
==998589==
==998589== FILE DESCRIPTORS: 4 open (3 std) at exit.
==998589== Open file descriptor 4:
==998589== at 0x4F119AB: pipe2 (in /usr/lib64/libc.so.6)
==998589== by 0x408830: test_sd_event_source_set_io_fd (test-event.c:862)
==998589== by 0x403302: run_test_table (tests.h:171)
==998589== by 0x408E31: main (test-event.c:935)
==998589==
==998589==
==998589== HEAP SUMMARY:
==998589== in use at exit: 0 bytes in 0 blocks
==998589== total heap usage: 33,305 allocs, 33,305 frees, 1,283,581 bytes allocated
==998589==
==998589== All heap blocks were freed -- no leaks are possible
==998589==
==998589== For lists of detected and suppressed errors, rerun with: -s
==998589== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
(cherry picked from commit 2fa4805)
(cherry picked from commit 6d2dd43)
(cherry picked from commit 5f8cf63)
Conflict:test case adaptation
Reference:a4bb56c61a
(cherry picked from commit 3def181809e3239522241442f1b8a99b34961d81)
2024-07-18 16:29:57 +08:00
w30023233
4ffa47c87c
extract systemd-cryptsetup
...
(cherry picked from commit ea52d82e1d06267a79e171207061df1d44b2c23d)
2024-06-14 09:39:51 +08:00
dufuhang
ad931e3577
main: pass the right error variable
...
(cherry picked from commit 76f4ff9be85e57b0ca9b6e782a79740623c31571)
2024-05-22 17:56:30 +08:00
hanjinpeng
d425e27396
fix log message print not match when glob patterns passed to disable service
...
(cherry picked from commit d8914bfc58b92818f088396d41e22c63ef6e59bd)
2024-05-21 10:36:48 +08:00
hanjinpeng
1d5153e037
bash completion add systemctl service-log-level/target
...
(cherry picked from commit bee8d8c7a056dd4bfed2a1e7ade1586763523be0)
2024-05-13 19:04:04 +08:00
hanjinpeng
efb4998ba2
sync patches from systemd community
...
(cherry picked from commit 50b07322eec409d406c809c1984c0c15eb614390)
2024-05-09 17:44:46 +08:00
h30032433
480d22e3c0
sync patches from systemd community
...
(cherry picked from commit fd4fd656a4729f1a2b273e6836b3663591144af7)
2024-04-29 17:32:38 +08:00
hanjinpeng
88b5193f73
udevadm allow to override the default log level by environment variable
...
(cherry picked from commit 1195b77e8381047f821da184e15a778c3c48af4d)
2024-04-29 14:12:59 +08:00
hanjinpeng
37249df4ab
Fix systemd-analyze -q option invalid issue
2024-04-28 11:57:16 +08:00
hanjinpeng
4d8160b22f
Fix warning for file not found during rpm packaging
2024-04-19 21:13:10 +08:00
huyubiao
df90da6e58
fix CVE-2023-50387 and CVE-2023-50868
2024-04-17 16:19:07 +08:00
GuoCe
0ace029dcb
Update outdated URL
...
(cherry picked from commit 1b2f1bfd1866ecc86ea8fecfcc7e46eac05a66db)
2024-04-12 14:21:54 +08:00
h30032433
7796258521
sync patches from systemd community
...
(cherry picked from commit dc86afa7d17f12540dfc1b35c8d081d51996415f)
2024-03-27 17:16:28 +08:00
h30032433
128d0b3b52
switch systemd back to cgroup v1 to prevent the docker.service startup failure
...
(cherry picked from commit b312404196accbf4cb5b228b4efebfd688c9c2f1)
2024-03-19 19:53:25 +08:00
h30032433
af35d8ee94
move the architecture patches after Patch9800 (excluding Patch9800)
2024-03-04 11:09:39 +08:00
licunlong
29abb4e1c3
fix the compilation warning caused by misusing const
2024-02-29 20:23:25 +08:00
h30032433
ef8501e789
add cpuset-cgv1 and freezer-cgv1 macros, add missing sw_64 macro
2024-02-28 10:50:08 +08:00
h30032433
de01380543
allow underscore in hostname
2024-02-19 14:31:45 +08:00
huyubiao
3aab45c265
update systemd to v255
2024-01-29 09:50:22 +08:00
wangyuhang
606367f948
actually check authenticated flag of SOA transaction in resolved
2023-12-28 15:49:56 +08:00
xujing
d5159b38a1
fix /boot unmounted issue when the device is suspended during boot time
2023-12-21 14:19:57 +08:00
h30032433
f097b1feb4
sync patches from systemd community
2023-12-18 17:29:00 +08:00
hongjinghao
48cf301819
sync patches from systemd community
2023-12-12 19:19:08 +08:00
jiahua.yu
e5316e0a8d
Init support for ppc64le
2023-12-04 10:02:26 +08:00
hongjinghao
6f1ea72415
journal: don't enable systemd-journald-audit.socket
2023-09-15 17:13:54 +08:00
wangyuhang
caecdd36fc
add a new switch to control whether udev complies with the new SAT standards; add sense_data.py to check if the device meets the new SAT standards; fix compilation failure with - O0 option
2023-08-17 17:11:08 +08:00
h30032433
d86e446005
sync the patch from v249
2023-07-27 00:50:15 +08:00
h30032433
a02052f289
fix the dynamic library cannot be found
2023-07-29 11:13:34 +08:00
huyubiao
5ea7594cde
systemd update to v253
2023-07-24 05:10:36 +08:00
hongjinghao
443db3dc3c
sync patches from systemd community
2023-06-19 11:08:46 +08:00
chenjiayi
1d68f589fa
backport upstream patches to fix event loss when the whole disk is locked
2023-06-11 08:05:32 +08:00
licunlong
8fca0ab1e6
set the cpuset.cpus/mems of machine.slice to all by default
2023-06-08 20:16:11 +08:00
hongjinghao
0bd6b14818
sync patches fromsystemd community
2023-03-22 15:05:56 +08:00
wangyuhang
ec61971d90
fix symlinks to NVMe drives are missing in /dev/disk/by-path
2023-03-07 17:10:29 +08:00
misaka00251
4b14c7533d
Exclude riscv64 unsupported files for now, might add them back later
2023-02-28 11:16:24 +08:00
yangmingtaip
ee2b4f73a8
delete unused patch files
...
(cherry picked from commit 0b021eef15e6fc50b960560f18520e9d3fb24720)
2023-01-19 11:25:07 +08:00
yangmingtaip
96d52d6f72
backport patches from upstream and add patchs to enhance compatibility and features
...
(cherry picked from commit c6e3325c5fc233470f4e4292f88eea8c7923de13)
2023-01-16 10:02:05 +08:00
h30032433
37cc3c3e20
fix CVE-2022-4415
2022-12-29 11:50:18 +08:00
Jingyun Hua
bf7e2d760f
Add loongarch for missing_syscall_def.h
...
Signed-off-by: Jingyun Hua <huajingyun@loongson.cn>
2022-12-13 02:49:44 +00:00
yangmingtaip
d5412f3eb6
optimize some configurations
...
(cherry picked from commit df0337e3ee5b07b01a8b4f5e03e5c7747b55610c)
2022-11-23 21:32:26 +08:00
Jingyun Hua
96ed02e859
Add loongarch support
...
Signed-off-by: Jingyun Hua <huajingyun@loongson.cn>
2022-11-18 07:53:23 +00:00
yangmingtaip
fcb9518129
fix CVE-2022-3821
...
(cherry picked from commit 4f0bd04bd2854ed0977738b537026efc9bdba535)
2022-11-08 10:20:37 +08:00
wzx
32e150ecbc
Add sw64 architecture
...
Signed-off-by: wzx <wuzx1226@qq.com>
(cherry picked from commit 06e47522002f17c287b0be1c32dbda5a7ab68df0)
2022-11-07 16:51:20 +08:00
wangyuhang
80bb4f7896
sync systemd-stable-249 patches from systemd community
2022-10-11 09:32:44 +08:00