mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-11-01 13:54:12 +00:00
The process SELinux contexts can be added to the output using the -Z option. Using the -z option will show the process and socket contexts (see the man page for details). For netlink sockets: if valid process show process context, if pid = 0 show kernel initial context, if unknown show "unavailable". Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>
41 lines
898 B
Makefile
41 lines
898 B
Makefile
SSOBJ=ss.o ssfilter.o
|
|
LNSTATOBJ=lnstat.o lnstat_util.o
|
|
|
|
TARGETS=ss nstat ifstat rtacct arpd lnstat
|
|
|
|
include ../Config
|
|
|
|
ifeq ($(HAVE_SELINUX),y)
|
|
LDLIBS += $(shell pkg-config --libs libselinux)
|
|
CFLAGS += $(shell pkg-config --cflags libselinux) -DHAVE_SELINUX
|
|
endif
|
|
|
|
all: $(TARGETS)
|
|
|
|
ss: $(SSOBJ)
|
|
|
|
nstat: nstat.c
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o nstat nstat.c -lm
|
|
|
|
ifstat: ifstat.c
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o ifstat ifstat.c $(LIBNETLINK) -lm
|
|
|
|
rtacct: rtacct.c
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o rtacct rtacct.c $(LIBNETLINK) -lm
|
|
|
|
arpd: arpd.c
|
|
$(CC) $(CFLAGS) -I$(DBM_INCLUDE) $(LDFLAGS) -o arpd arpd.c $(LIBNETLINK) -ldb -lpthread
|
|
|
|
ssfilter.c: ssfilter.y
|
|
bison ssfilter.y -o ssfilter.c
|
|
|
|
lnstat: $(LNSTATOBJ)
|
|
|
|
install: all
|
|
install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
|
|
ln -sf lnstat $(DESTDIR)$(SBINDIR)/rtstat
|
|
ln -sf lnstat $(DESTDIR)$(SBINDIR)/ctstat
|
|
|
|
clean:
|
|
rm -f *.o $(TARGETS) ssfilter.c
|