Stéphane Graber
7c927048f1
meson: Add SELinux configs
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-12 22:23:59 +02:00
Stéphane Graber
9d18059b8d
meson: Add global config
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-12 22:23:58 +02:00
Christian Brauner
053cb087b6
Merge pull request #4113 from stgraber/master
...
More meson tweaks
2022-05-08 00:06:52 +02:00
Stéphane Graber
b3da01d799
meson: Add doc examples
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-07 18:47:12 +02:00
Stéphane Graber
7609de1826
meson: Rework options
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-07 18:47:11 +02:00
Christian Brauner
5730c268f1
Merge pull request #4110 from stgraber/master
...
More meson fixes
2022-05-02 07:34:14 -07:00
Stéphane Graber
181cd6dc51
meson: Use dependencies for pkgconfig
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-02 14:40:42 +02:00
Stéphane Graber
d841229ea5
meson: Bump minimal version
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-02 14:22:25 +02:00
Stéphane Graber
18ad1086fa
meson: Simplify pc handling
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-02 14:22:24 +02:00
Christian Brauner
c62dd66bd6
Merge pull request #4109 from stgraber/master
...
More meson fixes
2022-05-01 06:20:55 -07:00
Stéphane Graber
4a858b5665
meson: Add bash completion
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 12:21:53 +02:00
Stéphane Graber
1404fcb81f
meson: Include the /var paths
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 12:05:08 +02:00
Stéphane Graber
6dfabed1fa
meson: Include rootfs dir
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 12:05:07 +02:00
Stéphane Graber
0860988ed9
meson: Setup pkgconfig
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 11:50:18 +02:00
Stéphane Graber
1a9afaccbf
meson: Include headers
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 11:50:17 +02:00
Stéphane Graber
31985a040d
meson: Fix hook install locations
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 10:24:35 +02:00
Stéphane Graber
4c7c1431d4
meson: Fix library version
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 10:24:34 +02:00
Stéphane Graber
0940e81168
meson: Add lxc-attach
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 10:24:33 +02:00
Stéphane Graber
2f1bf5f58b
meson: Fix internal binaries
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 10:24:32 +02:00
Stéphane Graber
46b9598f1a
meson: Fix template installation location
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 10:24:31 +02:00
Stéphane Graber
a15711569e
meson: Get test binaries to match autotools
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-01 10:24:30 +02:00
Christian Brauner
0c0f740fba
Merge pull request #4108 from stgraber/master
...
Meson improvements
2022-04-29 09:51:29 +02:00
Stéphane Graber
14746eee9d
Update MAINTAINERS file
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-04-28 23:12:30 -04:00
Stéphane Graber
23ba778f9f
meson: Fix unix epoch
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-04-28 22:54:41 -04:00
Stéphane Graber
aa326e18e9
meson: Update run_command calls
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-04-28 22:54:40 -04:00
Stéphane Graber
4738079024
meson: Install the test binaries
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-04-28 22:54:39 -04:00
Stéphane Graber
20b03401be
meson: Cleanup build configs
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-04-28 22:17:01 -04:00
Stéphane Graber
df05cddc83
meson: Remove non-existent tests
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-04-28 17:55:11 -04:00
Stéphane Graber
5a7b9ce677
Merge pull request #4101 from memnoth/fix-fail-exec-dnsmasq
...
lxc-net.in: fix failure executing dnsmasq
2022-04-02 20:33:25 -04:00
Leesoo Ahn
f97607e02c
lxc-net.in: fix failure executing dnsmasq
...
Failure executing dnsmasq happens if misc dir is not existed as the
following error messages.
localhost.localdomain systemd[1]: Starting LXC network bridge setup...
localhost.localdomain lxc-net[5754]: dnsmasq: cannot open or create lease file /usr/local/var/lib/misc/dnsmasq.lxcbr0.leases: No such file or directory
localhost.localdomain dnsmasq[5754]: cannot open or create lease file /usr/local/var/lib/misc/dnsmasq.lxcbr0.leases: No such file or directory
localhost.localdomain dnsmasq[5754]: FAILED to start up
localhost.localdomain lxc-net[5727]: Failed to setup lxc-net.
localhost.localdomain lxc-net[5727]: Failed to setup lxc-net.
localhost.localdomain systemd[1]: lxc-net.service: Main process exited, code=exited, status=1/FAILURE
localhost.localdomain systemd[1]: lxc-net.service: Failed with result 'exit-code'.
localhost.localdomain systemd[1]: Failed to start LXC network bridge setup.
Modify 'lxc-net' script to call 'mkdir -p' command if the directory is not
existed before executing dnsmasq daemon.
Signed-off-by: Leesoo Ahn <lsahn@ooseel.net>
2022-04-02 20:23:21 +09:00
Stéphane Graber
d09a31dba6
Merge pull request #4099 from corubba/feature/stop-order
...
tools: lxc-autostart: Reverse order on stop
2022-03-30 11:40:16 -04:00
corubba
8f8d14f72d
tools: lxc-autostart: Reverse order on stop
...
As it was already discussed in lxc/lxd#2082 , containers should be
stopped in the opposite order they are started in. LXD does so already,
lxc should do the same.
Signed-off-by: Corubba Smith <corubba@gmx.de>
2022-03-27 01:36:20 +01:00
Christian Brauner
4ad335d07a
Merge pull request #4098 from memnoth/mnth/fastpath-mkdir_p
...
utils: add fastpath routine on mkdir_p function
2022-03-26 17:40:02 +01:00
Leesoo Ahn
0a0911faee
utils: add fastpath routine on mkdir_p function
...
Call 'access' to examine whether 'dir' is already existed or not instead
of directly calling 'mkdir' on each dir name separated by slash '/' even though
'dir' is existed.
Signed-off-by: Leesoo Ahn <lsahn@ooseel.net>
2022-03-26 22:22:10 +09:00
Stéphane Graber
90a9b72667
Merge pull request #4096 from brauner/2022-03-22.meson
...
build: add more tests to meson
2022-03-23 12:57:19 -04:00
Christian Brauner
cf9e29f352
build: add more tests to meson
...
Signed-off-by: Christian Brauner (Microsoft) <christian.brauner@ubuntu.com>
2022-03-23 16:11:00 +01:00
Christian Brauner
44c22b8a95
tests: fix include statements
...
Signed-off-by: Christian Brauner (Microsoft) <christian.brauner@ubuntu.com>
2022-03-23 16:10:48 +01:00
Stéphane Graber
c8f5432d54
Merge pull request #4095 from brauner/2022-03-22.meson
...
build: add tests to meson
2022-03-22 09:40:44 -04:00
Christian Brauner (Microsoft)
2cf04d6695
build: add tests to meson
...
Signed-off-by: Christian Brauner (Microsoft) <christian.brauner@ubuntu.com>
2022-03-22 08:48:43 +01:00
Stéphane Graber
30ebf0964d
Merge pull request #4091 from JamiKettunen/non-modular-kernels
...
lxc-checkconfig: Only check probed modules if /proc/modules exists
2022-03-09 17:14:05 +01:00
Jami Kettunen
b7affe5264
lxc-checkconfig: Only check probed modules if /proc/modules exists
...
Kernels can be built with CONFIG_MODULES=n which results in
is_probed() telling the module isn't probed and lsmod spamming the
following to stderr each time it's called:
libkmod: kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory
Error: could not get list of modules: No such file or directory
Fix this by "stubbing" is_probed() when /proc/modules doesn't exist
as it's always called after a is_enabled() anyway.
Signed-off-by: Jami Kettunen <jami.kettunen@protonmail.com>
2022-03-08 12:37:08 +02:00
Stéphane Graber
2ff64429ec
Merge pull request #4090 from brauner/2022-02-22.fixes.4
...
cgroups: modify cgroup2 attach logic
2022-02-24 11:32:30 -05:00
Christian Brauner
2e67b0d47f
cgroups: modify cgroup2 attach logic
...
Recent kernels have seen various permission checking fixes when moving
processes into cgroups. So we're forced to modify how we attach to
containers.
Link: https://discuss.linuxcontainers.org/t/lxd-4-23-unable-to-start-nested-containers
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2022-02-23 15:58:27 +01:00
Stéphane Graber
642052d58c
Merge pull request #4089 from brauner/2022-02-22.fixes
...
ttys: ensure container_ttys= env variable is set correctly
2022-02-22 10:52:37 -05:00
Christian Brauner
3b9f84fd23
ttys: ensure container_ttys= env variable is set correctly
...
Fixes : #4088
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2022-02-22 12:20:15 +01:00
Christian Brauner
96a30fe95b
Merge pull request #4087 from tenforward/japanese
...
doc: Fix reverse allowlist/denylist in Japanese man page
2022-02-21 14:32:10 +01:00
KATOH Yasufumi
302a87291c
doc: Fix reverse allowlist/denylist in Japanese man page
...
Update for commit 2965130c45
Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2022-02-21 22:17:36 +09:00
Stéphane Graber
fd115a7359
Merge pull request #4085 from brauner/2022-02-20.cgroup.fixes
...
cgroups: fixes
2022-02-20 14:53:07 -05:00
Christian Brauner
f7abb27245
cgroups: log fd of newly created cgroup
...
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2022-02-20 15:52:10 +01:00
Christian Brauner
c090dbedbd
cgroups: check that opened file descriptor is a cgroup filesystem
...
Link: https://discuss.linuxcontainers.org/t/lxd-4-23-unable-to-start-nested-containers/13416
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2022-02-20 15:47:28 +01:00