35 Commits

Author SHA1 Message Date
yezengruan
b755f62f05 do not print awk warning in libcare-patch-make
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit 193a984a721a42143591603a8fbf8630ac08bfa5)
2022-10-08 16:54:15 +08:00
yezengruan
e4460b8c17 update libcareplus to version 1.0.0-12
kpatch_process: fix possible double free.
ptrace: fix NULL pointer access problem
fix patched process crashing when acccess the global var
fix probably restore cc symbol link fail when kill patch building uncourteous
optimize: Remove unnecessary comparison code

Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit f3d59711105eb667fa2f920958fcbdbb7068afd2)
2022-10-08 16:51:56 +08:00
wangcichen
f9026db701 modify scripts/pkgbuild to make kpatch'es for the RPM-based packages
1.support specify patch-id, build-id and sanity check
2.simplify script and put it into libcare devel package

(cherry picked from commit a5aa48f473e6f9edca99c0316798f2180055421a)
2022-10-08 16:51:56 +08:00
yezengruan
9a929dde86 update spec with openeuler !31 !4
libcare-dump: change the return value
gensrc: skip vector instruction in str_do_gotpcrel

Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit c1712c9eb7c34f10f44dd0e1688acc713cbb98b6)
2022-10-08 16:51:56 +08:00
yezengruan
7b6889f0a0 update changelog
Signed-off-by: yezengruan <yezengruan@huawei.com>
(cherry picked from commit 7c961292ea337a229dc7724322f8e0a193c2ade5)
2022-10-08 16:51:56 +08:00
yezengruan
785920d783 update spec with openeuler !28
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-10-08 16:51:56 +08:00
yezengruan
eec83278c5 selinux: enable libcare-ctl to mprotect qemu process
Signed-off-by: Bihong Yu <yubihong@huawei.com>
2022-10-08 16:51:56 +08:00
yezengruan
922f08aca7 update spec with openeuler !27
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-10-08 16:51:56 +08:00
yezengruan
3cb86f7cfc libcare-patch-make: fix some bugs
This patch fix following bugs:
1. origin build should not add '-Wl,-q' flags
2. recover config-host.mak after make kpatch for next building

Signed-off-by: Bihong Yu <yubihong@huawei.com>
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-10-08 16:51:56 +08:00
yezengruan
0c3878981e update spec with openeuler !26
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-10-08 16:51:56 +08:00
jiang-dawei15
018661c069 help: modify some help information
Signed-off-by: jiang-dawei15 <jiangdawei15@huawei.com>
Signed-off-by: yezengruan <yezengruan@huawei.com>
2022-10-08 16:51:56 +08:00
imxcc
02184732b0 update spec with openeuler !25
Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-10-08 16:51:56 +08:00
imxcc
c4945878e5 kpatch_parse: fix failed to recognize .cold
the .cold suffix have two forms of expression: func.cold or
func.cold.NUM, we need to support recognizing both patterns.

Signed-off-by: Bihong Yu <yubihong@huawei.com>
Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-10-08 16:51:56 +08:00
imxcc
53bd704db7 kpatch_elf: compatible with older versions of the so naming rules
New openEuler so naming rules have been changed, such as:
  old so naming rules: libc-x.y.z.so
     <----->
  new so naming rules: libc.so.x.y.z

We need support this two version.
fix elf/strip: adapt to new gcc version(10.3.1)

Signed-off-by: Bihong Yu <yubihong@huawei.com>
Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-10-08 16:51:56 +08:00
imxcc
ae91650c9d Update spec with openeuler !24
Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-10-08 16:51:56 +08:00
imxcc
9954eb2a8e libcare-patch-make: adapt libcare-patch-make to meson
Signed-off-by: Bihong Yu <yubihong@huawei.com>
Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-10-08 16:51:56 +08:00
imxcc
da144a58ef gitignore: ignore some tests and binary
Signed-off-by: Bihong Yu <yubihong@huawei.com>
Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-10-08 16:51:56 +08:00
imxcc
d06ab48929 elf/strip: adapt to new gcc version(10.3.1)
This patch fix the following problems:
  1. new libc so use new naming method,such as: libc.6.so -> libc.so.6;
  2. destroy .rela section sh_flags INFO property;

Signed-off-by: Bihong Yu <yubihong@huawei.com>
Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-10-08 16:51:56 +08:00
imxcc
f5ac9100dc spec: remove libcare.service and libcare.socket
Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-10-08 16:51:56 +08:00
imxcc
442faa8941 update patch with openeuler !19
- gensrc: we should add align while FLAGS_PUSH_SECTION flag is set
- elf: add section adderss for STT_NOTYPE type of symbol

Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-10-08 16:49:57 +08:00
imxcc
5adaccaa8d update patch with openeuler !18
fix cblock parse for LCOLD/LHOT/.cold.NUM, .init_array and
support gnu_unique_object

Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-10-08 16:49:57 +08:00
imxcc
b91373fd9f package init 1.0.0
Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-10-08 16:48:29 +08:00
imxcc
c01b9a8ef9 updated the README.en.md file
Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-10-08 16:40:31 +08:00
imxcc
63431ebeee Allow init_t create lnk file
Bugfix: When the selinux mode is enforcing, libcare.socket cannot
create symlink libcare.sock. This will cause the libcare.service
to fail to start.

Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-10-08 16:24:47 +08:00
imxcc
81ec86cd3a enable selinux bacause current mode is enforcing
Signed-off-by: imxcc <xingchaochao@huawei.com>
2022-10-08 16:24:35 +08:00
caodongxia
4bc9943fb1 fix uninstall warning 2022-10-08 16:24:17 +08:00
wu-leilei
dcb365dc69 fixes failed: gcc: command not found 2022-10-08 16:24:08 +08:00
Jiajie Li
0297ee2227 AArch64 support: add aarch64 support for libcareplus
Add related code which make libcareplus can run basic demo on aarch64.

Signed-off-by: Jiajie Li <lijiajie11@huawei.com>
2022-10-08 16:23:52 +08:00
openeuler-ci-bot
0d5d481b25 !3 Del the {dist} in release.
From: @si-gui
Reviewed-by: @yorifang
Signed-off-by: @yorifang
2021-01-06 12:17:55 +08:00
si-gui
08a63d1e75 Del the {dist} in release. 2020-12-28 15:45:44 +08:00
openeuler-ci-bot
7d45a49d2b !1 init libcareplus repo
From: @yorifang
Reviewed-by: @xydong
Signed-off-by: @xydong
2020-12-08 17:28:42 +08:00
Ying Fang
8d9f08938c Init: init libcareplus repo
Add libcareplus-0.1.4.tar.gz as the target source
Add libcareplus.spec

Signed-off-by: Ying Fang <fangying1@huawei.com>
2020-12-08 16:58:42 +08:00
Ying Fang
741587777f init: Basic description about LibcarePlus
This commit add basic description about LibcarePlus in README.md

Signed-off-by: Ying Fang <fangying1@huawei.com>
2020-12-08 16:49:39 +08:00
Ying Fang
5ef17d5b16 LICENSE: add LICENSE file
LibcarePlus is derived from libcare project, just keep
the LICENSE as it is.

Signed-off-by: Ying Fang <fangying1@huawei.com>
2020-12-08 16:47:34 +08:00
openeuler-ci-bot
3a48e3899b Initial commit 2020-12-08 09:25:01 +08:00