- 08 Jul, 2017 1 commit
-
-
Long Wang authored
commit bdb3f441 says that we may undo the change in august 2014. I think that it is time to do that. Signed-off-by:
Long Wang <w@laoqinren.net>
-
- 07 Jul, 2017 2 commits
-
-
Stéphane Graber authored
Allow containers to start in AppArmor namespaces
-
Frédéric Dalleau authored
This patch allows users to start containers in AppArmor namespaces. Users can define their own profiles for their containers, but lxc-start must be allowed to change to a namespace. A container configuration file can wrap a container in an AppArmor profile using lxc.aa_profile. A process in an AppArmor namespace is restricted to view or manage only the profiles belonging to this namespace, as if no other profiles existed. A namespace can be created as follow: sudo mkdir /sys/kernel/security/apparmor/policy/namespaces/$NAMESPACE AppArmor can stack profiles so that the contained process is bound by the intersection of all profiles of the stack. This is achieved using the '//&' operator as follow: lxc.aa_profile = $PROFILE//&:$NAMESPACE://unconfined In this case, even the guest process appears unconfined in the namespace, it is still confined by $PROFILE. A guest allowed to access "/sys/kernel/security/apparmor/** rwklix," will be able to manage its own profile set, while still being enclosed in the topmost profile $PROFILE: Different guests can be assigned the same namespace or different namespaces. In the first case, they will share their profiles. In the second case, they will have distinct sets of profiles. This is validated on privileged containers. Signed-off-by:Frédéric Dalleau <frederic.dalleau@collabora.com>
-
- 06 Jul, 2017 1 commit
-
-
Christian Brauner authored
lxc-init: some enhancements
-
- 05 Jul, 2017 12 commits
-
-
Stéphane Graber authored
README: update
-
Christian Brauner authored
tests: delete the intermediate file and directory.
-
Christian Brauner authored
fix headers
-
Long Wang authored
Signed-off-by:Long Wang <w@laoqinren.net>
-
Long Wang authored
c->destory() will not remove the temp container directory. This patch fix that. Signed-off-by:Long Wang <w@laoqinren.net>
-
Long Wang authored
Signed-off-by:Long Wang <w@laoqinren.net>
-
Long Wang authored
Signed-off-by:Long Wang <w@laoqinren.net>
-
Long Wang authored
Signed-off-by:Long Wang <w@laoqinren.net>
-
Long Wang authored
Signed-off-by:Long Wang <w@laoqinren.net>
-
Long Wang authored
* Use `#include <lxc/lxccontaienr.h>` style for exported haeders. * remove used header `caps.h` Signed-off-by:Long Wang <w@laoqinren.net>
-
Long Wang authored
This patch mainly update the message format to: * upper the first letter * end without a dot all changes are relate to `lxc-init` Signed-off-by:Long Wang <w@laoqinren.net>
-
Long Wang authored
Signed-off-by:Long Wang <w@laoqinren.net>
-
- 04 Jul, 2017 2 commits
-
-
Christian Brauner authored
lxc-execute: print error message when failed
-
Long Wang authored
Signed-off-by:Long Wang <w@laoqinren.net>
-
- 03 Jul, 2017 6 commits
-
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Stéphane Graber authored
README: add CII Best Practices badge to README
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
lxclock: bugfix and update some comment
-
Long Wang authored
This patch mainly updates comments based on the current code. Signed-off-by:Long Wang <w@laoqinren.net>
-
Long Wang authored
Signed-off-by:Long Wang <w@laoqinren.net>
-
- 02 Jul, 2017 6 commits
-
-
Christian Brauner authored
fix some cppcheck warnings
-
Christian Brauner authored
remove the unused macro
-
0x0916 authored
use cppcheck tools `cppcheck --enable=warning .` on lxc source directory. This patch fix the following warnning ``` [src/lxc/cgroups/cgfs.c:794]: (warning) %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [src/lxc/confile.c:4441]: (warning) %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [src/lxc/confile.c:4502]: (warning) %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [src/lxc/confile_legacy.c:921]: (warning) %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [src/lxc/confile_legacy.c:938]: (warning) %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [src/lxc/lxclock.c:63]: (warning) %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [src/lxc/tools/lxc_info.c:118]: (warning) %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [src/lxc/tools/lxc_info.c:118]: (warning) %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [src/lxc/tools/lxc_info.c:123]: (warning) %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [src/lxc/tools/lxc_info.c:127]: (warning) %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [src/lxc/tools/lxc_info.c:130]: (warning) %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [src/lxc/tools/lxc_top.c:212]: (warning) %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [src/lxc/tools/lxc_top.c:212]: (warning) %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [src/lxc/tools/lxc_top.c:217]: (warning) %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [src/lxc/tools/lxc_top.c:221]: (warning) %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [src/lxc/tools/lxc_top.c:224]: (warning) %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. ``` Signed-off-by:Long Wang <w@laoqinren.net>
-
0x0916 authored
Signed-off-by:Long Wang <w@laoqinren.net>
-
Christian Brauner authored
lxc-ls: return all containers by default, new filter - list only defi…
-
Stéphane Graber authored
Added '--apt-conf' argument for ALTLinux template.
-
- 01 Jul, 2017 6 commits
-
-
Denis Pynkin authored
Added [-a|--apt-conf] parameter for selection of exact package providing 'apt-conf'. By default 'apt-conf-sisyphus' is used for Sisyphus and 'apt-conf-branch' for the rest of branches. Signed-off-by:Denis Pynkin <denis.pynkin@collabora.com>
-
Christian Brauner authored
new configuration keys
-
Christian Brauner authored
start: send state to legacy lxc-monitord state server even if no state clients registered
-
0x0916 authored
This pr https://github.com/lxc/lxc/pull/1618 kill lxc-monitord, for backwards compatibility, we also send state to legacy lxc-monitord state server in function `lxc_set_state`. we should also send state if there is no state clients registered, otherwise `lxc-monitor` client will not get state change event if container changed state to `STARTING` or `RUNNING`. Signed-off-by:
0x0916 <w@laoqinren.net>
-
Christian Brauner authored
lxc-monitord: exit when got a quit command
-
0x0916 authored
lxc-monitor has an option to tell lxc-monitord to quit. ``` ~/lxc (master) # lxc-monitor --help lxc-monitor monitors the state of the NAME container Options : -n, --name=NAME NAME of the container NAME may be a regular expression -Q, --quit tell lxc-monitord to quit ``` But it does not work. This patch fix that. Signed-off-by:0x0916 <w@laoqinren.net>
-
- 30 Jun, 2017 4 commits
-
-
0x0916 authored
the legacy keys will be kept around until LXC 3.0 and then will be removed. Signed-off-by:0x0916 <w@laoqinren.net>
-
0x0916 authored
the legacy keys will be kept around until LXC 3.0 and then will be removed Signed-off-by:0x0916 <w@laoqinren.net>
-
0x0916 authored
* rename lxc.haltsignal to lxc.signal.halt * rename lxc.rebootsignal to lxc.signal.reboot * rename lxc.stopsignal to lxc.signal.stop the legacy keys will be kept around until LXC 3.0 and then will be removed. Signed-off-by:0x0916 <w@laoqinren.net>
-
0x0916 authored
* rename lxc.logfile to lxc.log.file * renaem lxc.loglevel to lxc.log.level * rename lxc.syslog to lxc.log.syslog the legacy keys will be kept around until LXC 3.0 and then will be removed. Signed-off-by:0x0916 <w@laoqinren.net>
-