Skip to content

Commit

Permalink
merge netblue30#1100 from zackw: removed libconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
netblue30 committed Feb 14, 2017
1 parent 68e10f1 commit b286a6b
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 107 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*.gcda
*.gcno
Makefile
autom4te.cache/
config.log
config.status
firejail-login.5
Expand Down
4 changes: 1 addition & 3 deletions Makefile.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
all: apps man filters
MYLIBS = src/lib
APPS = src/firejail src/firemon src/firecfg src/libtrace src/libtracelog src/ftee src/faudit src/libconnect src/fnet src/fseccomp src/fcopy
APPS = src/firejail src/firemon src/firecfg src/libtrace src/libtracelog src/ftee src/faudit src/fnet src/fseccomp src/fcopy
MANPAGES = firejail.1 firemon.1 firecfg.1 firejail-profile.5 firejail-login.5
SECCOMP_FILTERS = seccomp seccomp.i386 seccomp.amd64

Expand Down Expand Up @@ -79,7 +79,6 @@ realinstall:
install -m 0755 -d $(DESTDIR)/$(libdir)/firejail
install -c -m 0644 src/libtrace/libtrace.so $(DESTDIR)/$(libdir)/firejail/.
install -c -m 0644 src/libtracelog/libtracelog.so $(DESTDIR)/$(libdir)/firejail/.
install -c -m 0644 src/libconnect/libconnect.so $(DESTDIR)/$(libdir)/firejail/.
install -c -m 0755 src/ftee/ftee $(DESTDIR)/$(libdir)/firejail/.
install -c -m 0755 src/fshaper/fshaper.sh $(DESTDIR)/$(libdir)/firejail/.
install -c -m 0755 src/fgit/fgit-install.sh $(DESTDIR)/$(libdir)/firejail/.
Expand Down Expand Up @@ -142,7 +141,6 @@ install-strip: all
strip src/firecfg/firecfg
strip src/libtrace/libtrace.so
strip src/libtracelog/libtracelog.so
strip src/libconnect/libconnect.so
strip src/ftee/ftee
strip src/faudit/faudit
strip src/fnet/fnet
Expand Down
2 changes: 2 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ valoq (https://github.com/valoq)
- added wget profile
- disable gnupg and systemd directories under /run/user
- added iridium browser profile
Zack Weinberg (https://github.com/zackw)
- removed libconnect
Igor Bukanov (https://github.com/ibukanov)
- found/fiixed privilege escalation in --hosts-file option
Cat (https://github.com/ecat3)
Expand Down
3 changes: 1 addition & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -3793,7 +3793,7 @@ if test "$prefix" = /usr; then
sysconfdir="/etc"
fi
ac_config_files="$ac_config_files Makefile src/lib/Makefile src/fcopy/Makefile src/fnet/Makefile src/firejail/Makefile src/firemon/Makefile src/libtrace/Makefile src/libtracelog/Makefile src/firecfg/Makefile src/ftee/Makefile src/faudit/Makefile src/libconnect/Makefile src/fseccomp/Makefile"
ac_config_files="$ac_config_files Makefile src/lib/Makefile src/fcopy/Makefile src/fnet/Makefile src/firejail/Makefile src/firemon/Makefile src/libtrace/Makefile src/libtracelog/Makefile src/firecfg/Makefile src/ftee/Makefile src/faudit/Makefile src/fseccomp/Makefile"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
Expand Down Expand Up @@ -4513,7 +4513,6 @@ do
"src/firecfg/Makefile") CONFIG_FILES="$CONFIG_FILES src/firecfg/Makefile" ;;
"src/ftee/Makefile") CONFIG_FILES="$CONFIG_FILES src/ftee/Makefile" ;;
"src/faudit/Makefile") CONFIG_FILES="$CONFIG_FILES src/faudit/Makefile" ;;
"src/libconnect/Makefile") CONFIG_FILES="$CONFIG_FILES src/libconnect/Makefile" ;;
"src/fseccomp/Makefile") CONFIG_FILES="$CONFIG_FILES src/fseccomp/Makefile" ;;
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ fi

