Commit Graph

5245 Commits

Author SHA1 Message Date
Christian Brauner
dc46727ff7
repo: add new README
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2017-05-29 02:22:01 +02:00
Christian Brauner
59e5238e17 Merge pull request #1576 from lifeng68/Modifytty
DO NOT add the handles of adjust winsize when the 'stdin' is not a tty
2017-05-27 12:04:31 +10:00
Christian Brauner
74ed41deb2 Merge pull request #1585 from tenforward/japanese
doc: Add console behavior to Japanese lxc.container.conf(5)
2017-05-24 00:49:03 +10:00
KATOH Yasufumi
7a534f673c doc: Add console behavior to Japanese lxc.container.conf(5)
Update for commit 6e3bb2890c

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2017-05-23 15:48:34 +09:00
Stéphane Graber
c18119e04e Merge pull request #1580 from brauner/2017-05-20/tty_fixes
conf: non-functional changes
2017-05-22 15:52:13 -04:00
Stéphane Graber
37a5dcd45d Merge pull request #1573 from brauner/2017-05-18/fix_ppc64le_build
utils: fix ppc64le builds
2017-05-22 15:49:54 -04:00
Christian Brauner
9e1045e3ea
conf: non-functional changes
Improve setting up /dev/tty<N> devices.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2017-05-20 15:20:11 +02:00
Li Feng
259642322d DO NOT add the handles of adjust winsize when the 'stdin' is not a tty
Signed-off-by: Li Feng <lifeng68@huawei.com>
2017-05-20 17:40:36 +08:00
Christian Brauner
78678dc167 Merge pull request #1577 from lifeng68/Bugfix
Fix the bug of 'ts->stdoutfd' did not fill with parameters 'stdoutfd'
2017-05-19 13:26:54 +02:00
Li Feng
3b975060bb Fix the bug of 'ts->stdoutfd' did not fill with parameters 'stdoutfd'
Signed-off-by: Li Feng <lifeng68@huawei.com>
2017-05-19 22:40:07 +08:00
Serge Hallyn
a1387f5c14 Merge pull request #1575 from brauner/2017-05-18/fix_tmp_mount_proc
utils: fix lxc_mount_proc_if_needed()
2017-05-18 12:45:13 -05:00
Christian Brauner
6b1ba5d6be
utils: fix lxc_mount_proc_if_needed()
- check for buffer overflow
- only call INFO() after we ensured that readlink() was successful
- simplify logic

Reported-by: Benedikt Rosenkranz beluro@web.de
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2017-05-18 19:22:32 +02:00
Christian Brauner
ff0e49c768
utils: fix ppc64le builds
I suspect that there's a glibc bug on ppc64le. Both clang and gcc a very
unhappy when you return -errno from these functions. Instead, let's return
concrete errno numbers, e.g. -EINVAL.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2017-05-18 13:18:29 +02:00
Stéphane Graber
0cb5ac09c9 Merge pull request #1570 from mgariepy/patch-2
Add cronie to the pkg list
2017-05-17 15:29:21 -04:00
mgariepy
c227acde21 Add cronie to the pkg list
Add cronie to have crond running in the containers.

Signed-off-by: Marc Gariepy <gariepy.marc@gmail.com>
2017-05-17 15:26:15 -04:00
Serge Hallyn
3877c7f0e7 Merge pull request #1569 from anevenchanniy/lxc-top/fix_memsw
[lxc-top] Fix memory+swap output in batch mode
2017-05-17 14:01:56 -05:00
Christian Brauner
cca2cc2879 Merge pull request #1568 from hallyn/2017-05-17/cgfsng.log
cgfsng: log when we defer to cgfsng
2017-05-17 19:25:13 +02:00
Nevenchanniy Aleksandr
1b67456ce9 [lxc-top] Fix memory+swap output in batch mode
This is patch fix output of memory+swap in batch mode, that
was forgotten in 6b6e702ac8

Signed-off-by: Alexandr Nevenchanniy <a.nevenchannyy@gmail.com
2017-05-17 17:50:03 +03:00
Serge Hallyn
5059aae905 cgfsng: log when we defer to cgfsng
Signed-off-by: Serge Hallyn <serge@hallyn.com>
2017-05-17 09:23:38 -05:00
Christian Brauner
1de3c9170e Merge pull request #1567 from anevenchanniy/lxc-top/memory
[lxc-top] Add memory+swap monitoring
2017-05-16 20:23:51 +02:00
Nevenchanniy Aleksandr
6b6e702ac8 [lxc-top] Add memory+swap monitoring
This is patch add memory + swap monitoring from lxc-top tool

Signed-off-by: Alexandr Nevenchanniy <a.nevenchannyy@gmail.com>
2017-05-16 18:50:57 +03:00
Serge Hallyn
2494c5ca31 Merge pull request #1565 from brauner/2017-05-15/clear_all_config_items
conf{,ile}: allow to clear all config items
2017-05-16 09:45:30 -05:00
Serge Hallyn
e863f86950 Merge pull request #1566 from brauner/2017-05-16/pin_rootfs_when_privileged
start: pin rootfs when privileged
2017-05-16 09:39:14 -05:00
Christian Brauner
0ee3505984
start: pin rootfs when privileged
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2017-05-16 00:42:30 +02:00
Christian Brauner
bf2146ab37 Merge pull request #1563 from 0x0916/seccomp
Seccomp: update comment, print action name etc
2017-05-15 17:55:55 +02:00
Christian Brauner
78625a5e3e
conf{,ile}: allow to clear all config items
Closes #1561.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2017-05-15 15:24:17 +02:00
0x0916
4836330b1a seccomp: print action name in log
This patch add function `get_action_name`, so we can print action name
in the log file. for example:

