This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=ee479e2c0764bc4902f9141ac886a8a7c8fffcd9 commit ee479e2c0764bc4902f9141ac886a8a7c8fffcd9 Author: Guillem Jover <guil...@debian.org> AuthorDate: Mon Aug 3 23:39:41 2020 +0200 libcompat, dpkg: Stop using deprecated security_context_t data type This got deprecated upstream in 2014, but only in 2020 the type started to emit deprecation warnings. Changelog: internal --- lib/compat/selinux.c | 3 +-- src/selinux.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/compat/selinux.c b/lib/compat/selinux.c index 9e50e03d8..dc651f5c2 100644 --- a/lib/compat/selinux.c +++ b/lib/compat/selinux.c @@ -40,8 +40,7 @@ int setexecfilecon(const char *filename, const char *fallback) { int rc; - - security_context_t curcon = NULL, newcon = NULL, filecon = NULL; + char *curcon = NULL, *newcon = NULL, *filecon = NULL; security_class_t seclass; context_t tmpcon = NULL; diff --git a/src/selinux.c b/src/selinux.c index 2218bd2ed..de361aa8d 100644 --- a/src/selinux.c +++ b/src/selinux.c @@ -86,7 +86,7 @@ void dpkg_selabel_set_context(const char *matchpath, const char *path, mode_t mode) { #ifdef WITH_LIBSELINUX - security_context_t scontext = NULL; + char *scontext = NULL; int ret; /* If SELinux is not enabled just do nothing. */ -- Dpkg.Org's dpkg