114 Commits

Author SHA1 Message Date
WangFengTu
d4cadf966d cgfsng: fix cgroup attach cgroup creation
Signed-off-by: WangFengTu <wangfengtu@huawei.com>
2021-11-25 15:57:29 +08:00
WangFengTu
10f4794cfe conf: ensure that the idmap pointer itself is freed
see https://github.com/lxc/lxc/pull/3504

Signed-off-by: WangFengTu <wangfengtu@huawei.com>
2021-11-19 10:18:09 +08:00
gaohuatao
9a3134af8d disable lxc_keep with oci image
Signed-off-by: gaohuatao <gaohuatao@huawei.com>
2021-10-22 15:22:29 +08:00
chengzrz
433bebd5d5 udpate lxc.spec to fix dependecies issues 2021-09-26 07:37:13 -04:00
zhangxiaoyu
ae9b72d3dd fix conf memory leak
Signed-off-by: zhangxiaoyu <zhangxiaoyu58@huawei.com>
2021-09-17 20:17:40 +08:00
haozi007
1ef014906b just use origin loop if do not have io
Signed-off-by: haozi007 <liuhao27@huawei.com>
2021-09-17 08:21:13 +01:00
zhangxiaoyu
d65f948028 seccomp: init and destroy notifier.cookie
Signed-off-by: zhangxiaoyu <zhangxiaoyu58@huawei.com>
2021-09-17 12:26:32 +08:00
haozi007
7b8a0b190e add help info for new arguments
Signed-off-by: haozi007 <liuhao27@huawei.com>
2021-08-27 02:39:10 +01:00
LiFeng
ea1abd3b69 lxc: fix coredump
Signed-off-by: LiFeng <lifeng68@huawei.com>
2021-06-12 14:01:17 +08:00
zhangxiaoyu
02cf571f17 lxc: fix data overflow
Signed-off-by: zhangxiaoyu <zhangxiaoyu58@huawei.com>
2021-06-01 16:28:36 +08:00
Li Feng
0280573c3d lxc: adjust log level
Signed-off-by: Li Feng <lifeng2221dd1@zoho.com.cn>
2021-05-13 15:22:54 +08:00
haozi007
a13f6581f4 support long syslog tag
Signed-off-by: haozi007 <liuhao27@huawei.com>
2021-05-08 14:34:38 +08:00
WangFengTu
8a0c8575a7 print error message if process workdir failed
Signed-off-by: WangFengTu <wangfengtu@huawei.com>
2021-05-08 11:16:20 +08:00
WangFengTu
a7c5b85d95 some patches missing in series.conf
Signed-off-by: WangFengTu <wangfengtu@huawei.com>
2021-04-07 11:11:02 +08:00
WangFengTu
caf56e2dec support isula exec --workdir
Signed-off-by: WangFengTu <wangfengtu@huawei.com>
2021-03-31 11:06:57 +08:00
WangFengTu
80162dc014 support cgroup v2
Signed-off-by: WangFengTu <wangfengtu@huawei.com>
2021-03-31 09:39:41 +08:00
Li Feng
89bd000fc7 metrics: add total_inactive_file metric for memory
Signed-off-by: Li Feng <lifeng2221dd1@zoho.com.cn>
2021-01-28 16:24:52 +08:00
Li Feng
8f92684f22 IO: fix io data miss when exec with pipes
Signed-off-by: Li Feng <lifeng2221dd1@zoho.com.cn>
2021-01-20 14:37:54 +08:00
wujing
769928caf4 fix compilation errors without libcap
Signed-off-by: wujing <wujing50@huawei.com>
2021-01-05 17:07:03 +08:00
wujing
a154ac0831 Streaming IO solution optimization and enhancement
Signed-off-by: wujing <wujing50@huawei.com>
2020-12-24 16:12:57 +08:00
lifeng68
de8acb396c api: add get container metrics api to get the stat
Signed-off-by: lifeng68 <lifeng68@huawei.com>
2020-12-15 18:30:46 +08:00
wujing
35e00a818c af_unix: use path based unix domain sockets instead of abstract namespace sockets
to improve container security

Signed-off-by: wujing <wujing50@huawei.com>
2020-12-07 17:01:53 +08:00
lifeng68
d05d52b196 mount: make possible to bind mount /proc and /sys/fs
1. add check whether have /proc mounts entry, if has, skip the auto mount proc
2. mount cgroup before do mount entrys
3. pass if the mount on top of /proc and the source of the mount is a proc filesystem

