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>
Date: 2020-08-13T02:50:21Z
Lists: pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes: > Per the following commit in upstream SELinux, security_context_t has > been marked as deprecated, generating complains with > -Wdeprecated-declarations: > https://github.com/SELinuxProject/selinux/commit/7a124ca2758136f49cc38efc26fb1a2d385ecfd9 Huh. Apparently it's been considered legacy for a good while, too. > This can be seen with Debian GID when building contrib/selinux/, as it > we have libselinux 3.1 there. Per the upstream repo, > security_context_t maps to char * in include/selinux/selinux.h, so we > can get rid easily of the warnings with the attached that replaces > the references to security_context_t. 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 *"? 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