Commit Graph

11513 Commits

Author SHA1 Message Date
Stéphane Graber
6f9fabfcb8
github: Update build test for meson
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-08 00:47:03 -04:00
Stéphane Graber
826cc3ddca
README: Update for meson
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-08 00:47:02 -04:00
Stéphane Graber
f2c06c6c2d
doc: Update for meson
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-08 00:47:01 -04:00
Stéphane Graber
62423c89e7
meson: Add basic Makefile
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-08 00:47:00 -04:00
Stéphane Graber
4c8139f9cf
Remove autotools
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-08 00:46:59 -04:00
neilnaveen
fe3add2ab8 chore: Set permissions for GitHub actions
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com>
2022-06-08 01:08:12 +00:00
Christian Brauner
099bd13ce5
Merge pull request #4135 from stgraber/meson
More meson fixes
2022-06-07 23:51:34 +02:00
Stéphane Graber
7eac83c1b1
meson: Fix mntent include condition
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-07 17:26:47 -04:00
Stéphane Graber
61c40023d0
lxc/rexec: Use HAVE_FEXECVE
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-07 17:26:46 -04:00
Stéphane Graber
faa4ae06ef
meson: Add lxcmntent to unmount-namespace hook
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-07 17:18:14 -04:00
Stéphane Graber
199241209f
meson: Add missing prlimit include
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-07 17:18:13 -04:00
Stéphane Graber
7a489adb89
meson: Only build seccomp and selinux when needed
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-07 17:18:12 -04:00
Stéphane Graber
4c96107d1e
meson: Always define HAVE_LIBURING
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-07 17:18:11 -04:00
Stéphane Graber
869deb9173
meson: seccomp is optional
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-07 17:18:10 -04:00
Stéphane Graber
f7de7d7adf
meson: Fix on shallow git trees
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-07 17:18:09 -04:00
Stéphane Graber
d5dff814ac
meson: Add bionic detection
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-07 17:18:08 -04:00
Stéphane Graber
e18dbec746
meson: Fix RPM spec variables
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-07 17:18:07 -04:00
Stéphane Graber
8135966d1d
meson: Make lxc-user-nic setuid
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-07 17:18:06 -04:00
Stéphane Graber
1ccdc25349
meson: Don't include lxc-test-fuzzers
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-07 17:18:05 -04:00
Stéphane Graber
5055c73d91
meson: Skip static library when using sanitizer
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-07 17:18:04 -04:00
Stéphane Graber
8d77f43f5c
meson: Cleanup and fix includes
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-07 17:18:04 -04:00
Stéphane Graber
4dd5e0cf13
meson: Add coverity flag
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-07 17:18:03 -04:00
Christian Brauner
3d24d295ce
Merge pull request #4133 from dasteihn/sta/fallthrough
CODING_STYLE: add forgotten fallthrough
2022-06-07 13:20:05 +02:00
Philipp Stanner
3bba8eade7 CODING_STYLE: add forgotten fallthrough
Signed-off-by: Philipp Stanner <stanner@posteo.de>
2022-06-07 13:06:56 +02:00
Christian Brauner
4cda46cb33
Merge pull request #4130 from stgraber/master
Finalize the meson port
2022-06-03 10:32:25 +02:00
Stéphane Graber
9c562440e5
meson: Add RPM spec
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-02 16:50:01 -04:00
Stéphane Graber
eba7f7a6bc
meson: Rework configuration variables
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-02 16:50:00 -04:00
Stéphane Graber
7991f60047
meson: Tweak config for manpages
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-02 16:49:59 -04:00
Stéphane Graber
f80af4e12b
meson: Export more variables to doc
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-02 16:49:58 -04:00
Stéphane Graber
299f3f80d2
meson: Export LXC_DISTRO_SYSCONF
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-06-02 16:49:58 -04:00
Christian Brauner
6e4796b4e3
Merge pull request #4126 from stgraber/master
Complete meson port
2022-05-31 09:17:31 +02:00
Stéphane Graber
6105cc7f53
meson: Add apparmor profiles
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-30 19:16:42 -04:00
Stéphane Graber
36a53f3026
meson: Add sysconfig
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-30 19:16:41 -04:00
Stéphane Graber
8131bb44ec
meson: Add init scripts
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-30 19:16:40 -04:00
Stéphane Graber
7d8a38b260
meson: Rename want_io_uring
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-30 19:16:39 -04:00
Stéphane Graber
4412d151b6
meson: Make docbook2man required if user requested doc
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-30 19:16:38 -04:00
Christian Brauner
a3579c031e
Merge pull request #4125 from stgraber/master
meson: Tweak docs
2022-05-30 22:24:07 +02:00
Stéphane Graber
2bd9ab6fc5
meson: More flexible doc handling
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-30 16:00:12 -04:00
Stéphane Graber
fb15f1c0da
meson: Simplify if statements
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-30 16:00:11 -04:00
Christian Brauner
73fdf87ccb
Merge pull request #4124 from stgraber/master
More meson work
2022-05-28 08:27:12 +02:00
Stéphane Graber
47c56c50a8
meson: Add manpages
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-27 22:02:38 -04:00
Stéphane Graber
a79b0663b4
meson: Only build tools when requested
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-27 22:02:37 -04:00
Stéphane Graber
b3d189920a
meson: Add tools option
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-27 22:02:36 -04:00
Stéphane Graber
24dcd86d9a
meson: Re-shuffle PAM
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-27 22:02:35 -04:00
Stéphane Graber
54f1ddb39d
meson_options: Move entries around
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2022-05-27 22:02:34 -04:00
Stéphane Graber
771050e5c4
Merge pull request #4120 from brauner/2022-05-18.meson.pam
build: add pam_cgfs to meson
2022-05-24 10:26:38 -04:00
Christian Brauner
d5e2bc9750
Merge pull request #4121 from sitano/ivan_fix_pidfds_loglvl
lxc_can_use_pidfd: don't log error if pidfds not supported, trace
2022-05-21 09:23:57 +02:00
Ivan Prisyazhnyy
4afaadf02c lxc_can_use_pidfd: don't log error if pidfds not supported, trace
Signed-off-by: Ivan Prisyazhnyy <john.koepi@gmail.com>
2022-05-20 16:30:30 +02:00
Christian Brauner
8c8e72826f
pam: fix compiler warnings
Signed-off-by: Christian Brauner (Microsoft) <christian.brauner@ubuntu.com>
2022-05-19 11:49:48 +02:00
Christian Brauner
8c48813a6c
build: add pam_cgfs to meson
Signed-off-by: Christian Brauner (Microsoft) <christian.brauner@ubuntu.com>
2022-05-19 11:49:48 +02:00