Re: security_context_t marked as deprecated in libselinux 3.1
Joe Conway <mail@joeconway.com>
From: Joe Conway <mail@joeconway.com>
To: Michael Paquier <michael@paquier.xyz>, Tom Lane <tgl@sss.pgh.pa.us>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-08-13T10:54:41Z
Lists: pgsql-hackers
On 8/13/20 1:22 AM, Michael Paquier wrote: > On Wed, Aug 12, 2020 at 10:50:21PM -0400, Tom Lane wrote: >> Ummm ... aren't you going to get some cast-away-const warnings now? >> Or are all of the called functions declared as taking "const char *" >> not just "char *"? > > Let me see.. The function signatures we use have been visibly changed > in 9eb9c932, which comes down to a point between 2.2.2 and 2.3, and > there are two of them we care about, both use now "const char *": > - security_check_context_raw() > - security_compute_create_name_raw() > We claim in the docs that the minimum version of libselinux supported > is 2.1.10 (7a86fe1a from march 2012). > > Then, the only buildfarm animal I know of testing selinux is > rhinoceros, that uses CentOS 7.1, and this visibly already bundles > libselinux 2.5 that was released in 2016 (2b69984), per the RPM list > here: > http://mirror.centos.org/centos/7/ > Joe, what's the version of libselinux used in rhinoceros? 2.5? rpm -q libselinux libselinux-2.5-15.el7.x86_64 Joe -- Crunchy Data - http://crunchydata.com PostgreSQL Support for Secure Enterprises Consulting, Training, & Open Source Development
Commits
-
Fix compilation warnings with libselinux 3.1 in contrib/sepgsql/
- c58c0770ac04 9.2 (unreleased) landed
- a5171b8800f1 9.3 (unreleased) landed
- 0f5812df659b 9.4 (unreleased) landed
- 40064e103b11 9.5 (unreleased) landed
- b2b9881109de 9.6 (unreleased) landed
- 8f5d4ee6c5a1 10 (unreleased) landed
- 91723759e450 11.19 landed
- edb4ef48d855 12.14 landed
- c304c069d148 13.10 landed
- 1f32136a9960 14.0 landed