Commit Graph

9063 Commits

Author SHA1 Message Date
Christian Brauner
fef909cf62
make dist: add missing files
deleted:    CODING_STYLE.md
deleted:    LICENSE.GPL2
deleted:    LICENSE.LGPL2.1
deleted:    README.md
deleted:    coccinelle/exit.cocci
deleted:    coccinelle/run-coccinelle.sh
deleted:    coccinelle/while-true.cocci
deleted:    doc/api-extensions.md
deleted:    src/tests/lxc-test-exit-code
deleted:    src/tests/travis.sh

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-24 20:37:00 +01:00
Stéphane Graber
e4e80aa9e9
Merge pull request #3322 from brauner/2020-03-24/fixes
utils: allow removal of immutable files
2020-03-23 11:32:09 -04:00
Christian Brauner
066210f0b9
utils: allow removal of immutable files
Closes #3185.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-23 16:06:40 +01:00
Stéphane Graber
99a1811c85
Merge pull request #3321 from brauner/2020-03-24/fixes
lxc-update-config: handle lxc.rootfs.backend correctly
2020-03-23 09:02:49 -04:00
Christian Brauner
309b71d7e6
lxc-local: remove -l/--list from help
Closes #2877.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-23 13:23:19 +01:00
Christian Brauner
6b40b0c200
lvm: don't generate uuid for ext4 snapshots
only btrfs and xfs need it.

Closes #2375.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-23 13:16:14 +01:00
Christian Brauner
046c3a1cdf
lxc-update-config: handle lxc.rootfs.backend correctly
Closes #2424.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-23 12:29:38 +01:00
Stéphane Graber
cb47a5af6a
Merge pull request #3320 from brauner/2020-03-22/fixes
overlay: rewrite
2020-03-22 15:22:37 -04:00
Christian Brauner
27d79d0a84
lxc_copy: only overmount overlay subdirectory with tmpfs
Closes #2959.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-22 18:37:38 +01:00
Christian Brauner
facdf92587
overlay: rewrite and simplify
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-22 18:37:38 +01:00
Stéphane Graber
7d2b8a6f34
Merge pull request #3319 from brauner/2020-03-21/fixes
network: fixes
2020-03-21 07:22:51 -04:00
Christian Brauner
fa2e1cea8d
lxc-user-nic: enable uid-marked veth devices for uids with 5 digits
With the newly extended lxc_ifname_alnum_case_sensitive() we'll have 62^4
unique network device names per user.

Closes #3176.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-21 11:52:15 +01:00
Christian Brauner
3646ffd9ae
network: introduce lxc_ifname_alnum_case_sensitive()
Right now we have 36^n unique network device names. Let's make it 62^n.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-21 11:50:59 +01:00
Stéphane Graber
0c24153720
Merge pull request #3318 from brauner/2020-03-20/fixes
log: fix cmd logging
2020-03-20 17:32:10 -04:00
Christian Brauner
a1162a6ce7
log: fix cmd logging
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-20 22:02:12 +01:00
Stéphane Graber
2570641c55
Merge pull request #3317 from brauner/2020-03-20/fixes
mainloop, ringbuf: cleanup
2020-03-20 13:45:06 -04:00
Christian Brauner
d7314671ad
cgroups: simplify
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-20 18:30:53 +01:00
Stéphane Graber
52767e2e0f
Merge pull request #3316 from brauner/2020-03-20/fixes
log: fixes
2020-03-20 13:24:42 -04:00
Christian Brauner
55cf04e373
ringbuf: fix cleanup operations
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-20 18:18:37 +01:00
Christian Brauner
eafc1bb6e6
mainloop: cleanup
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-20 18:02:42 +01:00
Christian Brauner
3e92b6f7e4
log: add missing variable and fix CMD_SYSINFO()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-20 17:53:05 +01:00
Christian Brauner
53c7622549
log: cleanup
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-20 17:49:48 +01:00
Stéphane Graber
92956baacf
Merge pull request #3315 from brauner/2020-03-20/fixes
log: add missing \
2020-03-20 11:16:02 -04:00
Christian Brauner
017c2940de
log: add missing \
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-20 16:00:36 +01:00
Stéphane Graber
b3d528ef8b
Merge pull request #3314 from brauner/2020-03-20/fixes
start: move reading seccomp profile after pre-start hook
2020-03-20 10:39:15 -04:00
Christian Brauner
2e1361a686
start: move reading seccomp profile after pre-start hook
This allows users to generate custom profiles at startup.

