- 29 Jun, 2018 1 commit
-
-
Christian Brauner authored
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>
-
- 27 Jun, 2018 3 commits
-
-
Christian Brauner authored
tools: fix quiet option is not working
-
2xsec authored
Signed-off-by:2xsec <dh48.jeong@samsung.com>
-
2xsec authored
Signed-off-by:2xsec <dh48.jeong@samsung.com>
-
- 26 Jun, 2018 9 commits
-
-
Stéphane Graber authored
log: account for Android's Bionic's strerror_r()
-
Christian Brauner authored
clear ONLCR flag for container pty
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
duguhaotian authored
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>
-
Christian Brauner authored
log: change LOG macros using strerror to SYS* macros
-
2xsec authored
Signed-off-by:2xsec <dh48.jeong@samsung.com>
-
2xsec authored
Signed-off-by:2xsec <dh48.jeong@samsung.com>
-
2xsec authored
Signed-off-by:2xsec <dh48.jeong@samsung.com>
-
2xsec authored
Signed-off-by:2xsec <dh48.jeong@samsung.com>
-
- 25 Jun, 2018 4 commits
-
-
Christian Brauner authored
log: add strerror_r macro
-
2xsec authored
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>
-
Christian Brauner authored
move some comments in lxc.spec.in
-
2xsec authored
Signed-off-by:2xsec <dh48.jeong@samsung.com>
-
- 22 Jun, 2018 15 commits
-
-
Stéphane Graber authored
commands: simplify lxc_cmd()
-
Christian Brauner authored
monitor: change exit() => _exit() system call in child process
-
2xsec authored
Signed-off-by:2xsec <dh48.jeong@samsung.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
secure coding: strcat => strncat
-
Donghwa Jeong authored
Signed-off-by:Donghwa Jeong <dh48.jeong@samsung.com>
-
Donghwa Jeong authored
Signed-off-by:Donghwa Jeong <dh48.jeong@samsung.com>
-
Donghwa Jeong authored
Signed-off-by:Donghwa Jeong <dh48.jeong@samsung.com>
-
Donghwa Jeong authored
Signed-off-by:Donghwa Jeong <dh48.jeong@samsung.com>
-
Donghwa Jeong authored
Signed-off-by:Donghwa Jeong <dh48.jeong@samsung.com>
-
Donghwa Jeong authored
Signed-off-by:Donghwa Jeong <dh48.jeong@samsung.com>
-
Donghwa Jeong authored
Signed-off-by:Donghwa Jeong <dh48.jeong@samsung.com>
-
Donghwa Jeong authored
Signed-off-by:Donghwa Jeong <dh48.jeong@samsung.com>
-
Donghwa Jeong authored
Signed-off-by:Donghwa Jeong <dh48.jeong@samsung.com>
-
Donghwa Jeong authored
Signed-off-by:Donghwa Jeong <dh48.jeong@samsung.com>
-
- 20 Jun, 2018 6 commits
-
-
Stéphane Graber authored
btrfs: s/strncat()/strlcat()/g
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
templates: Fix busybox template
-
Stéphane Graber authored
include: add strlcat() implementation
-
Thomas Hipp authored
Use `busybox --list`, and exclude the `busybox` applet if necessary. Signed-off-by:Thomas Hipp <thomas.hipp@canonical.com>
-
Christian Brauner authored
CC: Donghwa Jeong <dh48.jeong@samsung.com> Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
- 19 Jun, 2018 2 commits
-
-
Christian Brauner authored
fix fd handle leak
-
Donghwa Jeong authored
Signed-off-by:Donghwa Jeong <dh48.jeong@samsung.com>
-