/
githubmirror
/
libcap-ng
Обзор
Документация
Войти
/
githubmirror
/
libcap-ng
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
utils/cap-audit/Makefile.am
80 строк
2 KB
Steve Grubb
cap-audit: preserve PATH fallback for target execution
11 авг 2026, 23:18
11 авг 2026, 23:18
db746f5
Код
Авторство
О чём код?
# Makefile.am -- cap-audit utility # # Copyright 2026 Red Hat Inc. # All Rights Reserved. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # Authors: # Steve Grubb <sgrubb@redhat.com> # SUBDIRS = test DIST_SUBDIRS = test AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/src \ -I$(top_builddir)/utils \ -I$(top_builddir)/utils/cap-audit ${LIBBPF_CFLAGS} ${LIBAUDIT_CFLAGS} AM_CFLAGS = -W -Wall -Wshadow ${WFLAGS} -Wundef -D_GNU_SOURCE if BUILD_CAP_AUDIT bin_PROGRAMS = cap-audit cap_audit_SOURCES = cap_audit.c \ cap_audit_analyze.c \ cap_audit_event.c \ cap_audit_json.c \ cap_audit_path.c \ cap_audit_path.h \ cap_audit_service.c \ classify_app.c \ classify_app.h \ cap_audit_util.c \ cap_audit_yaml.c \ cap_audit.h nodist_cap_audit_SOURCES = cap_audit.skel.h cap_audit_LDADD = ${top_builddir}/src/libcap-ng.la ${LIBBPF_LIBS} ${LIBAUDIT_LIBS} endif EXTRA_DIST = cap_audit.bpf.c cap-audit.8 CLEANFILES = cap_audit.bpf.o cap_audit.skel.h vmlinux.h if BUILD_CAP_AUDIT BUILT_SOURCES = cap_audit.bpf.o cap_audit.skel.h vmlinux.h cap_audit.$(OBJEXT) cap_audit_analyze.$(OBJEXT) \ cap_audit_event.$(OBJEXT) cap_audit_json.$(OBJEXT) \ cap_audit_service.$(OBJEXT) cap_audit_util.$(OBJEXT) \ cap_audit_yaml.$(OBJEXT): cap_audit.skel.h endif BPF_ARCH = @BPF_ARCH@ BPFTOOL = @BPFTOOL@ CLANG = @CLANG@ VMLINUX_H_PATH = @VMLINUX_H_PATH@ BPF_CFLAGS = -g -O2 -target bpf -D__TARGET_ARCH_${BPF_ARCH} ${AM_CPPFLAGS} cap_audit.skel.h: cap_audit.bpf.o $(AM_V_GEN)$(BPFTOOL) gen skeleton $< > $@ cap_audit.bpf.o: cap_audit.bpf.c vmlinux.h $(AM_V_CC)$(CLANG) $(BPF_CFLAGS) -c $< -o $@ if PROVIDED_VMLINUX_H # Reproducible builds: use the vmlinux.h supplied at configure time via # --with-vmlinux-h-path instead of reading the running kernel's BTF data. vmlinux.h: $(VMLINUX_H_PATH) Makefile $(AM_V_GEN)cp $< $@ else vmlinux.h: Makefile $(AM_V_GEN)$(BPFTOOL) btf dump file /sys/kernel/btf/vmlinux format c > $@ endif man_MANS = cap-audit.8