Closes #1848.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-20 15:27:24 +01:00
Stéphane Graber
00ae4f277c
Merge pull request #3313 from brauner/2020-03-20/fixes
network: fixes
2020-03-20 09:20:09 -04:00
Christian Brauner
df706de4d3
lxc_user_nic: rework device creation
Closes #3058.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-20 14:04:17 +01:00
Christian Brauner
19bfd55a08
nl: improve how we surface errors
Closes #3057.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-20 14:04:08 +01:00
Stéphane Graber
72abae9e71
Merge pull request #3312 from brauner/2020-03-20/fixes
network: use cleanup macros
2020-03-20 07:50:29 -04:00
Christian Brauner
a5f5cb419b
network: use cleanup macros
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-20 12:30:07 +01:00
Stéphane Graber
d42ec8296f
Merge pull request #3310 from brauner/2020-03-19/fixes
network: fix ovs removal
2020-03-19 22:57:12 -04:00
Christian Brauner
d16bda44d4
network: use cleanup attributes
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-19 17:43:13 +01:00
Christian Brauner
9c66dc4f2d
network: cleanup galore
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-19 17:10:02 +01:00
Christian Brauner
f27111671e
network: use is_empty_string() everywhere
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-19 16:32:48 +01:00
Christian Brauner
1ee56cffce
network: fix ovs removal
Closes #3137.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-19 16:24:09 +01:00
Stéphane Graber
de95b43693
Merge pull request #3309 from brauner/2020-03-19/fixes
tree-wide: logging fixes and hardening
2020-03-19 09:53:48 -04:00
Christian Brauner
d7d1e27a71
log: use global variable to catch statements in loggers
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-19 14:35:56 +01:00
Stéphane Graber
5e92858c8b
Merge pull request #3308 from brauner/2020-03-19/fixes
conf: flatten logic in mount_entry()
2020-03-19 09:30:47 -04:00
Christian Brauner
fc3b95335b
cgroups: don't call statements from loggers
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-19 14:27:29 +01:00
Christian Brauner
15f3e22b00
conf: flatten logic in mount_entry()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-19 13:46:16 +01:00
Stéphane Graber
af24b9e59a
Merge pull request #3307 from brauner/2020-03-19/fixes
network: fixes
2020-03-19 08:38:37 -04:00
Christian Brauner
f759178580
conf: don't accidently double-mount
Closes #3073.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-19 13:11:03 +01:00
Christian Brauner
3c9fdb32fc
network: fix moving network devices with custom name
Closes #1271.
Closes #3131.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-19 12:51:02 +01:00
Christian Brauner
3473ca7649
network: introduce and use is_empty_string()
since some members of struct lxc_netdev are arrays, not pointers.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-19 12:45:23 +01:00
Stéphane Graber
74d40612ac
Merge pull request #3306 from brauner/2020-03-18/fixes
Makefile: fix typo
2020-03-18 13:44:14 -04:00
Christian Brauner
7f1d0e07bd
Makefile: fix typo
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-18 18:24:16 +01:00
Stéphane Graber
6b6de5c6e4
Merge pull request #3305 from brauner/2020-03-18/fixes
lxc-unshare: add syscall_wrappers.h to build requirements
2020-03-18 12:48:54 -04:00
Christian Brauner
9b57809d53
lxc-unshare: add syscall_wrappers.h to build requirements
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-18 16:08:08 +01:00
Stéphane Graber
ed754cd297
Merge pull request #3304 from brauner/2020-03-18/fixes
tree-wide: introduce and use syscall number header
2020-03-18 09:08:11 -04:00