Re: [GENERAL] Error compiling sepgsql in PG9.1 - Mailing list pgsql-hackers

From Robert Haas
Subject Re: [GENERAL] Error compiling sepgsql in PG9.1
Date
Msg-id BANLkTinK-=7HoiHUuRZQfo-Z-aNX0Yqcsw@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] Error compiling sepgsql in PG9.1  (Kohei Kaigai <Kohei.Kaigai@EMEA.NEC.COM>)
Responses Re: [GENERAL] Error compiling sepgsql in PG9.1  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
2011/5/24 Kohei Kaigai <Kohei.Kaigai@emea.nec.com>:
> The attached patch enables to abort configure script when we run it with '--with-selinux'
> option, but libselinux is older than minimum requirement to SE-PostgreSQL.
>
> As the documentation said, it needs libselinux-2.0.93 at least, because this or later
> version support selabel_lookup(3) for database object classes; used to initial labeling.
>
> The current configure script checks existence of libselinux, but no version checks.
> (getpeercon_raw(3) has been a supported API for a long term.)
> The selinux_sepgsql_context_path(3) is a good watermark of libselinux-2.0.93 instead.

Looks to me like you need to adjust the wording of the error message.

Maybe "libselinux version 2.0.93 or newer is required", or something like that.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

pgsql-hackers by date:

Previous
From: Noah Misch
Date:
Subject: Re: Alignment padding bytes in arrays vs the planner
Next
From: Tom Lane
Date:
Subject: Re: "errno" not set in case of "libm" functions (HPUX)