From: William Roberts <william.c.roberts@xxxxxxxxx> Signed-off-by: William Roberts <william.c.roberts@xxxxxxxxx> --- libselinux/include/selinux/selinux.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libselinux/include/selinux/selinux.h b/libselinux/include/selinux/selinux.h index 3704eabc7545..20ac8498ac9c 100644 --- a/libselinux/include/selinux/selinux.h +++ b/libselinux/include/selinux/selinux.h @@ -457,7 +457,8 @@ extern void set_matchpathcon_flags(unsigned int flags); function also checks for a 'path'.homedirs file and a 'path'.local file and loads additional specifications from them if present. */ -extern int matchpathcon_init(const char *path); +extern int matchpathcon_init(const char *path) + __attribute__ ((deprecated("Use selabel_open with backend SELABEL_CTX_FILE"))); /* Same as matchpathcon_init, but only load entries with regexes that have stems that are prefixes of 'prefix'. */ -- 2.17.1