]> git.ipfire.org Git - thirdparty/lxc.git/log
thirdparty/lxc.git
7 years agosync: modify error string 2444/head
2xsec [Tue, 3 Jul 2018 06:08:44 +0000 (15:08 +0900)] 
sync: modify error string

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agoutils: move recursive_destroy() from cfgsng to utils.
2xsec [Tue, 3 Jul 2018 05:44:24 +0000 (14:44 +0900)] 
utils: move recursive_destroy() from cfgsng to utils.

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agoMerge pull request #2441 from 2xsec/coverity
Christian Brauner [Mon, 2 Jul 2018 11:54:31 +0000 (13:54 +0200)] 
Merge pull request #2441 from 2xsec/coverity

coverity: #1425816

7 years agocoverity: #1425816 2441/head
2xsec [Mon, 2 Jul 2018 11:37:36 +0000 (20:37 +0900)] 
coverity: #1425816

Explicit null dereferenced

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agoMerge pull request #2440 from brauner/2018-06-30/console_fixes
Stéphane Graber [Mon, 2 Jul 2018 03:09:30 +0000 (23:09 -0400)] 
Merge pull request #2440 from brauner/2018-06-30/console_fixes

terminal: security fixes

7 years agotests: remove duplicate file_exists() definition 2440/head
Christian Brauner [Sat, 30 Jun 2018 14:03:31 +0000 (16:03 +0200)] 
tests: remove duplicate file_exists() definition

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
7 years agoattach: do not make terminal raw
Christian Brauner [Sat, 30 Jun 2018 11:13:52 +0000 (13:13 +0200)] 
attach: do not make terminal raw

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
7 years agoCODING_STYLE: add section about using strlcat()
Christian Brauner [Sat, 30 Jun 2018 09:41:23 +0000 (11:41 +0200)] 
CODING_STYLE: add section about using strlcat()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
7 years agostart: delete terminal on error
Christian Brauner [Sat, 30 Jun 2018 11:03:33 +0000 (13:03 +0200)] 
start: delete terminal on error

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
7 years agoterminal: set FD_CLOEXEC on pty file descriptors
Christian Brauner [Sat, 30 Jun 2018 11:06:08 +0000 (13:06 +0200)] 
terminal: set FD_CLOEXEC on pty file descriptors

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Cc: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 years agoutils: add fd_cloexec()
Christian Brauner [Sun, 1 Jul 2018 10:05:31 +0000 (12:05 +0200)] 
utils: add fd_cloexec()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Cc: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 years agoterminal: safely retrieve path of slave device
Christian Brauner [Sat, 30 Jun 2018 09:15:36 +0000 (11:15 +0200)] 
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>
7 years agoconf: simplify lxc_setup_dev_console()
Christian Brauner [Sat, 30 Jun 2018 09:10:12 +0000 (11:10 +0200)] 
conf: simplify lxc_setup_dev_console()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
7 years agoMerge pull request #2437 from 2xsec/bugfix
Christian Brauner [Sun, 1 Jul 2018 17:37:56 +0000 (19:37 +0200)] 
Merge pull request #2437 from 2xsec/bugfix

tools: share internal API symbols

