diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 86 |
1 files changed, 57 insertions, 29 deletions
@@ -675,6 +675,7 @@ HAVE_OVERLAYFS | |||
675 | HAVE_DBUSPROXY | 675 | HAVE_DBUSPROXY |
676 | EXTRA_LDFLAGS | 676 | EXTRA_LDFLAGS |
677 | EXTRA_CFLAGS | 677 | EXTRA_CFLAGS |
678 | HAVE_LANDLOCK | ||
678 | HAVE_SELINUX | 679 | HAVE_SELINUX |
679 | AA_LIBS | 680 | AA_LIBS |
680 | AA_CFLAGS | 681 | AA_CFLAGS |
@@ -737,6 +738,7 @@ enable_sanitizer | |||
737 | enable_ids | 738 | enable_ids |
738 | enable_apparmor | 739 | enable_apparmor |
739 | enable_selinux | 740 | enable_selinux |
741 | enable_landlock | ||
740 | enable_dbusproxy | 742 | enable_dbusproxy |
741 | enable_output | 743 | enable_output |
742 | enable_usertmpfs | 744 | enable_usertmpfs |
@@ -1396,6 +1398,7 @@ Optional Features: | |||
1396 | --enable-ids enable ids | 1398 | --enable-ids enable ids |
1397 | --enable-apparmor enable apparmor | 1399 | --enable-apparmor enable apparmor |
1398 | --enable-selinux SELinux labeling support | 1400 | --enable-selinux SELinux labeling support |
1401 | --enable-landlock Landlock self-restriction support | ||
1399 | --disable-dbusproxy disable dbus proxy | 1402 | --disable-dbusproxy disable dbus proxy |
1400 | --disable-output disable --output logging | 1403 | --disable-output disable --output logging |
1401 | --disable-usertmpfs disable tmpfs as regular user | 1404 | --disable-usertmpfs disable tmpfs as regular user |
@@ -3739,6 +3742,58 @@ then : | |||
3739 | 3742 | ||
3740 | fi | 3743 | fi |
3741 | 3744 | ||
3745 | HAVE_LANDLOCK="" | ||
3746 | |||
3747 | # Check whether --enable-landlock was given. | ||
3748 | if test ${enable_landlock+y} | ||
3749 | then : | ||
3750 | enableval=$enable_landlock; | ||
3751 | fi | ||
3752 | |||
3753 | ac_header= ac_cache= | ||
3754 | for ac_item in $ac_header_c_list | ||
3755 | do | ||
3756 | if test $ac_cache; then | ||
3757 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" | ||
3758 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then | ||
3759 | printf "%s\n" "#define $ac_item 1" >> confdefs.h | ||
3760 | fi | ||
3761 | ac_header= ac_cache= | ||
3762 | elif test $ac_header; then | ||
3763 | ac_cache=$ac_item | ||
3764 | else | ||
3765 | ac_header=$ac_item | ||
3766 | fi | ||
3767 | done | ||
3768 | |||
3769 | |||
3770 | |||
3771 | |||
3772 | |||
3773 | |||
3774 | |||
3775 | |||
3776 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes | ||
3777 | then : | ||
3778 | |||
3779 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h | ||
3780 | |||
3781 | fi | ||
3782 | if test "x$enable_landlock" != "xno" | ||
3783 | then : | ||
3784 | |||
3785 | ac_fn_c_check_header_compile "$LINENO" "linux/landlock.h" "ac_cv_header_linux_landlock_h" "$ac_includes_default" | ||
3786 | if test "x$ac_cv_header_linux_landlock_h" = xyes | ||
3787 | then : | ||
3788 | HAVE_LANDLOCK="-DHAVE_LANDLOCK" | ||
3789 | else $as_nop | ||
3790 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: header not found: linux/landlock.h, building without Landlock support" >&5 | ||
3791 | printf "%s\n" "$as_me: WARNING: header not found: linux/landlock.h, building without Landlock support" >&2;} | ||
3792 | fi | ||
3793 | |||
3794 | |||
3795 | fi | ||
3796 | |||
3742 | 3797 | ||
3743 | 3798 | ||
3744 | 3799 | ||
@@ -4112,6 +4167,7 @@ if test "x$enable_lts" = "xyes" | |||
4112 | then : | 4167 | then : |
4113 | 4168 | ||
4114 | HAVE_LTS="-DHAVE_LTS" | 4169 | HAVE_LTS="-DHAVE_LTS" |
4170 | HAVE_LANDLOCK="" | ||
4115 | HAVE_IDS="" | 4171 | HAVE_IDS="" |
4116 | HAVE_DBUSPROXY="" | 4172 | HAVE_DBUSPROXY="" |
4117 | HAVE_OVERLAYFS="" | 4173 | HAVE_OVERLAYFS="" |
@@ -4132,35 +4188,6 @@ then : | |||
4132 | 4188 | ||
4133 | fi | 4189 | fi |
4134 | 4190 | ||
4135 | ac_header= ac_cache= | ||
4136 | for ac_item in $ac_header_c_list | ||
4137 | do | ||
4138 | if test $ac_cache; then | ||
4139 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" | ||
4140 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then | ||
4141 | printf "%s\n" "#define $ac_item 1" >> confdefs.h | ||
4142 | fi | ||
4143 | ac_header= ac_cache= | ||
4144 | elif test $ac_header; then | ||
4145 | ac_cache=$ac_item | ||
4146 | else | ||
4147 | ac_header=$ac_item | ||
4148 | fi | ||
4149 | done | ||
4150 | |||
4151 | |||
4152 | |||
4153 | |||
4154 | |||
4155 | |||
4156 | |||
4157 | |||
4158 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes | ||
4159 | then : | ||
4160 | |||
4161 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h | ||
4162 | |||
4163 | fi | ||
4164 | ac_fn_c_check_header_compile "$LINENO" "linux/seccomp.h" "ac_cv_header_linux_seccomp_h" "$ac_includes_default" | 4191 | ac_fn_c_check_header_compile "$LINENO" "linux/seccomp.h" "ac_cv_header_linux_seccomp_h" "$ac_includes_default" |
4165 | if test "x$ac_cv_header_linux_seccomp_h" = xyes | 4192 | if test "x$ac_cv_header_linux_seccomp_h" = xyes |
4166 | then : | 4193 | then : |
@@ -5360,6 +5387,7 @@ Features: | |||
5360 | firetunnel support: $HAVE_FIRETUNNEL | 5387 | firetunnel support: $HAVE_FIRETUNNEL |
5361 | global config: $HAVE_GLOBALCFG | 5388 | global config: $HAVE_GLOBALCFG |
5362 | IDS support: $HAVE_IDS | 5389 | IDS support: $HAVE_IDS |
5390 | Landlock support: $HAVE_LANDLOCK | ||
5363 | LTS: $HAVE_LTS | 5391 | LTS: $HAVE_LTS |
5364 | manpage support: $HAVE_MAN | 5392 | manpage support: $HAVE_MAN |
5365 | network: $HAVE_NETWORK | 5393 | network: $HAVE_NETWORK |