]> Savannah Git Hosting - gnulib.git/commit
selinux-h: add stubs for selabel_open etc.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 21 Nov 2020 20:54:22 +0000 (12:54 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 21 Nov 2020 20:55:10 +0000 (12:55 -0800)
commita8269e99d349a8598d4f405af787139285475702
treea0277e96a8c8786ced27ad9ea7015bfccb768312
parent63c809ade9daacf4a02f00cf082e73de224861c0
selinux-h: add stubs for selabel_open etc.

Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
because matchpathcon is deprecated in favor of selabel_open etc.,
so this patch adds stubs for these functions.
* lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
* lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
as it is needed for selabel_open and selinux/selinux.h declares
this type here.
* modules/selinux-h (Files): Add the new files.
(configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
(lib_SOURCES): Add se-label.in.h, se-label.c.
(BUILT_SOURCES): Add $(SELINUX_LABEL_H).
(selinux/label.h): New rule, mimicking selinux/context.h.
(MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
(Include): Add selinux/label.h.
ChangeLog
lib/se-label.c [new file with mode: 0644]
lib/se-label.in.h [new file with mode: 0644]
lib/se-selinux.in.h
m4/selinux-label-h.m4 [new file with mode: 0644]
modules/selinux-h