- 28 Nov, 2017 1 commit
-
-
AustinReichert authored
Signed-off-by:AustinReichert <austinskyreichert@utexas.edu>
-
- 27 Nov, 2017 2 commits
-
-
Serge Hallyn authored
Use AX_PTHREAD config script to detect pthread api
-
LiFeng authored
In order to support filtering syscalls based on arguments the seccomp version 2 specification is extended to the following form: syscall_name action [index,value,op,valueTwo] [index,value,op]... where the arguments of the tuple [index,value,valueTwo,op] have the following meaning: 1. index (uint32_t): The index of the syscall argument. 2. value (uint64_t): The value for the syscall argument specified by "index". 3. valueTwo (uint64_t, optional): The value for the syscall argument specified by "index". This optional value is only valid in conjunction with SCMP_CMP_MASKED_EQ. 4. op (string): The operator for the syscall argument. Valid operators are the constants - SCMP_CMP_NE (!=) - SCMP_CMP_LE (<=) - SCMP_CMP_EQ (==) - SCMP_CMP_GE (>=) - SCMP_CMP_GT (>) - SCMP_CMP_MASKED_EQ (&=) as defined by libseccomp >= v2.3.2. For convenience liblxc also understands the standard operator notation indicated in brackets after the libseccomp constants above as an equivalent notation. Note that it is legal to specify multiple entries for the same syscall. An example for an extended seccomp version 2 profile is: 2 blacklist allow reject_force_umount # comment this to allow umount -f; not recommended [all] kexec_load errno 1 [0,1,SCMP_CMP_LE][3,1,==][5,1,SCMP_CMP_MASKED_EQ,1] open_by_handle_at errno 1 init_module errno 1 finit_module errno 1 delete_module errno 1 unshare errno 9 [0,0x10000000,SCMP_CMP_EQ] unshare errno 2 [0,0x20000000,SCMP_CMP_EQ] Closes #1564. Signed-off-by:
LiFeng <lifeng68@huawei.com> Reviewed-by:
Christian Brauner <christian.brauner@ubuntu.com>
-
- 26 Nov, 2017 1 commit
-
-
Marcos Paulo de Souza authored
Closes: #84 Signed-off-by:Marcos Paulo de Souza <marcos.souza.org@gmail.com>
-
- 25 Nov, 2017 1 commit
-
-
Yifeng Tan authored
Signed-off-by:
Yifeng Tan <tanyifeng1@huawei.com> Reviewed-by:
Christian Brauner <christian.brauner@ubuntu.com>
-
- 24 Nov, 2017 2 commits
-
-
Stéphane Graber authored
conf: move CAP_SYS_* definitions to utils.h
-
Christian Brauner authored
Closes #1946. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
- 23 Nov, 2017 9 commits
-
-
Christian Brauner authored
Fixed typo on lxc.spec.in
-
David Negreira authored
Signed-off-by: David Negreira David@otherreality.net
-
Stéphane Graber authored
doc: documents lxc.namespace.[namespace identifier] + confile: improve legacy update message
-
Christian Brauner authored
Improve lxc-oci.in
-
Christian Brauner authored
Closes #1924. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Felix Abecassis authored
Signed-off-by:Felix Abecassis <fabecassis@nvidia.com>
-
Felix Abecassis authored
Signed-off-by:Felix Abecassis <fabecassis@nvidia.com>
-
Felix Abecassis authored
Signed-off-by:Felix Abecassis <fabecassis@nvidia.com>
-
Felix Abecassis authored
Signed-off-by:Felix Abecassis <fabecassis@nvidia.com>
-
- 22 Nov, 2017 8 commits
-
-
Christian Brauner authored
Closes #1938. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Felix Abecassis authored
Signed-off-by:Felix Abecassis <fabecassis@nvidia.com>
-
Felix Abecassis authored
Signed-off-by:Felix Abecassis <fabecassis@nvidia.com>
-
Felix Abecassis authored
Signed-off-by:Felix Abecassis <fabecassis@nvidia.com>
-
Christian Brauner authored
lxc-test-unpriv: check user existence before removing it
-
Christian Brauner authored
confile_utils: fix overlapping strncpy
-
Po-Hsu Lin authored
Check the test user (lxcunpriv) before calling deluser command, otherwise it will print unnecessary error message: /usr/sbin/deluser: The user 'lxcunpriv' does not exist. Signed-off-by:Po-Hsu Lin <po-hsu.lin@canonical.com>
-
Felix Abecassis authored
In the case of "lxc.net.0.type", the pointers passed to strncpy were only 2 elements apart, resulting in undefined behavior. Signed-off-by:Felix Abecassis <fabecassis@nvidia.com>
-
- 21 Nov, 2017 2 commits
-
-
Christian Brauner authored
lxc_init: set the control terminal in the child session
-
Jonathan Calmels authored
Signed-off-by:Jonathan Calmels <jcalmels@nvidia.com>
-
- 20 Nov, 2017 6 commits
-
-
Stéphane Graber authored
commands: fix state socket implementation
-
Christian Brauner authored
Remove dead state clients from state client list. Consider the following scenario: 01 start container 02 issue shutdown request 03 state_client_fd is added to lxc_handler 03 container doesn't respond to shutdown request 04 user aborts shutdown request 05 lxc_cmd_fd_cleanup() removes state_client_fd from lxc_mainloop 06 invalid state_client_fd is still recorded in the lxc_handler 07 user issues lxc_cmd_stop() request via SIGKILL 08 container reaches STOPPED state and sends message to state_client_fd 09 state_client_fd number has been reused by lxc_cmd_stop_callback() 10 invalid data gets dumped to lxc_cmd_stop() Reproducer: Set an invalid shutdown signal to which the init system does not respond with a shutdown via lxc.signal.halt e.g. "lxc.signal.halt = SIGUSR1". Then do: 1. start container root@conventiont|~ > lxc-start -n a1 2. try to shutdown container root@conventiont|~ > lxc-stop -n a1 3. abort shutdown ^C 4. SIGKILL the container (lxc.signal.stop = SIGKILL) root@conventiont|~ > lxc-stop -n a1 -k lxc-stop: a1: commands.c: lxc_cmd_rsp_recv: 165 File too large - Response data for command "stop" is too long: 12641 bytes > 8192 To not let this happen we remove the state_client_fd from the lxc_handler when we detect a cleanup event in lxc_cmd_fd_cleanup(). Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Fix lxc_inherit_namespace function error
-
LiFeng authored
Signed-off-by:LiFeng <lifeng68@huawei.com>
-
- 18 Nov, 2017 1 commit
-
-
Serge Hallyn authored
console: add lxc.console.buffer.size, lxc.console.buffer.logfile, lxc.console.rotate
-
- 17 Nov, 2017 7 commits
-
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
When a "clear" request is sent to the console ringbuffer we should truncate the console log file as well. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
The lxc_console_create() function used to munge the ringbuffer setup and the log file setup already. This made somewhat sense when we didn't have a separate ringbuffer log file. Now it's just plain confusing. So split this into logical helpers that future maintainers can understand: - lxc_console_create_log_file() - lxc_console_create_ringbuf(console); - lxc_console_create_ringbuf_log_file(console); Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
If we do it unconditionally a request to only clear the ringbuffer and not read or write anything will fail. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-