7 years agotools: lxc-wait: remove the trailing . 2437/head
2xsec [Sun, 1 Jul 2018 13:52:40 +0000 (22:52 +0900)] 
tools: lxc-wait: remove the trailing .

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-top: fix coding style of strncmp
2xsec [Sun, 1 Jul 2018 13:51:59 +0000 (22:51 +0900)] 
tools: lxc-top: fix coding style of strncmp

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-start: remove the trailing .
2xsec [Sun, 1 Jul 2018 13:50:51 +0000 (22:50 +0900)] 
tools: lxc-start: remove the trailing .

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-snapshot: fix coding style of strncmp
2xsec [Sun, 1 Jul 2018 13:50:04 +0000 (22:50 +0900)] 
tools: lxc-snapshot: fix coding style of strncmp

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-device: remove the trailing . & fix coding style of strncmp
2xsec [Sun, 1 Jul 2018 13:49:07 +0000 (22:49 +0900)] 
tools: lxc-device: remove the trailing . & fix coding style of strncmp

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-destroy: remove the trailing .
2xsec [Sun, 1 Jul 2018 13:47:25 +0000 (22:47 +0900)] 
tools: lxc-destroy: remove the trailing .

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-create: remove the trailing . & fix coding style of strncmp
2xsec [Sun, 1 Jul 2018 13:46:19 +0000 (22:46 +0900)] 
tools: lxc-create: remove the trailing . & fix coding style of strncmp

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-copy: remove the trailing . & fix coding style of strncmp
2xsec [Sun, 1 Jul 2018 13:42:27 +0000 (22:42 +0900)] 
tools: lxc-copy: remove the trailing . & fix coding style of strncmp

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-config: fix coding style of strncmp
2xsec [Sun, 1 Jul 2018 13:40:19 +0000 (22:40 +0900)] 
tools: lxc-config: fix coding style of strncmp

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-checkpoint: remove the trailing .
2xsec [Sun, 1 Jul 2018 13:38:52 +0000 (22:38 +0900)] 
tools: lxc-checkpoint: remove the trailing .

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-autostart: remove the trailing . & fix coding style of strncmp
2xsec [Sun, 1 Jul 2018 13:37:00 +0000 (22:37 +0900)] 
tools: lxc-autostart: remove the trailing . & fix coding style of strncmp

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: remote tool_list, tool_utils
2xsec [Fri, 29 Jun 2018 14:39:03 +0000 (23:39 +0900)] 
tools: remote tool_list, tool_utils

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: arguments: share internal API symbols
2xsec [Fri, 29 Jun 2018 14:28:44 +0000 (23:28 +0900)] 
tools: arguments: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-monitor: share internal API symbols
2xsec [Fri, 29 Jun 2018 14:24:58 +0000 (23:24 +0900)] 
tools: lxc-monitor: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-create: share internal API symbols
2xsec [Fri, 29 Jun 2018 13:33:45 +0000 (22:33 +0900)] 
tools: lxc-create: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-snapshot: share internal API symbols
2xsec [Fri, 29 Jun 2018 13:11:55 +0000 (22:11 +0900)] 
tools: lxc-snapshot: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-checkpoint: fix log name
2xsec [Fri, 29 Jun 2018 13:03:55 +0000 (22:03 +0900)] 
tools: lxc-checkpoint: fix log name

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-checkpoint: share internal API symbols
2xsec [Fri, 29 Jun 2018 13:00:46 +0000 (22:00 +0900)] 
tools: lxc-checkpoint: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-unshare: share internal API symbols
2xsec [Fri, 29 Jun 2018 12:48:12 +0000 (21:48 +0900)] 
tools: lxc-unshare: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-top: share internal API symbols
2xsec [Fri, 29 Jun 2018 12:12:22 +0000 (21:12 +0900)] 
tools: lxc-top: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-copy: share internal API symbols
2xsec [Fri, 29 Jun 2018 07:26:33 +0000 (16:26 +0900)] 
tools: lxc-copy: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-execute: share internal API symbols
2xsec [Fri, 29 Jun 2018 07:10:42 +0000 (16:10 +0900)] 
tools: lxc-execute: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-device: share internal API symbols
2xsec [Fri, 29 Jun 2018 06:23:43 +0000 (15:23 +0900)] 
tools: lxc-device: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-destroy: share internal API symbols
2xsec [Fri, 29 Jun 2018 06:05:11 +0000 (15:05 +0900)] 
tools: lxc-destroy: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-console: share internal API symbols
2xsec [Fri, 29 Jun 2018 05:54:07 +0000 (14:54 +0900)] 
tools: lxc-console: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-config: share internal API symbols
2xsec [Fri, 29 Jun 2018 05:48:34 +0000 (14:48 +0900)] 
tools: lxc-config: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-ls: share internal API symbols
2xsec [Fri, 29 Jun 2018 05:41:19 +0000 (14:41 +0900)] 
tools: lxc-ls: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-info: share internal API symbols
2xsec [Fri, 29 Jun 2018 05:15:22 +0000 (14:15 +0900)] 
tools: lxc-info: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agoutils: code cleanups
2xsec [Fri, 29 Jun 2018 05:06:10 +0000 (14:06 +0900)] 
utils: code cleanups

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-autostart: share internal API symbols
2xsec [Fri, 29 Jun 2018 04:20:16 +0000 (13:20 +0900)] 
tools: lxc-autostart: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agoMerge pull request #2438 from brauner/2018-06-29/linux-v4.18
Stéphane Graber [Fri, 29 Jun 2018 16:28:58 +0000 (12:28 -0400)] 
Merge pull request #2438 from brauner/2018-06-29/linux-v4.18

autodev: adapt to changes in Linux 4.18

7 years agoautodev: adapt to changes in Linux 4.18 2438/head
Christian Brauner [Fri, 29 Jun 2018 11:58:52 +0000 (13:58 +0200)] 
autodev: adapt to changes in Linux 4.18

