-
Notifications
You must be signed in to change notification settings - Fork 584
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
netblue30
committed
Mar 31, 2018
1 parent
64699c8
commit ad6bb83
Showing
18 changed files
with
62 additions
and
389 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# common definitions for all makefiles | ||
|
||
CC=@CC@ | ||
prefix=@prefix@ | ||
exec_prefix=@exec_prefix@ | ||
libdir=@libdir@ | ||
sysconfdir=@sysconfdir@ | ||
|
||
VERSION=@PACKAGE_VERSION@ | ||
NAME=@PACKAGE_NAME@ | ||
HAVE_SECCOMP_H=@HAVE_SECCOMP_H@ | ||
HAVE_SECCOMP=@HAVE_SECCOMP@ | ||
HAVE_CHROOT=@HAVE_CHROOT@ | ||
HAVE_BIND=@HAVE_BIND@ | ||
HAVE_FATAL_WARNINGS=@HAVE_FATAL_WARNINGS@ | ||
HAVE_NETWORK=@HAVE_NETWORK@ | ||
HAVE_USERNS=@HAVE_USERNS@ | ||
HAVE_X11=@HAVE_X11@ | ||
HAVE_FILE_TRANSFER=@HAVE_FILE_TRANSFER@ | ||
HAVE_WHITELIST=@HAVE_WHITELIST@ | ||
HAVE_GLOBALCFG=@HAVE_GLOBALCFG@ | ||
HAVE_APPARMOR=@HAVE_APPARMOR@ | ||
HAVE_OVERLAYFS=@HAVE_OVERLAYFS@ | ||
HAVE_PRIVATE_HOME=@HAVE_PRIVATE_HOME@ | ||
HAVE_GCOV=@HAVE_GCOV@ | ||
HAVE_GIT_INSTALL=@HAVE_GIT_INSTALL@ | ||
|
||
H_FILE_LIST = $(sort $(wildcard *.[h])) | ||
C_FILE_LIST = $(sort $(wildcard *.c)) | ||
OBJS = $(C_FILE_LIST:.c=.o) | ||
BINOBJS = $(foreach file, $(OBJS), $file) | ||
|
||
CFLAGS += -ggdb $(HAVE_FATAL_WARNINGS) -O2 -DVERSION='"$(VERSION)"' $(HAVE_GCOV) $(HAVE_GIT_INSTALL) -DPREFIX='"$(prefix)"' -DSYSCONFDIR='"$(sysconfdir)/firejail"' -DLIBDIR='"$(libdir)"' $(HAVE_X11) $(HAVE_PRIVATE_HOME) $(HAVE_APPARMOR) $(HAVE_OVERLAYFS) $(HAVE_SECCOMP) $(HAVE_GLOBALCFG) $(HAVE_SECCOMP_H) $(HAVE_CHROOT) $(HAVE_NETWORK) $(HAVE_USERNS) $(HAVE_BIND) $(HAVE_FILE_TRANSFER) $(HAVE_WHITELIST) -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIE -pie -Wformat -Wformat-security | ||
LDFLAGS += -pie -Wl,-z,relro -Wl,-z,now -lpthread | ||
EXTRA_LDFLAGS +=@EXTRA_LDFLAGS@ | ||
EXTRA_CFLAGS +=@EXTRA_CFLAGS@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,14 @@ | ||
all: faudit | ||
|
||
CC=@CC@ | ||
PREFIX=@prefix@ | ||
VERSION=@PACKAGE_VERSION@ | ||
NAME=@PACKAGE_NAME@ | ||
HAVE_FATAL_WARNINGS=@HAVE_FATAL_WARNINGS@ | ||
|
||
H_FILE_LIST = $(sort $(wildcard *.[h])) | ||
C_FILE_LIST = $(sort $(wildcard *.c)) | ||
OBJS = $(C_FILE_LIST:.c=.o) | ||
BINOBJS = $(foreach file, $(OBJS), $file) | ||
CFLAGS += -ggdb $(HAVE_FATAL_WARNINGS) -O2 -DVERSION='"$(VERSION)"' -DPREFIX='"$(PREFIX)"' -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIE -pie -Wformat -Wformat-security | ||
LDFLAGS += -pie -Wl,-z,relro -Wl,-z,now -lpthread | ||
include ../common.mk | ||
|
||
%.o : %.c $(H_FILE_LIST) | ||
$(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | ||
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ | ||
|
||
faudit: $(OBJS) | ||
$(CC) $(LDFLAGS) -o $@ $(OBJS) | ||
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(EXTRA_LDFLAGS) | ||
|
||
clean:; rm -f *.o faudit | ||
clean:; rm -f *.o faudit *.gcov *.gcda *.gcno | ||
|
||
distclean: clean | ||
rm -fr Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,14 @@ | ||
all: firecfg | ||
|
||
CC=@CC@ | ||
prefix=@prefix@ | ||
exec_prefix=@exec_prefix@ | ||
libdir=@libdir@ | ||
sysconfdir=@sysconfdir@ | ||
|
||
VERSION=@PACKAGE_VERSION@ | ||
NAME=@PACKAGE_NAME@ | ||
HAVE_SECCOMP_H=@HAVE_SECCOMP_H@ | ||
HAVE_SECCOMP=@HAVE_SECCOMP@ | ||
HAVE_CHROOT=@HAVE_CHROOT@ | ||
HAVE_BIND=@HAVE_BIND@ | ||
HAVE_FATAL_WARNINGS=@HAVE_FATAL_WARNINGS@ | ||
HAVE_NETWORK=@HAVE_NETWORK@ | ||
HAVE_USERNS=@HAVE_USERNS@ | ||
HAVE_X11=@HAVE_X11@ | ||
HAVE_FILE_TRANSFER=@HAVE_FILE_TRANSFER@ | ||
HAVE_GCOV=@HAVE_GCOV@ | ||
EXTRA_LDFLAGS +=@EXTRA_LDFLAGS@ | ||
EXTRA_CFLAGS +=@EXTRA_CFLAGS@ | ||
|
||
|
||
H_FILE_LIST = $(sort $(wildcard *.[h])) | ||
C_FILE_LIST = $(sort $(wildcard *.c)) | ||
OBJS = $(C_FILE_LIST:.c=.o) | ||
BINOBJS = $(foreach file, $(OBJS), $file) | ||
CFLAGS += -ggdb $(HAVE_FATAL_WARNINGS) -O2 -DVERSION='"$(VERSION)"' $(HAVE_GCOV) -DPREFIX='"$(prefix)"' -DSYSCONFDIR='"$(sysconfdir)/firejail"' -DLIBDIR='"$(libdir)"' $(HAVE_X11) $(HAVE_SECCOMP) $(HAVE_SECCOMP_H) $(HAVE_CHROOT) $(HAVE_NETWORK) $(HAVE_USERNS) $(HAVE_BIND) $(HAVE_FILE_TRANSFER) -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIE -pie -Wformat -Wformat-security | ||
LDFLAGS += -pie -Wl,-z,relro -Wl,-z,now -lpthread | ||
include ../common.mk | ||
|
||
%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/euid_common.h ../include/libnetlink.h ../include/pid.h | ||
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ | ||
|
||
firecfg: $(OBJS) ../lib/common.o | ||
$(CC) $(LDFLAGS) -o $@ $(OBJS) ../lib/common.o $(LIBS) $(EXTRA_LDFLAGS) | ||
|
||
clean:; rm -f *.o firecfg firecfg.1 firecfg.1.gz *.gcov *.gcda *.gcno | ||
clean:; rm -f *.o firecfg *.gcov *.gcda *.gcno | ||
|
||
distclean: clean | ||
rm -fr Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,14 @@ | ||
all: firejail | ||
|
||
CC=@CC@ | ||
prefix=@prefix@ | ||
exec_prefix=@exec_prefix@ | ||
libdir=@libdir@ | ||
sysconfdir=@sysconfdir@ | ||
|
||
VERSION=@PACKAGE_VERSION@ | ||
NAME=@PACKAGE_NAME@ | ||
HAVE_SECCOMP_H=@HAVE_SECCOMP_H@ | ||
HAVE_SECCOMP=@HAVE_SECCOMP@ | ||
HAVE_CHROOT=@HAVE_CHROOT@ | ||
HAVE_BIND=@HAVE_BIND@ | ||
HAVE_FATAL_WARNINGS=@HAVE_FATAL_WARNINGS@ | ||
HAVE_NETWORK=@HAVE_NETWORK@ | ||
HAVE_USERNS=@HAVE_USERNS@ | ||
HAVE_X11=@HAVE_X11@ | ||
HAVE_FILE_TRANSFER=@HAVE_FILE_TRANSFER@ | ||
HAVE_WHITELIST=@HAVE_WHITELIST@ | ||
HAVE_GLOBALCFG=@HAVE_GLOBALCFG@ | ||
HAVE_APPARMOR=@HAVE_APPARMOR@ | ||
HAVE_OVERLAYFS=@HAVE_OVERLAYFS@ | ||
HAVE_PRIVATE_HOME=@HAVE_PRIVATE_HOME@ | ||
HAVE_GCOV=@HAVE_GCOV@ | ||
HAVE_GIT_INSTALL=@HAVE_GIT_INSTALL@ | ||
EXTRA_LDFLAGS +=@EXTRA_LDFLAGS@ | ||
EXTRA_CFLAGS +=@EXTRA_CFLAGS@ | ||
|
||
H_FILE_LIST = $(sort $(wildcard *.[h])) | ||
C_FILE_LIST = $(sort $(wildcard *.c)) | ||
OBJS = $(C_FILE_LIST:.c=.o) | ||
BINOBJS = $(foreach file, $(OBJS), $file) | ||
CFLAGS += -ggdb $(HAVE_FATAL_WARNINGS) -O2 -DVERSION='"$(VERSION)"' $(HAVE_GCOV) $(HAVE_GIT_INSTALL) -DPREFIX='"$(prefix)"' -DSYSCONFDIR='"$(sysconfdir)/firejail"' -DLIBDIR='"$(libdir)"' $(HAVE_X11) $(HAVE_PRIVATE_HOME) $(HAVE_APPARMOR) $(HAVE_OVERLAYFS) $(HAVE_SECCOMP) $(HAVE_GLOBALCFG) $(HAVE_SECCOMP_H) $(HAVE_CHROOT) $(HAVE_NETWORK) $(HAVE_USERNS) $(HAVE_BIND) $(HAVE_FILE_TRANSFER) $(HAVE_WHITELIST) -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIE -pie -Wformat -Wformat-security | ||
LDFLAGS += -pie -Wl,-z,relro -Wl,-z,now -lpthread | ||
include ../common.mk | ||
|
||
%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/euid_common.h ../include/pid.h ../include/seccomp.h ../include/syscall.h | ||
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ | ||
|
||
firejail: $(OBJS) ../lib/libnetlink.o ../lib/common.o ../lib/ldd_utils.o | ||
$(CC) $(LDFLAGS) -o $@ $(OBJS) ../lib/common.o ../lib/ldd_utils.o $(LIBS) $(EXTRA_LDFLAGS) | ||
|
||
clean:; rm -f *.o firejail firejail.1 firejail.1.gz *.gcov *.gcda *.gcno | ||
clean:; rm -f *.o firejail *.gcov *.gcda *.gcno | ||
|
||
distclean: clean | ||
rm -fr Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.