]> git.eshelyaron.com Git - emacs.git/commit
Fix uses of deprecated SELinux security_context_t
authorBasil L. Contovounesios <contovob@tcd.ie>
Tue, 28 Jul 2020 10:44:58 +0000 (13:44 +0300)
committerBasil L. Contovounesios <contovob@tcd.ie>
Tue, 28 Jul 2020 11:14:25 +0000 (14:14 +0300)
commit33ee3266286db00feef2839e172f613c4370fc1b
tree9cdb60abeeb65491bd23355433744cd13067d613
parent1b2fed81e1f79fd12bfb76adfa2a79d7ddbcaed0
Fix uses of deprecated SELinux security_context_t

SELinux has used 'char *' in place of its typedef
'security_context_t' since 2014 (v2.3) because the latter was
inconvenient to use when paired with the 'const' qualifier.  The
typedef has been kept around for compatibility with legacy callers,
but it is deprecated in SELinux v3.1.  See the following URL for the
relevant announcement:
https://lore.kernel.org/selinux/20200710162034.GC1768200@localhost.localdomain/

* src/fileio.c (Fcopy_file, Ffile_selinux_context)
(Fset_file_selinux_context) [HAVE_LIBSELINUX]: Replace deprecated
'security_context_t' typedef with the equivalent 'char *'.
src/fileio.c