261 Commits

Author SHA1 Message Date
h30032433
3fb451ad0d 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:53 +08:00
openeuler-ci-bot
c7e9dc608c
!697 [sync] PR-695: 添加检查sscanf函数的返回值,防止返回值是EOF错误引发问题
From: @openeuler-sync-bot 
Reviewed-by: @xujing99 
Signed-off-by: @xujing99
2024-08-01 01:39:52 +00:00
hanjinpeng
bb3393e37a cgtop: fix sscanf return code checks
sscanf can return EOF on error, so check that we get a result instead.

(cherry picked from commit a44311428a99003d4d40591cdb023c6d253efd94)
2024-07-31 20:34:19 +08:00
openeuler-ci-bot
caa8b9573c
!682 sd-event: fix fd leak when fd is owned by IO event source
From: @dufuhang 
Reviewed-by: @jiayi0118 
Signed-off-by: @jiayi0118
2024-07-18 08:26:29 +00:00
dufuhang
3def181809 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
2024-07-18 15:52:04 +08:00
openeuler-ci-bot
adeb52cd91
!673 extract systemd-cryptsetup
From: @wangyuhang27 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2024-06-14 01:31:19 +00:00
w30023233
ea52d82e1d extract systemd-cryptsetup 2024-06-13 20:37:42 +08:00
openeuler-ci-bot
e85927e290
!662 main: pass the right error variable
From: @dufuhang 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2024-05-22 09:56:26 +00:00
dufuhang
76f4ff9be8 main: pass the right error variable 2024-05-21 17:03:17 +08:00
openeuler-ci-bot
fd2189b177
!658 修复systemctl disable禁用服务时提示信息却是enable的问题
From: @protkhn 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2024-05-21 02:36:43 +00:00
hanjinpeng
d8914bfc58 fix log message print not match when glob patterns passed to disable service 2024-05-16 12:11:13 +08:00
openeuler-ci-bot
d4c822cb05
!654 添加systemctl的service-log-level/target命令的自动提示补全
From: @protkhn 
Reviewed-by: @dillon_chen, @linfong 
Signed-off-by: @dillon_chen, @linfong
2024-05-13 09:12:23 +00:00
hanjinpeng
bee8d8c7a0 bash completion add systemctl service-log-level/target 2024-05-09 20:55:40 +08:00
openeuler-ci-bot
24a8665530
!651 同步systemd上游社区补丁
From: @protkhn 
Reviewed-by: @xujing99 
Signed-off-by: @xujing99
2024-05-09 09:33:28 +00:00
hanjinpeng
50b07322ee sync patches from systemd community 2024-05-08 16:58:23 +08:00
openeuler-ci-bot
da34860a97
!648 [sync] PR-645: 同步上游社区补丁
From: @openeuler-sync-bot 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2024-04-29 10:33:54 +00:00
h30032433
dc60336942 sync patches from systemd community
(cherry picked from commit fd4fd656a4729f1a2b273e6836b3663591144af7)
2024-04-29 17:32:34 +08:00
openeuler-ci-bot
72c95c48ae
!636 修复使用环境变量无法修改udevadm test-builtin命令的默认日志级别问题
From: @protkhn 
Reviewed-by: @xujing99 
Signed-off-by: @xujing99
2024-04-29 06:12:32 +00:00
hanjinpeng
1195b77e83 udevadm allow to override the default log level by environment variable 2024-04-28 13:36:33 +08:00
openeuler-ci-bot
7eb700ff46
!633 修复systemd-analyze -q 命令执行报invalid的错误
From: @protkhn 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2024-04-28 02:13:43 +00:00
hanjinpeng
d0e118b2d3 Fix systemd-analyze -q option invalid issue 2024-04-24 17:10:54 +08:00
openeuler-ci-bot
b0c965d0f4
!608 修复systemd在编译后进行rpm打包时候的找不到文件的告警
From: @protkhn 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2024-04-19 09:05:14 +00:00
hanjinpeng
db8a44101c Merge branch 'openEuler-24.03-LTS' of gitee.com:src-openeuler/systemd into openEuler-24.03-LTS
Signed-off-by: hanjinpeng <hanjinpeng@kylinos.cn>
2024-04-18 01:25:41 +00:00
openeuler-ci-bot
5f89cf3843
!628 修复 CVE-2023-50387 和 CVE-2023-50868
From: @huyubiao 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2024-04-17 12:20:12 +00:00
huyubiao
633eb2deae fix CVE-2023-50387 and CVE-2023-50868 2024-04-17 16:16:38 +08:00
hanjinpeng
aea86b057a Fix warning for file not found during rpm packaging 2024-04-17 14:24:44 +08:00
openeuler-ci-bot
2b20884ae6
!599 更新过时的URL
From: @no_coke 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2024-04-12 06:21:41 +00:00
GuoCe
1b2f1bfd18 Update outdated URL 2024-04-12 13:32:59 +08:00
openeuler-ci-bot
a9627ee277
!596 [sync] PR-588: 同步上游社区补丁
From: @openeuler-sync-bot 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2024-03-28 03:02:03 +00:00
h30032433
6b2a2cf984 sync patches from systemd community
(cherry picked from commit dc86afa7d17f12540dfc1b35c8d081d51996415f)
2024-03-27 17:15:53 +08:00
openeuler-ci-bot
3d4d4de28d
!581 [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:26:33 +00:00
h30032433
8b3af8b2ac switch systemd back to cgroup v1 to prevent the docker.service startup failure
(cherry picked from commit b312404196accbf4cb5b228b4efebfd688c9c2f1)
2024-03-19 19:53:17 +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
h30032433
ef8501e789 add cpuset-cgv1 and freezer-cgv1 macros, add missing sw_64 macro 2024-02-28 10:50:08 +08:00
openeuler-ci-bot
39913c59e5
!538 allow underscore in hostname
From: @huyubiao 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2024-02-19 07:09:40 +00:00
h30032433
de01380543 allow underscore in hostname 2024-02-19 14:31:45 +08:00
openeuler-ci-bot
df1bd60fd4
!531 update systemd to v255
From: @huyubiao 
Reviewed-by: @licunlong, @openeuler-basic 
Signed-off-by: @openeuler-basic, @overweight
2024-02-06 02:16:02 +00:00
huyubiao
3aab45c265 update systemd to v255 2024-01-29 09:50:22 +08:00
openeuler-ci-bot
86198be34c
!518 actually check authenticated flag of SOA transaction in resolved
From: @wangyuhang27 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2023-12-28 08:38:39 +00:00
wangyuhang
606367f948 actually check authenticated flag of SOA transaction in resolved 2023-12-28 15:49:56 +08:00
openeuler-ci-bot
1537c5cd89
!510 fix /boot unmounted issue when the device is suspended during boot time
From: @xujing99 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2023-12-21 09:12:19 +00:00
xujing
d5159b38a1 fix /boot unmounted issue when the device is suspended during boot time 2023-12-21 14:19:57 +08:00
openeuler-ci-bot
8ab7718e2c
!490 同步上游社区补丁
From: @huyubiao 
Reviewed-by: @licunlong 
Signed-off-by: @licunlong
2023-12-18 11:07:43 +00:00
h30032433
f097b1feb4 sync patches from systemd community 2023-12-18 17:29:00 +08:00
openeuler-ci-bot
7eabe721f8
!475 同步上游社区补丁
From: @hongjinghao 
Reviewed-by: @openeuler-basic 
Signed-off-by: @openeuler-basic
2023-12-12 12:51:53 +00:00
hongjinghao
48cf301819 sync patches from systemd community 2023-12-12 19:19:08 +08:00