zhangxiaoyu
c2724dda6e
add lxc-attach add-gids option
...
Signed-off-by: zhangxiaoyu <zhangxiaoyu58@huawei.com>
(cherry picked from commit 7c05174f1bafb3a198dddace687ae0df42ff1dc8)
2022-12-06 10:54:25 +08:00
zhangxiaoyu
76ba50ceb6
add macro to adapt musl libc
...
Signed-off-by: zhangxiaoyu <zhangxiaoyu58@huawei.com>
(cherry picked from commit 025865aed90f633aad390c4802590c1bd3999ac5)
2022-11-29 17:34:47 +08:00
zhangxiaoyu
c16fbce327
skip kill cgroup processes if no hierarchies
...
Signed-off-by: zhangxiaoyu <zhangxiaoyu58@huawei.com>
(cherry picked from commit 57e4c072b3f6a44a866f187d053815698f88ae1b)
2022-10-11 14:26:22 +08:00
Neil.wrz
ef48d51b7c
fix do mask paths after parent mounted
...
Signed-off-by: Neil.wrz <wangrunze13@huawei.com>
(cherry picked from commit fc6467c52155f775a3738712ef2315943c098c7f)
2022-09-21 14:20:38 +08:00
Neil.wrz
b23c3958a7
fix tools with -? option give error
...
Signed-off-by: Neil.wrz <wangrunze13@huawei.com>
(cherry picked from commit 8023e24ff4676879cdfa01389d8e1c3e9002bcd4)
2022-09-03 17:18:04 +08:00
zhangxiaoyu
7618df6be6
return fail if no args or no rootfs path found
...
Signed-off-by: zhangxiaoyu <zhangxiaoyu58@huawei.com>
(cherry picked from commit 70a531a8677edc3e52bfd81e72f225667bd8b858)
2022-09-01 14:24:21 +08:00
haozi007
1708e9f6f0
only set user or image setting non-empty HOME
...
Signed-off-by: haozi007 <liuhao27@huawei.com>
(cherry picked from commit e35f3ad3dba97992b16c3299053699d7f90410f6)
2022-08-15 09:37:36 +08:00
haozi007
aedeb84ae5
fix HOME env of container unset error
...
Signed-off-by: haozi007 <liuhao27@huawei.com>
(cherry picked from commit d97043c9d07b01f0d12e3bdaa5daff150bffe5b5)
2022-07-25 20:35:17 +08:00
WangFengTu
fc0d7a7cbc
do not operate playload and attach cgroup if no controller found
...
Signed-off-by: WangFengTu <wangfengtu@huawei.com>
(cherry picked from commit 862a52abbf9a4de1971126fb7b4ac7cb4d346004)
2022-05-23 20:27:20 +08:00
WangFengTu
357a73c19d
do not free the pointer returned by dirname
...
Signed-off-by: WangFengTu <wangfengtu@huawei.com>
(cherry picked from commit d8ee6459cc2ced2dd8c5f78123548b223c9551f7)
2022-04-22 14:35:49 +08:00
wujing
d9c1cfc722
Refactor the way to convert selinux label to shared mode
...
Signed-off-by: wujing <wujing50@huawei.com>
(cherry picked from commit 9bb9704b1292e3da2264a17e0c7e2384137a10ac)
2022-04-19 11:03:11 +08:00
wujing
25b954c1cf
fix bug of memory free
...
Signed-off-by: wujing <wujing50@huawei.com>
(cherry picked from commit b4ff9620e4660aaebfe76dbee3fbc52e4946f15c)
2022-04-09 15:31:01 +08:00
haozi007
a5b32431e0
fix unnecessary error message print
...
Signed-off-by: haozi007 <liuhao27@huawei.com>
(cherry picked from commit 0ab60710491349088b1251d1a4d32d587b02532b)
2022-03-17 11:04:38 +08:00
chegJH
e45e96dcb9
fix print and len
...
Signed-off-by: chegJH <hejunjie10@huawei.com>
(cherry picked from commit a4b7c5728090d1c0b6374773f7ab9b1b909e9c1b)
2022-03-01 20:32:33 +08:00
chegJH
4dd7bffc69
changes for compile in andorid env
...
Signed-off-by: chegJH <hejunjie10@huawei.com>
(cherry picked from commit 07039681d8ff79eae4cad60bce31ca36b05c110b)
2022-03-01 20:28:55 +08:00
haozi007
bb248f2232
adapt upstream compiler settings
...
Signed-off-by: haozi007 <liuhao27@huawei.com>
(cherry picked from commit 9c2f8c2de43241b02541c16825197259018d0703)
2021-12-28 14:14:31 +08:00
WangFengTu
5d647a7e2d
cgfsng: fix cgroup attach cgroup creation
...
Signed-off-by: WangFengTu <wangfengtu@huawei.com>
(cherry picked from commit d4cadf966de986a65cf48936541a75359e4e7cda)
2021-11-25 16:28:14 +08:00
WangFengTu
c036b36880
conf: ensure that the idmap pointer itself is freed
...
see https://github.com/lxc/lxc/pull/3504
Signed-off-by: WangFengTu <wangfengtu@huawei.com>
(cherry picked from commit 10f4794cfe5e7b22ebe0b4084282c7daab7158af)
2021-11-19 10:53:25 +08:00
gaohuatao
360522400d
disable lxc_keep with oci image
...
Signed-off-by: liyanshui <yanshuili.lys@gmail.com>
2021-11-08 09:53:50 +08:00
zhangxiaoyu
ce18641401
fix conf memory leak
...
Signed-off-by: zhangxiaoyu <zhangxiaoyu58@huawei.com>
(cherry picked from commit ae9b72d3dd0fc832db44a48ea4ef33decd451c20)
2021-09-18 16:53:45 +08:00
haozi007
73c26415c3
just use origin loop if do not have io
...
Signed-off-by: haozi007 <liuhao27@huawei.com>
(cherry picked from commit 1ef014906b379cd895f8da3c2f28076fbeb3015b)
2021-09-17 15:49:31 +08:00
zhangxiaoyu
d5f36a5411
seccomp: init and destroy notifier.cookie
...
Signed-off-by: zhangxiaoyu <zhangxiaoyu58@huawei.com>
(cherry picked from commit d65f9480282b2ef45a89469340260f28a8804fee)
2021-09-17 15:37:09 +08:00
haozi007
00c99f7c53
add help info for new arguments
...
Signed-off-by: haozi007 <liuhao27@huawei.com>
(cherry picked from commit 7b8a0b190e021b098bb02670644644fbfe2398fd)
2021-08-27 09:39:44 +08:00
LiFeng
ea1abd3b69
lxc: fix coredump
...
Signed-off-by: LiFeng <lifeng68@huawei.com>
2021-06-12 14:01:17 +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
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
ef3aac749d
lxc: modify series.conf
...
Signed-off-by: lifeng68 <lifeng68@huawei.com>
2020-11-28 10:20:01 +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
wujing
5096c31ed4
add patchs to series.conf
...
Signed-off-by: wujing <wujing50@huawei.com>
2020-10-10 10:00:51 +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
wujing
2a0870750c
selinux: add mount label for rootfs
...
Signed-off-by: wujing <wujing50@huawei.com>
2020-07-15 17:32:53 +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
haozi007
5221b85f08
support syslog for console
...
Signed-off-by: haozi007 <liuhao27@huawei.com>
2020-04-23 20:03:12 +08:00