274 Commits

Author SHA1 Message Date
肖在
1e48b99fca fix memory leak in repart 2024-12-09 20:44:31 +08:00
openeuler-ci-bot
9685172941
!782 [sync] PR-779: network networkd address does not set up firewall rules
From: @openeuler-sync-bot 
Reviewed-by: @protkhn 
Signed-off-by: @protkhn
2024-12-09 11:31:02 +00:00
zhangyao
6f3edf5802 network networkd address does not set up firewall rules
(cherry picked from commit 62bb9204099329e4e2362084f60884613f6e3a4f)
2024-12-09 18:05:54 +08:00
openeuler-ci-bot
50f1c99ed3
!775 escape spaces during serialization
From: @zhang-yao-2022 
Reviewed-by: @xujing99 
Signed-off-by: @xujing99
2024-12-09 08:46:57 +00:00
h30032433
3ff944624c escape spaces during serialization 2024-12-09 15:46:05 +08:00
openeuler-ci-bot
7944eae7dc
!753 [sync] PR-748: pid1: add env var to override default mount rate limit interval
From: @openeuler-sync-bot 
Reviewed-by: @jiayi0118 
Signed-off-by: @jiayi0118
2024-11-13 01:15:23 +00:00
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
openeuler-ci-bot
583be0d6f9
!745 [sync] PR-740: 修复systemctl显示service服务字段参数RootImageOptions问题
From: @openeuler-sync-bot 
Reviewed-by: @xujing99 
Signed-off-by: @xujing99
2024-11-07 12:18:12 +00:00
hanjinpeng
5a1e73b638 systemctl: fix printing of RootImageOptions
(cherry picked from commit 426002625d6bba31a0cf6925c4c85075122c51ab)
2024-11-07 19:05:12 +08:00
openeuler-ci-bot
3e5a3b46d1
!742 [sync] PR-738: mount: optimize mountinfo traversal by decoupling device discovery
From: @openeuler-sync-bot 
Reviewed-by: @jiayi0118 
Signed-off-by: @jiayi0118
2024-11-07 08:40:48 +00:00
xujing
2b45f712d7 mount: optimize mountinfo traversal by decoupling device discovery
(cherry picked from commit 6887b918443912bf1c901ac4f530ff93b1d77eb8)
2024-11-07 09:28:43 +08:00
openeuler-ci-bot
2551843c08
!726 [sync] PR-724: fix cgroup v2 cpuset function error and optimize the code of cpuset and freezer
From: @openeuler-sync-bot 
Reviewed-by: @jiayi0118 
Signed-off-by: @jiayi0118
2024-09-24 03:44:01 +00: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
openeuler-ci-bot
ecc70ab702
!703 [sync] PR-701: dont create dont-synthesize-nobody when login shell is /sbin/nologin or /usr/sbin/nologin
From: @openeuler-sync-bot 
Reviewed-by: @xujing99 
Signed-off-by: @xujing99
2024-08-16 07:49:38 +00: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
openeuler-ci-bot
9ce3679533
!695 添加检查sscanf函数的返回值,防止返回值是EOF错误引发问题
From: @protkhn 
Reviewed-by: @xujing99 
Signed-off-by: @xujing99
2024-07-30 02:09:43 +00: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
openeuler-ci-bot
60d8eb1fe5
!693 [sync] PR-682: sd-event: fix fd leak when fd is owned by IO event source
From: @openeuler-sync-bot 
Reviewed-by: @jiayi0118 
Signed-off-by: @jiayi0118
2024-07-18 09:02:25 +00: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
openeuler-ci-bot
ec351a86b1
!674 [sync] PR-673: extract systemd-cryptsetup
From: @openeuler-sync-bot 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2024-06-14 02:13:50 +00:00
w30023233
4ffa47c87c extract systemd-cryptsetup
(cherry picked from commit ea52d82e1d06267a79e171207061df1d44b2c23d)
2024-06-14 09:39:51 +08:00
openeuler-ci-bot
7fc84bb785
!663 [sync] PR-662: main: pass the right error variable
From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2024-05-24 08:50:19 +00:00
dufuhang
ad931e3577 main: pass the right error variable
(cherry picked from commit 76f4ff9be85e57b0ca9b6e782a79740623c31571)
2024-05-22 17:56:30 +08:00
openeuler-ci-bot
069b73a492
!660 [sync] PR-658: 修复systemctl disable禁用服务时提示信息却是enable的问题
From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2024-05-21 07:16:46 +00: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
openeuler-ci-bot
0074702c10
!656 [sync] PR-654: 添加systemctl的service-log-level/target命令的自动提示补全
From: @openeuler-sync-bot 
Reviewed-by: @xujing99 
Signed-off-by: @xujing99
2024-05-14 01:18:02 +00:00
hanjinpeng
1d5153e037 bash completion add systemctl service-log-level/target
(cherry picked from commit bee8d8c7a056dd4bfed2a1e7ade1586763523be0)
2024-05-13 19:04:04 +08:00
openeuler-ci-bot
307144ce5a
!652 [sync] PR-651: 同步systemd上游社区补丁
From: @openeuler-sync-bot 
Reviewed-by: @xujing99 
Signed-off-by: @xujing99
2024-05-11 09:02:14 +00:00
hanjinpeng
efb4998ba2 sync patches from systemd community
(cherry picked from commit 50b07322eec409d406c809c1984c0c15eb614390)
2024-05-09 17:44:46 +08:00
openeuler-ci-bot
ab9ba7f55c
!649 [sync] PR-645: 同步上游社区补丁
From: @openeuler-sync-bot 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2024-04-29 10:34:02 +00:00
h30032433
480d22e3c0 sync patches from systemd community
(cherry picked from commit fd4fd656a4729f1a2b273e6836b3663591144af7)
2024-04-29 17:32:38 +08:00
openeuler-ci-bot
c4e0b929a3
!638 [sync] PR-636: 修复使用环境变量无法修改udevadm test-builtin命令的默认日志级别问题
From: @openeuler-sync-bot 
Reviewed-by: @xujing99 
Signed-off-by: @xujing99
2024-04-29 06:28:08 +00: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
openeuler-ci-bot
65ce538e1b
!635 修复systemd-analyze -q 命令执行报invalid的错误
From: @protkhn 
Reviewed-by: @xujing99 
Signed-off-by: @xujing99
2024-04-29 03:42:26 +00:00
hanjinpeng
37249df4ab Fix systemd-analyze -q option invalid issue 2024-04-28 11:57:16 +08:00
openeuler-ci-bot
c3c23d4c6a
!631 修复systemd在编译后进行rpm打包时候的找不到文件的告警
From: @protkhn 
Reviewed-by: @xujing99 
Signed-off-by: @xujing99
2024-04-23 01:15:05 +00:00
hanjinpeng
4d8160b22f Fix warning for file not found during rpm packaging 2024-04-19 21:13:10 +08:00
openeuler-ci-bot
0426a95e9e
!629 修复 CVE-2023-50387 和 CVE-2023-50868
From: @huyubiao 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2024-04-17 12:20:28 +00:00
huyubiao
df90da6e58 fix CVE-2023-50387 and CVE-2023-50868 2024-04-17 16:19:07 +08:00
openeuler-ci-bot
94e9337f8e
!600 [sync] PR-599: 更新过时的URL
From: @openeuler-sync-bot 
Reviewed-by: @xujing99 
Signed-off-by: @xujing99
2024-04-16 07:30:45 +00:00
GuoCe
0ace029dcb Update outdated URL
(cherry picked from commit 1b2f1bfd1866ecc86ea8fecfcc7e46eac05a66db)
2024-04-12 14:21:54 +08:00
openeuler-ci-bot
eb78d4a213
!597 [sync] PR-588: 同步上游社区补丁
From: @openeuler-sync-bot 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2024-03-28 03:12:32 +00:00
h30032433
7796258521 sync patches from systemd community
(cherry picked from commit dc86afa7d17f12540dfc1b35c8d081d51996415f)
2024-03-27 17:16:28 +08:00
openeuler-ci-bot
a95bac70fe
!582 [sync] PR-580: switch systemd back to cgroup v1 to prevent the docker.service startup failure
From: @openeuler-sync-bot 
Reviewed-by: @overweight 
Signed-off-by: @overweight
2024-03-20 01:27:05 +00: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
openeuler-ci-bot
bddb9a3f91
!565 move the architecture patches after Patch9800 (excluding Patch9800)
From: @huyubiao 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2024-03-04 03:29:11 +00:00
h30032433
af35d8ee94 move the architecture patches after Patch9800 (excluding Patch9800) 2024-03-04 11:09:39 +08:00
openeuler-ci-bot
88a7974105
!564 手动同步:PR-562
From: @licunlong 
Reviewed-by: @jiayi0118 
Signed-off-by: @jiayi0118
2024-02-29 13:02:38 +00:00
licunlong
29abb4e1c3 fix the compilation warning caused by misusing const 2024-02-29 20:23:25 +08:00
openeuler-ci-bot
78579e84fa
!554 add cpuset-cgv1 and freezer-cgv1 macros, add missing sw_64 macro
From: @huyubiao 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2024-02-28 09:05:00 +00:00