Commit Graph

7872 Commits

Author SHA1 Message Date
2xsec
0ce5c91e60
tests: cleanup shortlived.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:24:26 +09:00
2xsec
b4edca7c7c
tests: cleanup saveconfig.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:23:48 +09:00
2xsec
733666f840
tests: cleanup reboot.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:23:12 +09:00
2xsec
fe142896b6
tests: clenaup may_control.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:22:48 +09:00
2xsec
915af839db
tests: cleanup lxcpath.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:22:27 +09:00
2xsec
c3c504a8a9
tests: cleanup lxc_raw_clone.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:22:01 +09:00
2xsec
b477d83032
tests: cleanup lxc-test-utils.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:21:36 +09:00
2xsec
3cc076dca1
tests: cleanup locktests.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:20:44 +09:00
2xsec
f0353f8b0b
tests: cleanup list.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:19:50 +09:00
2xsec
af8660599a
tests: cleanup getkeys.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:18:47 +09:00
2xsec
b947e65737
tests: cleanup get_item.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:18:17 +09:00
2xsec
e9432dfc50
tests: cleanup device_add_remove.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:17:03 +09:00
2xsec
8d72e58a24
tests: cleanup destroytest.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:16:30 +09:00
2xsec
17d11ff744
tests: cleanup criu_check_feature.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:15:45 +09:00
2xsec
56aff0c442
tests: cleanup createtest.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:14:52 +09:00
2xsec
00e196f27a
tests: cleanup containertests.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:14:14 +09:00
2xsec
9ace530860
tests: cleanup console.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:13:21 +09:00
2xsec
f120a74196
tests: cleanup config_jump_table.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:12:31 +09:00
2xsec
fbeb7a1a24
tests: cleanup concurrent.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:11:46 +09:00
2xsec
1c95b732d8
tests: cleanup clonetest.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:10:55 +09:00
2xsec
2e338007c7
tests: cleanup api_reboot.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 18:09:32 +09:00
Christian Brauner
5221c891da
Merge pull request #2444 from 2xsec/bugfix
utils: move recursive_destroy() from cfgsng to utils.
2018-07-03 10:52:15 +02:00
2xsec
abbec8b4c3
sync: modify error string
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 15:08:44 +09:00
2xsec
d7ab03757c
utils: move recursive_destroy() from cfgsng to utils.
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-03 14:44:24 +09:00
Christian Brauner
c5c4d6a3ba
Merge pull request #2441 from 2xsec/coverity
coverity: #1425816
2018-07-02 13:54:31 +02:00
2xsec
f766a9d22b
coverity: #1425816
Explicit null dereferenced

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-02 20:37:36 +09:00
Stéphane Graber
7e52f25209
Merge pull request #2440 from brauner/2018-06-30/console_fixes
terminal: security fixes
2018-07-01 23:09:30 -04:00
Christian Brauner
3d47b3b24d
tests: remove duplicate file_exists() definition
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-07-01 20:00:15 +02:00
Christian Brauner
23c8a51676
attach: do not make terminal raw
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-07-01 20:00:15 +02:00
Christian Brauner
77f6262f61
CODING_STYLE: add section about using strlcat()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-07-01 20:00:15 +02:00
Christian Brauner
5b74eb3cd7
start: delete terminal on error
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-07-01 20:00:15 +02:00
Christian Brauner
408c18a185
terminal: set FD_CLOEXEC on pty file descriptors
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Cc: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-07-01 20:00:14 +02:00
Christian Brauner
a9d4ebc168
utils: add fd_cloexec()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Cc: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-07-01 20:00:14 +02:00
Christian Brauner
3f15bdd9ca
terminal: safely retrieve path of slave device
openpty() is a horrible function that uses strcpy() into the char *name
argument if name != NULL. We can't rely on the path being sane in all cases so
let's split out the name retrieval to ttyname_r().

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-07-01 20:00:14 +02:00
Christian Brauner
882671aa99
conf: simplify lxc_setup_dev_console()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-07-01 20:00:12 +02:00
Christian Brauner
2d876a974d
Merge pull request #2437 from 2xsec/bugfix
tools: share internal API symbols
2018-07-01 19:37:56 +02:00
2xsec
1b087dab84 tools: lxc-wait: remove the trailing .
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-01 22:52:40 +09:00
2xsec
162ad1f600 tools: lxc-top: fix coding style of strncmp
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-01 22:51:59 +09:00
2xsec
28b7b0f01a tools: lxc-start: remove the trailing .
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-01 22:50:51 +09:00
2xsec
d5202ddf0b tools: lxc-snapshot: fix coding style of strncmp
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-01 22:50:04 +09:00
2xsec
80287d7d35 tools: lxc-device: remove the trailing . & fix coding style of strncmp
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-01 22:49:07 +09:00
2xsec
8f0bdb0528 tools: lxc-destroy: remove the trailing .
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-01 22:47:25 +09:00
2xsec
77e5da8e1e tools: lxc-create: remove the trailing . & fix coding style of strncmp
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-01 22:46:19 +09:00
2xsec
5dec9c3ede tools: lxc-copy: remove the trailing . & fix coding style of strncmp
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-01 22:42:27 +09:00
2xsec
dc71fcca83 tools: lxc-config: fix coding style of strncmp
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-01 22:40:19 +09:00
2xsec
8fb41a340f tools: lxc-checkpoint: remove the trailing .
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-01 22:38:52 +09:00
2xsec
54d4713113 tools: lxc-autostart: remove the trailing . & fix coding style of strncmp
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-01 22:37:00 +09:00
2xsec
03e6adc680 tools: remote tool_list, tool_utils
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-06-30 18:45:22 +09:00
2xsec
ae41d188ee tools: arguments: share internal API symbols
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-06-30 18:45:22 +09:00
2xsec
457e3c5daf tools: lxc-monitor: share internal API symbols
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-06-30 18:45:22 +09:00