2xsec
7d6ee132a5
tools: lxc-unfreeze: share internal API symbols
...
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-06-28 23:03:55 +09:00
2xsec
a599e9c043
tools: lxc-freeze: share internal API symbols
...
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-06-28 23:00:03 +09:00
2xsec
19eacdc057
tools: lxc-stop: share internal API symbols
...
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-06-28 22:54:27 +09:00
2xsec
eb0c9382b4
tools: lxc-start: share internal API symbols
...
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-06-28 22:49:38 +09:00
Christian Brauner
4c08bd46b9
Merge pull request #2434 from 2xsec/bugfix
...
tools: fix quiet option is not working
2018-06-27 10:48:07 +02:00
2xsec
097268e12b
tools: cgroup, freeze, unfreeze, wait: change fprintf => lxc_error
...
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-06-27 17:09:58 +09:00
2xsec
a13daf8e7d
tools: fix quiet option is not working
...
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-06-27 16:44:06 +09:00
Stéphane Graber
74fd09a860
Merge pull request #2433 from brauner/2018-06-26/fix_android
...
log: account for Android's Bionic's strerror_r()
2018-06-26 10:06:28 -04:00
Christian Brauner
44eff07559
Merge pull request #2430 from duguhaotian/work
...
clear ONLCR flag for container pty
2018-06-26 14:31:45 +02:00
Christian Brauner
e46fec5c7f
log: account for Android's Bionic's strerror_r()
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-06-26 13:51:09 +02:00
duguhaotian
e5adb2b559
clear ONLCR flag for container pty
...
now container pty output log, use \r\n as a newline flag.
This is a windows type, so we need to change it. By clear
ONLCR can reach it.
Signed-off-by: duguhaotian <duguhaotian@gmail.com>
2018-06-26 19:39:29 +08:00
Christian Brauner
508f470010
Merge pull request #2431 from 2xsec/bugfix
...
log: change LOG macros using strerror to SYS* macros
2018-06-26 11:00:29 +02:00
2xsec
6d1400b572
log: change ERROR macro using sterror to SYSERROR
...
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-06-26 17:27:19 +09:00
2xsec
b5be6a7caa
log: remove strerror() from SYSERROR call
...
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-06-26 17:27:07 +09:00
2xsec
7874d81a4d
log: change DEBUG, INFO, TRACE, NOTICE macro using strerror to SYS* macro
...
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-06-26 17:26:50 +09:00
2xsec
a24c5678a9
log: change WARN macro using strerror to SYSWARN
...
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-06-26 17:26:38 +09:00
Christian Brauner
37f068c859
Merge pull request #2429 from 2xsec/bugfix
...
log: add strerror_r macro
2018-06-25 16:16:32 +02:00
2xsec
9d46514002
log: add lxc_log_strerror_r macro
...
Let's ensure that we always use the thread-safe strerror_r() function and add
an approriate macro.
Additionally, define SYS*() macros for all log levels. They will use the new
macro and ensure thread-safe retrieval of errno values.
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
[christian.brauner@ubuntu.com: simplify lxc_log_strerror_r macro]
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-06-25 16:04:25 +02:00
Christian Brauner
62f76cc0f6
Merge pull request #2428 from 2xsec/bugfix
...
move some comments in lxc.spec.in
2018-06-25 11:14:21 +02:00
2xsec
723e380b6a
move some comments in lxc.spec.in
...
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-06-25 13:26:39 +09:00
Stéphane Graber
9dbb10c136
Merge pull request #2425 from brauner/2018-06-22/cleanups
...
commands: simplify lxc_cmd()
2018-06-22 14:06:53 -04:00
Christian Brauner
7d1e281dca
Merge pull request #2426 from 2xsec/bugfix
...
monitor: change exit() => _exit() system call in child process
2018-06-22 16:35:25 +02:00
2xsec
f15e4fd2fb
monitor: change exit() => _exit() system call in child process
...
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-06-22 22:42:32 +09:00
Christian Brauner
6a93ae7710
commands: simplify lxc_cmd()
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-06-22 14:15:24 +02:00
Christian Brauner
3cc0d42845
Merge pull request #2419 from 2xsec/bugfix
...
secure coding: strcat => strncat
2018-06-22 11:25:19 +02:00
Donghwa Jeong
25aced9fc1
btrfs: add to check return size of strlcat
...
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
2018-06-22 14:56:40 +09:00
Donghwa Jeong
ebcd5140b3
confile: strncat => strlcat
...
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
2018-06-22 14:14:13 +09:00
Donghwa Jeong
bd583214ab
utils: strncat => strlcat
...
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
2018-06-22 14:13:58 +09:00
Donghwa Jeong
e0576f178f
tool_utils: strncat => strlcat
...
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
2018-06-22 14:13:36 +09:00
Donghwa Jeong
9c8b2b1343
pam_cgfs: strncat => strlcat
...
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
2018-06-22 14:13:06 +09:00
Donghwa Jeong
f1e05b90af
conf: strncat => strlcat
...
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
2018-06-22 14:12:32 +09:00
Donghwa Jeong
3ebe2fbd28
cgfsng: strncat => strlcat
...
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
2018-06-22 14:12:01 +09:00
Donghwa Jeong
2df5f6bfe9
btrfs: fix wrong buffer size to append string
...
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
2018-06-22 14:11:38 +09:00
Donghwa Jeong
64e82f8b3a
secure coding: cgfsng: strncat, strlcpy
...
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
2018-06-22 14:11:14 +09:00
Donghwa Jeong
efed99a42b
secure coding: strcat => strncat
...
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
2018-06-22 14:10:46 +09:00
Stéphane Graber
13413325f0
Merge pull request #2423 from brauner/2018-06-20/fix_arch
...
btrfs: s/strncat()/strlcat()/g
2018-06-20 12:12:54 -04:00
Christian Brauner
3afafe55cc
btrfs: s/strncat()/strlcat()/g
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-06-20 17:53:37 +02:00
Christian Brauner
1dd3f879df
Merge pull request #2422 from monstermunchkin/fix/busybox-template
...
templates: Fix busybox template
2018-06-20 17:24:52 +02:00
Stéphane Graber
1440698938
Merge pull request #2420 from brauner/2018-06-20/strlcat
...
include: add strlcat() implementation
2018-06-20 10:57:12 -04:00
Thomas Hipp
8b7681f354
templates: Fix busybox template
...
Use `busybox --list`, and exclude the `busybox` applet if necessary.
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-06-20 16:56:04 +02:00
Christian Brauner
9a5e7ac4a9
include: add strlcat() implementation
...
CC: Donghwa Jeong <dh48.jeong@samsung.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-06-20 13:44:02 +02:00
Christian Brauner
d2ff3f89cc
Merge pull request #2418 from 2xsec/bugfix
...
fix fd handle leak
2018-06-19 11:30:57 +02:00
Donghwa Jeong
5090cb06a0
fix pointer c is dereferenced after checking null
...
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
2018-06-19 10:37:47 +09:00
Donghwa Jeong
22417436da
fix fd handle leak
...
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
2018-06-19 10:27:33 +09:00
Christian Brauner
d3d9f55b39
Merge pull request #2417 from 2xsec/bugfix
...
secure coding: #3 strcpy => strlcpy
2018-06-18 11:42:59 +02:00
Donghwa Jeong
18cd4b5484
secure coding: #3 strcpy => strlcpy
...
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
2018-06-18 18:21:23 +09:00
Christian Brauner
d05bd43af7
Merge pull request #2416 from 2xsec/bugfix
...
conf: remove unused argument
2018-06-18 11:14:23 +02:00
Christian Brauner
c0b5121492
Merge pull request #2415 from 2xsec/bugfix
...
secure coding: #2 strcpy => strlcpy
2018-06-18 10:56:53 +02:00
Donghwa Jeong
663014ee7c
conf: remove unused argument
...
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
2018-06-18 17:47:33 +09:00
Donghwa Jeong
43f984ea59
secure coding: #2 strcpy => strlcpy
...
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
2018-06-18 17:18:14 +09:00