[Mesa-dev] [PATCH mesa v2] meson: wire up selinux

Dylan Baker dylan at pnwbakers.com
Thu Oct 26 17:03:30 UTC 2017


I don't have an selinux enabled system to test with either, but this looks
correct and doesn't break the build.

Reviewed-by: Dylan Baker <dylan at pnwbakers.com>

Quoting Eric Engestrom (2017-10-26 09:30:24)
> Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
> ---
> build-tested only
> ---
>  meson.build       | 5 ++++-
>  meson_options.txt | 6 ++++++
>  2 files changed, 10 insertions(+), 1 deletion(-)
> 
> diff --git a/meson.build b/meson.build
> index 2a89b6482f966293282f..d245fbcea2ee9b02baf5 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -688,8 +688,11 @@ endif
>  prog_bison = find_program('bison', required : with_any_opengl)
>  prog_flex = find_program('flex', required : with_any_opengl)
>  
> -# TODO: selinux
>  dep_selinux = []
> +if get_option('selinux')
> +  dep_selinux = dependency('libselinux')
> +  pre_args += '-DMESA_SELINUX'
> +endif
>  
>  # TODO: llvm-prefix and llvm-shared-libs
>  
> diff --git a/meson_options.txt b/meson_options.txt
> index b44c93df0015f828d9e1..665ebb318c90142183b4 100644
> --- a/meson_options.txt
> +++ b/meson_options.txt
> @@ -160,3 +160,9 @@ option(
>    value : false,
>    description : 'Enable floating point textures and renderbuffers. This option may be patent encumbered, please read docs/patents.txt and consult with your lawyer before turning this on.'
>  )
> +option(
> +  'selinux',
> +  type : 'boolean',
> +  value : false,
> +  description : 'Build an SELinux-aware Mesa'
> +)
> -- 
> Cheers,
>   Eric
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171026/fe271f40/attachment-0001.sig>


More information about the mesa-dev mailing list