hercules-team / augeas

A configuration editing tool and API
http://augeas.net/
GNU Lesser General Public License v2.1
486 stars 199 forks source link

Replace deprecated 'security_context_t' with 'char *' #747

Closed Leo-Schmit closed 2 years ago

Leo-Schmit commented 2 years ago

https://github.com/SELinuxProject/selinux/commit/7a124ca275 https://github.com/SELinuxProject/selinux/pull/212/files

georgehansper commented 2 years ago

This is in line with the comments in /usr/include/selinux/selinux.h (libselinux-devel-3.3-4.fc36)

/* No longer used; here for compatibility with legacy callers. */
typedef char *security_context_t
#ifdef __GNUC__
__attribute__ ((deprecated))
#endif
;

transform.c uses the variable conas an argument to the libselinux functions fgetfilecon() and fsetfilecon() These were updated in 2014 to use char ** instead of security_context_t * https://github.com/SELinuxProject/selinux/commit/9eb9c9327563014ad6a807814e7975424642d5b9