```
lxc-start ubuntu 20170515095416.561 INFO     lxc_seccomp - seccomp.c:parse_config_v2:613 - Adding compat rule for reject_force_umount action 0(kill).
lxc-start ubuntu 20170515095416.562 INFO     lxc_seccomp - seccomp.c:parse_config_v2:613 - Adding compat rule for kexec_load action 327681(errno).
```

Signed-off-by: 0x0916 <w@laoqinren.net>
2017-05-15 20:45:55 +08:00
0x0916
998cd2f417 seccomp: update comment for function parse_config
Signed-off-by: 0x0916 <w@laoqinren.net>
2017-05-15 18:44:00 +08:00
0x0916
65afdf08b5 seccomp: s/n-new-privs/no-new-privs/g
Signed-off-by: 0x0916 <w@laoqinren.net>
2017-05-15 18:44:00 +08:00
Christian Brauner
179029df91 Merge pull request #1558 from 0x0916/lxc-top
add more detail for blkio
2017-05-15 11:06:56 +02:00
Christian Brauner
d698ad1000 Merge pull request #1562 from 0x0916/delete-unneccessory-include
monitor: delete unnecessary include file
2017-05-15 11:06:24 +02:00
0x0916
10174cd257 monitor: delete unneccessory include file
we want to export `monitor.h`, `#include "conf.h"` will cause error
and it is unneccessory so just delete it.

Signed-off-by: 0x0916 <w@laoqinren.net>
2017-05-15 15:35:43 +08:00
0x0916
7c9d733f3d add more detail for blkio
This patch add Read and Write information for blkio bytes.

Signed-off-by: 0x0916 <w@laoqinren.net>
2017-05-15 14:46:23 +08:00
Christian Brauner
7e0ed7ffa0 Merge pull request #1560 from dimkr/master
conf: fix build without libcap
2017-05-14 11:59:52 +02:00
Dima Krasner
bc5b27d6f6 conf: fix build without libcap
Signed-off-by: Dima Krasner <samdima@securingsam.com>
2017-05-14 12:40:02 +03:00
Stéphane Graber
1dd898cc99 Merge pull request #1553 from brauner/2017-05-12/allow_no_controlling_terminal
lxc-attach: allow for situations without /dev/tty
2017-05-13 16:18:30 -04:00
Serge Hallyn
66806d2432 Merge pull request #1551 from brauner/2017-05-11/fix_num_parsing
utils: fix num parsing functions
2017-05-13 14:46:45 -05:00
Serge Hallyn
fbe5c36ec2 Merge pull request #1556 from brauner/2017-05-13/fix_newuidmap_regression
start: don't call lxc_map_ids() without id map
2017-05-13 14:39:07 -05:00
Christian Brauner
57927bf255
start: don't call lxc_map_ids() without id map
So far, we somehow always called lxc_map_ids(), even when no id map was
configured. Let's not do this.

Closes #1555.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2017-05-13 17:16:25 +02:00
Christian Brauner
6f18b9c483
lxc-attach: allow for situations without /dev/tty
Closes #1552.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2017-05-12 16:58:09 +02:00
Christian Brauner
15fe2189e6
tests: lxc_safe_{u}int() add corner-case tests
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2017-05-12 02:26:20 +02:00
Christian Brauner
643c19840f
utils: fix num parsing functions
Suggested-by: Benedikt Rosenkranz beluro@web.de
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2017-05-12 01:16:09 +02:00
Stéphane Graber
bd3dfa33e2 Merge pull request #1550 from brauner/2017-05-11/add_comment_to_lxc_spawn
start: add crucial details about lxc_spawn()
2017-05-11 11:10:19 -04:00
Christian Brauner
480588e6ad
start: add crucial details about lxc_spawn()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2017-05-11 14:41:47 +02:00
Christian Brauner
bb51d6b135 Merge pull request #1549 from 0x0916/install-systemd-unit-for-centos
Install systemd units for CentOS
2017-05-11 12:14:08 +02:00
0x0916
82b479119d Merge ubuntu and debiancase
Signed-off-by: 0x0916 <w@laoqinren.net>
2017-05-11 15:16:14 +08:00
0x0916
234f9815ff Install systemd units for CentOS
Signed-off-by: 0x0916 <w@laoqinren.net>
2017-05-11 15:15:18 +08:00
Stéphane Graber
394c22055f Merge pull request #1548 from brauner/2017-05-10/prevent_umount_propagation
utils: handle > 2^31 in lxc_unstack_mountpoint()
2017-05-10 17:04:57 -04:00
Christian Brauner
b4a40f7b45
utils: handle > 2^31 in lxc_unstack_mountpoint()
I mean.. really? But better safe than sorry.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2017-05-10 18:28:09 +02:00
Serge Hallyn
60883ba8e1 Merge pull request #1547 from brauner/2017-05-10/prevent_umount_propagation
start: remove umount2()
2017-05-10 10:43:53 -05:00