Signed-off-by: lifeng68 <lifeng68@huawei.com>
2020-11-27 16:34:43 +08:00
lifeng68
260bba9558 rootfs: add make private for root.path parent
Signed-off-by: lifeng68 <lifeng68@huawei.com>
2020-11-17 18:42:43 +08:00
lifeng68
38ec7d6121 cgfsng: adjust log level from error to warn
Signed-off-by: lifeng68 <lifeng68@huawei.com>
2020-11-13 14:21:31 +08:00
lifeng68
641e0c6b48 lxc: fix hook incorrect root dir and refact cgroup
Signed-off-by: lifeng68 <lifeng68@huawei.com>
2020-11-03 10:00:10 +08:00
wujing
5096c31ed4 add patchs to series.conf
Signed-off-by: wujing <wujing50@huawei.com>
2020-10-10 10:00:51 +08:00
wujing
80b56ec3bb Using string type instead of security_context_t
reason: security_context_t is deprecated in libselinux project

Signed-off-by: wujing <wujing50@huawei.com>
2020-09-25 16:25:49 +08:00
lifeng68
589cc90226 lxc: do not catch SIGTERM in lxc monitor
Signed-off-by: lifeng68 <lifeng68@huawei.com>
2020-09-11 10:11:35 +08:00
YoungJQ
5bfbc3e1a2 lxc : modify source0 address in spec file
Signed-off-by: YoungJQ <yangjiaqi11@huawei.com>
2020-09-02 11:29:54 +08:00
YoungJQ
1f70f4ed8b lxc : add debug packages 2020-08-04 14:05:42 +08:00
wujing
e9207e35f7 solve coredump bug caused by fstype being NULL during mount
Signed-off-by: wujing <wujing50@huawei.com>
2020-07-21 17:37:41 +08:00
wujing
0ed16f41fa Removes the definition of the thread attributes object
Signed-off-by: wujing <wujing50@huawei.com>
2020-07-20 16:16:49 +08:00
wujing
c233d40347 selinux: format code and verify mount mode
Signed-off-by: wujing <wujing50@huawei.com>
2020-07-16 16:51:54 +08:00
lifeng68
d0ef71e9e8 4.0.3: update base version to lxc_4.0.3
Signed-off-by: lifeng68 <lifeng68@huawei.com>
2020-07-15 09:59:33 +08:00
lifeng68
3a5cb29168 lxc: do not communicat with lxc parent when unpause
Signed-off-by: lifeng68 <lifeng68@huawei.com>
2020-07-10 14:08:42 +08:00
Zhangxiaoyu
703136a7d3 add lxc.yaml
Signed-off-by: Zhangxiaoyu <zhangxiaoyu58@huawei.com>
2020-07-01 20:18:36 +08:00
lifeng68
9364d2f6e3 rootfs: support use host rootfs / as container roofs
Signed-off-by: lifeng68 <lifeng68@huawei.com>
2020-06-24 17:11:31 +08:00
lifeng68
28bdf2da69 lxc: set default cgroup pattern to lxc/%n
Signed-off-by: lifeng68 <lifeng68@huawei.com>
2020-05-27 17:21:19 +08:00
wangkang
fc4dc61dd7 lxc: set normal ret value when populate exist device successfully 2020-05-22 11:01:06 +08:00
lifeng68
eaf7887f00 lxc: fix build test error
Signed-off-by: lifeng68 <lifeng68@huawei.com>
2020-05-19 06:33:44 -04:00
gaohuatao
b0c40098c8 lxc: disable terminal stdout/stderr pipe O_NONBLOCK
Signed-off-by: gaohuatao <gaohuatao@huawei.com>
2020-05-14 08:34:31 -04:00
LiFeng
57c1bb954f lxc: fix hook memory leak
Signed-off-by: LiFeng <lifeng68@huawei.com>
2020-05-11 14:04:38 +08:00
haozi007
4c8683cf0a change log level of seccomp setup
Signed-off-by: haozi007 <liuhao27@huawei.com>
2020-05-06 23:29:53 -04:00
LiFeng
0a56dd675b mount: use parsed symlink path as mount target
Signed-off-by: LiFeng <lifeng68@huawei.com>
2020-04-30 19:25:22 +08:00
LiFeng
79a25065c3 attch: add err msg when call attach failed
Signed-off-by: LiFeng <lifeng68@huawei.com>
2020-04-30 17:04:56 +08:00
haozi007
0c96188924 set state to stopped
Signed-off-by: haozi007 <liuhao27@huawei.com>
2020-04-28 11:57:46 +08:00
lifeng
8966f1fe72 lxc: update lxc to 4.0.1
Signed-off-by: lifeng <lifeng68@huawei.com>
2020-04-23 19:30:12 +08:00
lifeng
d13b158d19 lxc: fix source0
Signed-off-by: lifeng <lifeng68@huawei.com>
2020-04-08 11:24:47 +08:00
haozi007
d2e972e92b support syslog for console log
Signed-off-by: haozi007 <liuhao27@huawei.com>
2020-04-02 19:27:11 +08:00