Starting with commit
55956b59df33 ("vfs: Allow userns root to call mknod on owned filesystems.")
Linux will allow mknod() in user namespaces for userns root if CAP_MKNOD is
available.
However, these device nodes are useless since

static struct super_block *alloc_super(struct file_system_type *type, int flags,
                                       struct user_namespace *user_ns)
{
        /* <snip> */

        if (s->s_user_ns != &init_user_ns)
                s->s_iflags |= SB_I_NODEV;

        /* <snip> */
}

will set the SB_I_NODEV flag on the filesystem. When a device node created in
non-init userns is open()ed the call chain will hit:

bool may_open_dev(const struct path *path)
{
        return !(path->mnt->mnt_flags & MNT_NODEV) &&
                !(path->mnt->mnt_sb->s_iflags & SB_I_NODEV);
}

which will cause an EPERM because the device node is located on an fs
owned by non-init-userns and thus doesn't grant access to device nodes due to
SB_I_NODEV.

The solution is straightforward. Unless you're real root you should bind-mount
device nodes.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
7 years agotools: lxc-attach: share internal API symbols
2xsec [Thu, 28 Jun 2018 14:19:50 +0000 (23:19 +0900)] 
tools: lxc-attach: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-cgroup: share internal API symbols
2xsec [Thu, 28 Jun 2018 14:13:01 +0000 (23:13 +0900)] 
tools: lxc-cgroup: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-wait: share internal API symbols
2xsec [Thu, 28 Jun 2018 14:07:01 +0000 (23:07 +0900)] 
tools: lxc-wait: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-unfreeze: share internal API symbols
2xsec [Thu, 28 Jun 2018 14:03:55 +0000 (23:03 +0900)] 
tools: lxc-unfreeze: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-freeze: share internal API symbols
2xsec [Thu, 28 Jun 2018 14:00:03 +0000 (23:00 +0900)] 
tools: lxc-freeze: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-stop: share internal API symbols
2xsec [Thu, 28 Jun 2018 13:54:27 +0000 (22:54 +0900)] 
tools: lxc-stop: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: lxc-start: share internal API symbols
2xsec [Thu, 28 Jun 2018 13:49:38 +0000 (22:49 +0900)] 
tools: lxc-start: share internal API symbols

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agoMerge pull request #2434 from 2xsec/bugfix
Christian Brauner [Wed, 27 Jun 2018 08:48:07 +0000 (10:48 +0200)] 
Merge pull request #2434 from 2xsec/bugfix

tools: fix quiet option is not working

7 years agotools: cgroup, freeze, unfreeze, wait: change fprintf => lxc_error 2434/head
2xsec [Wed, 27 Jun 2018 08:09:58 +0000 (17:09 +0900)] 
tools: cgroup, freeze, unfreeze, wait: change fprintf => lxc_error

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agotools: fix quiet option is not working
2xsec [Wed, 27 Jun 2018 07:44:06 +0000 (16:44 +0900)] 
tools: fix quiet option is not working

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agoMerge pull request #2433 from brauner/2018-06-26/fix_android
Stéphane Graber [Tue, 26 Jun 2018 14:06:28 +0000 (10:06 -0400)] 
Merge pull request #2433 from brauner/2018-06-26/fix_android

log: account for Android's Bionic's strerror_r()

7 years agoMerge pull request #2430 from duguhaotian/work
Christian Brauner [Tue, 26 Jun 2018 12:31:45 +0000 (14:31 +0200)] 
Merge pull request #2430 from duguhaotian/work

clear ONLCR flag for container pty

7 years agolog: account for Android's Bionic's strerror_r() 2433/head
Christian Brauner [Tue, 26 Jun 2018 09:25:37 +0000 (11:25 +0200)] 
log: account for Android's Bionic's strerror_r()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
7 years agoclear ONLCR flag for container pty 2430/head
duguhaotian [Tue, 26 Jun 2018 01:57:04 +0000 (09:57 +0800)] 
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>
7 years agoMerge pull request #2431 from 2xsec/bugfix
Christian Brauner [Tue, 26 Jun 2018 09:00:29 +0000 (11:00 +0200)] 
Merge pull request #2431 from 2xsec/bugfix

log: change LOG macros using strerror to SYS* macros

