Re: security_context_t marked as deprecated in libselinux 3.1
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>,
Joe Conway <mail@joeconway.com>
Date: 2020-08-13T05:29:35Z
Lists: pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes: > 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? > 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() OK, it's all good then. > Based on this information, what if we increased the minimum support to > 2.3 then? That's a release from 2014, and maintaining such legacy > code does not seem much worth the effort IMO. Well, "you get a compiler warning" isn't a reason to consider the version unsupported. There are probably going to be a few other warnings you get when building on an ancient platform --- as long as it works, I think we're fine. So based on this, no objection, and I think no need to change our statement about what's supported. regards, tom lane
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