Re: security_context_t marked as deprecated in libselinux 3.1

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: security_context_t marked as deprecated in libselinux 3.1
Дата
Msg-id 393637.1597287021@sss.pgh.pa.us
обсуждение исходный текст
Ответ на security_context_t marked as deprecated in libselinux 3.1  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: security_context_t marked as deprecated in libselinux 3.1  (Michael Paquier <michael@paquier.xyz>)
Список 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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Parallel query hangs after a smart shutdown is issued
Следующее
От: Noah Misch
Дата:
Сообщение: Re: remove some ancient port hacks