7 years agolog: change ERROR macro using sterror to SYSERROR 2431/head
2xsec [Tue, 26 Jun 2018 08:16:37 +0000 (17:16 +0900)] 
log: change ERROR macro using sterror to SYSERROR

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agolog: remove strerror() from SYSERROR call
2xsec [Tue, 26 Jun 2018 05:41:54 +0000 (14:41 +0900)] 
log: remove strerror() from SYSERROR call

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agolog: change DEBUG, INFO, TRACE, NOTICE macro using strerror to SYS* macro
2xsec [Tue, 26 Jun 2018 05:33:17 +0000 (14:33 +0900)] 
log: change DEBUG, INFO, TRACE, NOTICE macro using strerror to SYS* macro

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agolog: change WARN macro using strerror to SYSWARN
2xsec [Tue, 26 Jun 2018 05:06:09 +0000 (14:06 +0900)] 
log: change WARN macro using strerror to SYSWARN

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agoMerge pull request #2429 from 2xsec/bugfix
Christian Brauner [Mon, 25 Jun 2018 14:16:32 +0000 (16:16 +0200)] 
Merge pull request #2429 from 2xsec/bugfix

log: add strerror_r macro

7 years agolog: add lxc_log_strerror_r macro 2429/head
2xsec [Mon, 25 Jun 2018 13:00:43 +0000 (22:00 +0900)] 
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>
7 years agoMerge pull request #2428 from 2xsec/bugfix
Christian Brauner [Mon, 25 Jun 2018 09:14:21 +0000 (11:14 +0200)] 
Merge pull request #2428 from 2xsec/bugfix

move some comments in lxc.spec.in

7 years agomove some comments in lxc.spec.in 2428/head
2xsec [Mon, 25 Jun 2018 04:26:39 +0000 (13:26 +0900)] 
move some comments in lxc.spec.in

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agoMerge pull request #2425 from brauner/2018-06-22/cleanups
Stéphane Graber [Fri, 22 Jun 2018 18:06:53 +0000 (14:06 -0400)] 
Merge pull request #2425 from brauner/2018-06-22/cleanups

commands: simplify lxc_cmd()

7 years agoMerge pull request #2426 from 2xsec/bugfix
Christian Brauner [Fri, 22 Jun 2018 14:35:25 +0000 (16:35 +0200)] 
Merge pull request #2426 from 2xsec/bugfix

monitor: change exit() => _exit() system call in child process

7 years agomonitor: change exit() => _exit() system call in child process 2426/head
2xsec [Fri, 22 Jun 2018 13:42:32 +0000 (22:42 +0900)] 
monitor: change exit() => _exit() system call in child process

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
7 years agocommands: simplify lxc_cmd() 2425/head
Christian Brauner [Fri, 22 Jun 2018 12:13:06 +0000 (14:13 +0200)] 
commands: simplify lxc_cmd()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
7 years agoMerge pull request #2419 from 2xsec/bugfix
Christian Brauner [Fri, 22 Jun 2018 09:25:19 +0000 (11:25 +0200)] 
Merge pull request #2419 from 2xsec/bugfix

secure coding: strcat => strncat

7 years agobtrfs: add to check return size of strlcat 2419/head
Donghwa Jeong [Fri, 22 Jun 2018 05:56:40 +0000 (14:56 +0900)] 
btrfs: add to check return size of strlcat

Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
7 years agoconfile: strncat => strlcat
Donghwa Jeong [Thu, 21 Jun 2018 05:36:46 +0000 (14:36 +0900)] 
confile: strncat => strlcat

Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
7 years agoutils: strncat => strlcat
Donghwa Jeong [Thu, 21 Jun 2018 04:31:43 +0000 (13:31 +0900)] 
utils: strncat => strlcat

Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
7 years agotool_utils: strncat => strlcat
Donghwa Jeong [Thu, 21 Jun 2018 04:20:17 +0000 (13:20 +0900)] 
tool_utils: strncat => strlcat

Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
7 years agopam_cgfs: strncat => strlcat
Donghwa Jeong [Thu, 21 Jun 2018 02:38:51 +0000 (11:38 +0900)] 
pam_cgfs: strncat => strlcat

Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
7 years agoconf: strncat => strlcat
Donghwa Jeong [Thu, 21 Jun 2018 02:30:18 +0000 (11:30 +0900)] 
conf: strncat => strlcat

Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
7 years agocgfsng: strncat => strlcat
Donghwa Jeong [Thu, 21 Jun 2018 02:06:04 +0000 (11:06 +0900)] 
cgfsng: strncat => strlcat

Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
7 years agobtrfs: fix wrong buffer size to append string
Donghwa Jeong [Thu, 21 Jun 2018 01:58:31 +0000 (10:58 +0900)] 
btrfs: fix wrong buffer size to append string

Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
7 years agosecure coding: cgfsng: strncat, strlcpy
Donghwa Jeong [Wed, 20 Jun 2018 09:34:24 +0000 (18:34 +0900)] 
secure coding: cgfsng: strncat, strlcpy

Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
7 years agosecure coding: strcat => strncat
Donghwa Jeong [Wed, 20 Jun 2018 05:52:42 +0000 (14:52 +0900)] 
secure coding: strcat => strncat

Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
7 years agoMerge pull request #2423 from brauner/2018-06-20/fix_arch
Stéphane Graber [Wed, 20 Jun 2018 16:12:54 +0000 (12:12 -0400)] 
Merge pull request #2423 from brauner/2018-06-20/fix_arch

