mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-24 15:02:44 +00:00
libselinux/audit2why.so: Filter out non-python related symbols
audit2why.so used to export libsepol.a symbols. We only need Python related symbols: - initaudit2why for python 2 - PyInit_audit2why for python3 Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
This commit is contained in:
parent
689a6eb576
commit
de5d5ede60
@ -165,7 +165,7 @@ $(AUDIT2WHYLOBJ): audit2why.c
|
||||
$(CC) $(filter-out -Werror, $(CFLAGS)) $(PYINC) -fPIC -DSHARED -c -o $@ $<
|
||||
|
||||
$(AUDIT2WHYSO): $(AUDIT2WHYLOBJ) $(LIBSEPOLA)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -L. -shared -o $@ $^ -lselinux $(LDLIBS_LIBSEPOLA) $(PYLIBS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -L. -shared -o $@ $^ -lselinux $(LDLIBS_LIBSEPOLA) $(PYLIBS) -Wl,-soname,audit2why.so,--version-script=audit2why.map,-z,defs
|
||||
|
||||
%.o: %.c policy.h
|
||||
$(CC) $(CFLAGS) $(TLSFLAGS) -c -o $@ $<
|
||||
|
6
libselinux/src/audit2why.map
Normal file
6
libselinux/src/audit2why.map
Normal file
@ -0,0 +1,6 @@
|
||||
AUDIT2WHY_2.9 {
|
||||
global:
|
||||
initaudit2why;
|
||||
PyInit_audit2why;
|
||||
local: *;
|
||||
};
|
Loading…
Reference in New Issue
Block a user