AC_OUTPUT(Makefile src/lib/Makefile src/fcopy/Makefile src/fnet/Makefile src/firejail/Makefile \
src/firemon/Makefile src/libtrace/Makefile src/libtracelog/Makefile src/firecfg/Makefile \
src/ftee/Makefile src/faudit/Makefile src/libconnect/Makefile src/fseccomp/Makefile)
src/ftee/Makefile src/faudit/Makefile src/fseccomp/Makefile)

echo
echo "Configuration options:"
Expand Down
2 changes: 1 addition & 1 deletion etc/firejail.config
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@
# Firejail window title in Xephyr, default enabled.
# xephyr-window-title yes

# Xephyr command extra parameters. None by default, and the declaration is commented out.
# Xephyr command extra parameters. None by default; these are examples.
# xephyr-extra-params -keybd ephyr,,,xkbmodel=evdev
# xephyr-extra-params -grayscale
2 changes: 0 additions & 2 deletions platform/rpm/old-mkrpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ install -m 755 /usr/lib/firejail/fshaper.sh firejail-$VERSION/usr/lib/firejail/
install -m 755 /usr/lib/firejail/ftee firejail-$VERSION/usr/lib/firejail/.
install -m 644 /usr/lib/firejail/libtrace.so firejail-$VERSION/usr/lib/firejail/.
install -m 644 /usr/lib/firejail/libtracelog.so firejail-$VERSION/usr/lib/firejail/.
install -m 644 /usr/lib/firejail/libconnect.so firejail-$VERSION/usr/lib/firejail/.

mkdir -p firejail-$VERSION/usr/share/man/man1
install -m 644 /usr/share/man/man1/firejail.1.gz firejail-$VERSION/usr/share/man/man1/.
Expand Down Expand Up @@ -436,7 +435,6 @@ rm -rf %{buildroot}
/usr/lib/firejail/libtrace.so
/usr/lib/firejail/libtracelog.so
/usr/lib/firejail/libconnect.so
/usr/lib/firejail/faudit
/usr/lib/firejail/ftee
/usr/lib/firejail/firecfg.config
Expand Down
3 changes: 0 additions & 3 deletions src/firejail/fs_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ void fs_trace(void) {
printf("Blacklist violations are logged to syslog\n");
}

if (mask_x11_abstract_socket)
fprintf(fp, "%s/firejail/libconnect.so\n", LIBDIR);

SET_PERMS_STREAM(fp, 0, 0, S_IRUSR | S_IWRITE | S_IRGRP | S_IROTH);
fclose(fp);

Expand Down
8 changes: 4 additions & 4 deletions src/firejail/sandbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ int sandbox(void* sandbox_arg) {
#endif

// trace pre-install
if (arg_trace || arg_tracelog || mask_x11_abstract_socket)
if (arg_trace || arg_tracelog)
fs_trace_preload();

// store hosts file
Expand Down Expand Up @@ -622,7 +622,7 @@ int sandbox(void* sandbox_arg) {
//****************************
// trace pre-install, this time inside chroot
//****************************
if (arg_trace || arg_tracelog || mask_x11_abstract_socket)
if (arg_trace || arg_tracelog)
fs_trace_preload();
}
else
Expand Down Expand Up @@ -685,7 +685,7 @@ int sandbox(void* sandbox_arg) {
else {
fs_private_dir_list("/etc", RUN_ETC_DIR, cfg.etc_private_keep);
// create /etc/ld.so.preload file again
if (arg_trace || arg_tracelog || mask_x11_abstract_socket)
if (arg_trace || arg_tracelog)
fs_trace_preload();
}
}
Expand Down Expand Up @@ -781,7 +781,7 @@ int sandbox(void* sandbox_arg) {
//****************************
// install trace
//****************************
if (arg_trace || arg_tracelog || mask_x11_abstract_socket)
if (arg_trace || arg_tracelog)
fs_trace();

//****************************
Expand Down
25 changes: 0 additions & 25 deletions src/libconnect/Makefile.in

This file was deleted.

66 changes: 0 additions & 66 deletions src/libconnect/libconnect.c

This file was deleted.

0 comments on commit b286a6b

Please sign in to comment.