btrfs: s/strncat()/strlcat()/g

7 years agobtrfs: s/strncat()/strlcat()/g 2423/head
Christian Brauner [Wed, 20 Jun 2018 15:53:19 +0000 (17:53 +0200)] 
btrfs: s/strncat()/strlcat()/g

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
7 years agoMerge pull request #2422 from monstermunchkin/fix/busybox-template
Christian Brauner [Wed, 20 Jun 2018 15:24:52 +0000 (17:24 +0200)] 
Merge pull request #2422 from monstermunchkin/fix/busybox-template

templates: Fix busybox template

7 years agoMerge pull request #2420 from brauner/2018-06-20/strlcat
Stéphane Graber [Wed, 20 Jun 2018 14:57:12 +0000 (10:57 -0400)] 
Merge pull request #2420 from brauner/2018-06-20/strlcat

include: add strlcat() implementation

7 years agotemplates: Fix busybox template 2422/head
Thomas Hipp [Wed, 20 Jun 2018 14:21:31 +0000 (16:21 +0200)] 
templates: Fix busybox template

Use `busybox --list`, and exclude the `busybox` applet if necessary.

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
7 years agoinclude: add strlcat() implementation 2420/head
Christian Brauner [Wed, 20 Jun 2018 11:44:02 +0000 (13:44 +0200)] 
include: add strlcat() implementation

CC: Donghwa Jeong <dh48.jeong@samsung.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
7 years agoMerge pull request #2418 from 2xsec/bugfix
Christian Brauner [Tue, 19 Jun 2018 09:30:57 +0000 (11:30 +0200)] 
Merge pull request #2418 from 2xsec/bugfix

fix fd handle leak

7 years agofix pointer c is dereferenced after checking null 2418/head
Donghwa Jeong [Tue, 19 Jun 2018 01:37:47 +0000 (10:37 +0900)] 
fix pointer c is dereferenced after checking null

Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
7 years agofix fd handle leak
Donghwa Jeong [Tue, 19 Jun 2018 01:27:33 +0000 (10:27 +0900)] 
fix fd handle leak

Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
7 years agoMerge pull request #2417 from 2xsec/bugfix
Christian Brauner [Mon, 18 Jun 2018 09:42:59 +0000 (11:42 +0200)] 
Merge pull request #2417 from 2xsec/bugfix

secure coding: #3 strcpy => strlcpy

7 years agosecure coding: #3 strcpy => strlcpy 2417/head
Donghwa Jeong [Mon, 18 Jun 2018 09:21:23 +0000 (18:21 +0900)] 
secure coding: #3 strcpy => strlcpy

Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
7 years agoMerge pull request #2416 from 2xsec/bugfix
Christian Brauner [Mon, 18 Jun 2018 09:14:23 +0000 (11:14 +0200)] 
Merge pull request #2416 from 2xsec/bugfix

conf: remove unused argument

7 years agoMerge pull request #2415 from 2xsec/bugfix
Christian Brauner [Mon, 18 Jun 2018 08:56:53 +0000 (10:56 +0200)] 
Merge pull request #2415 from 2xsec/bugfix

secure coding: #2 strcpy => strlcpy

7 years agoconf: remove unused argument 2416/head
Donghwa Jeong [Mon, 18 Jun 2018 08:47:33 +0000 (17:47 +0900)] 
conf: remove unused argument

Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
7 years agosecure coding: #2 strcpy => strlcpy 2415/head
Donghwa Jeong [Mon, 18 Jun 2018 08:18:14 +0000 (17:18 +0900)] 
secure coding: #2 strcpy => strlcpy

Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
7 years agoMerge pull request #2414 from 2xsec/bugfix
Christian Brauner [Mon, 18 Jun 2018 08:07:11 +0000 (10:07 +0200)] 
Merge pull request #2414 from 2xsec/bugfix

secure coding: strcpy => strlcpy