aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-10-30 08:55:25 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2015-10-30 08:55:25 -0400
commit2b37849dbdc1e7be2fac0756a39de8e54b40ae2c (patch)
tree7ddf41d4c3b53176aa978ddd63384e009125bd1b
parentrelease 0.9.34-rc1 testing (diff)
downloadfirejail-2b37849dbdc1e7be2fac0756a39de8e54b40ae2c.tar.gz
firejail-2b37849dbdc1e7be2fac0756a39de8e54b40ae2c.tar.zst
firejail-2b37849dbdc1e7be2fac0756a39de8e54b40ae2c.zip
Protect shell startup files
-rw-r--r--README2
-rwxr-xr-xconfigure18
-rw-r--r--configure.ac2
-rw-r--r--etc/disable-common.inc33
4 files changed, 45 insertions, 10 deletions
diff --git a/README b/README
index c2702f075..9edc65b11 100644
--- a/README
+++ b/README
@@ -18,6 +18,8 @@ License: GPL v2
18Firejail Authors: 18Firejail Authors:
19 19
20netblue30 (netblue30@yahoo.com) 20netblue30 (netblue30@yahoo.com)
21Daan Bakker (https://github.com/dbakker)
22 - protect shell startup files
21Duncan Overbruck (https://github.com/Duncaen) 23Duncan Overbruck (https://github.com/Duncaen)
22 - musl libc fix 24 - musl libc fix
23andrew160 (https://github.com/andrew160) 25andrew160 (https://github.com/andrew160)
diff --git a/configure b/configure
index 0b81d4839..72f604573 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for firejail 0.9.34-rc1. 3# Generated by GNU Autoconf 2.69 for firejail 0.9.34-rc2.
4# 4#
5# Report bugs to <netblue30@yahoo.com>. 5# Report bugs to <netblue30@yahoo.com>.
6# 6#
@@ -580,8 +580,8 @@ MAKEFLAGS=
580# Identity of this package. 580# Identity of this package.
581PACKAGE_NAME='firejail' 581PACKAGE_NAME='firejail'
582PACKAGE_TARNAME='firejail' 582PACKAGE_TARNAME='firejail'
583PACKAGE_VERSION='0.9.34-rc1' 583PACKAGE_VERSION='0.9.34-rc2'
584PACKAGE_STRING='firejail 0.9.34-rc1' 584PACKAGE_STRING='firejail 0.9.34-rc2'
585PACKAGE_BUGREPORT='netblue30@yahoo.com' 585PACKAGE_BUGREPORT='netblue30@yahoo.com'
586PACKAGE_URL='http://github.com/netblue30/firejail' 586PACKAGE_URL='http://github.com/netblue30/firejail'
587 587
@@ -1238,7 +1238,7 @@ if test "$ac_init_help" = "long"; then
1238 # Omit some internal or obsolete options to make the list less imposing. 1238 # Omit some internal or obsolete options to make the list less imposing.
1239 # This message is too long to be a string in the A/UX 3.1 sh. 1239 # This message is too long to be a string in the A/UX 3.1 sh.
1240 cat <<_ACEOF 1240 cat <<_ACEOF
1241\`configure' configures firejail 0.9.34-rc1 to adapt to many kinds of systems. 1241\`configure' configures firejail 0.9.34-rc2 to adapt to many kinds of systems.
1242 1242
1243Usage: $0 [OPTION]... [VAR=VALUE]... 1243Usage: $0 [OPTION]... [VAR=VALUE]...
1244 1244
@@ -1299,7 +1299,7 @@ fi
1299 1299
1300if test -n "$ac_init_help"; then 1300if test -n "$ac_init_help"; then
1301 case $ac_init_help in 1301 case $ac_init_help in
1302 short | recursive ) echo "Configuration of firejail 0.9.34-rc1:";; 1302 short | recursive ) echo "Configuration of firejail 0.9.34-rc2:";;
1303 esac 1303 esac
1304 cat <<\_ACEOF 1304 cat <<\_ACEOF
1305 1305
@@ -1389,7 +1389,7 @@ fi
1389test -n "$ac_init_help" && exit $ac_status 1389test -n "$ac_init_help" && exit $ac_status
1390if $ac_init_version; then 1390if $ac_init_version; then
1391 cat <<\_ACEOF 1391 cat <<\_ACEOF
1392firejail configure 0.9.34-rc1 1392firejail configure 0.9.34-rc2
1393generated by GNU Autoconf 2.69 1393generated by GNU Autoconf 2.69
1394 1394
1395Copyright (C) 2012 Free Software Foundation, Inc. 1395Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1691,7 +1691,7 @@ cat >config.log <<_ACEOF
1691This file contains any messages produced by compilers while 1691This file contains any messages produced by compilers while
1692running configure, to aid debugging if configure makes a mistake. 1692running configure, to aid debugging if configure makes a mistake.
1693 1693
1694It was created by firejail $as_me 0.9.34-rc1, which was 1694It was created by firejail $as_me 0.9.34-rc2, which was
1695generated by GNU Autoconf 2.69. Invocation command line was 1695generated by GNU Autoconf 2.69. Invocation command line was
1696 1696
1697 $ $0 $@ 1697 $ $0 $@
@@ -4102,7 +4102,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4102# report actual input values of CONFIG_FILES etc. instead of their 4102# report actual input values of CONFIG_FILES etc. instead of their
4103# values after options handling. 4103# values after options handling.
4104ac_log=" 4104ac_log="
4105This file was extended by firejail $as_me 0.9.34-rc1, which was 4105This file was extended by firejail $as_me 0.9.34-rc2, which was
4106generated by GNU Autoconf 2.69. Invocation command line was 4106generated by GNU Autoconf 2.69. Invocation command line was
4107 4107
4108 CONFIG_FILES = $CONFIG_FILES 4108 CONFIG_FILES = $CONFIG_FILES
@@ -4156,7 +4156,7 @@ _ACEOF
4156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4157ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 4157ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4158ac_cs_version="\\ 4158ac_cs_version="\\
4159firejail config.status 0.9.34-rc1 4159firejail config.status 0.9.34-rc2
4160configured by $0, generated by GNU Autoconf 2.69, 4160configured by $0, generated by GNU Autoconf 2.69,
4161 with options \\"\$ac_cs_config\\" 4161 with options \\"\$ac_cs_config\\"
4162 4162
diff --git a/configure.ac b/configure.ac
index 70a1ce3ec..352cf0d12 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
1AC_PREREQ([2.68]) 1AC_PREREQ([2.68])
2AC_INIT(firejail, 0.9.34-rc1, netblue30@yahoo.com, , http://github.com/netblue30/firejail) 2AC_INIT(firejail, 0.9.34-rc2, netblue30@yahoo.com, , http://github.com/netblue30/firejail)
3AC_CONFIG_SRCDIR([src/firejail/main.c]) 3AC_CONFIG_SRCDIR([src/firejail/main.c])
4#AC_CONFIG_HEADERS([config.h]) 4#AC_CONFIG_HEADERS([config.h])
5 5
diff --git a/etc/disable-common.inc b/etc/disable-common.inc
index ece906717..87a979034 100644
--- a/etc/disable-common.inc
+++ b/etc/disable-common.inc
@@ -76,3 +76,36 @@ blacklist /etc/profile.d
76blacklist /etc/rc.local 76blacklist /etc/rc.local
77blacklist /etc/anacrontab 77blacklist /etc/anacrontab
78 78
79# General startup files
80read-only ${HOME}/.xinitrc
81read-only ${HOME}/.xserverrc
82read-only ${HOME}/.profile
83
84# Shell startup files
85read-only ${HOME}/.bash_login
86read-only ${HOME}/.bashrc
87read-only ${HOME}/.bash_profile
88read-only ${HOME}/.bash_logout
89read-only ${HOME}/.zshrc
90read-only ${HOME}/.zlogin
91read-only ${HOME}/.zprofile
92read-only ${HOME}/.zlogout
93read-only ${HOME}/.zsh_files
94read-only ${HOME}/.tcshrc
95read-only ${HOME}/.cshrc
96read-only ${HOME}/.csh_files
97
98# Initialization files that allow arbitrary command execution
99read-only ${HOME}/.mailcap
100read-only ${HOME}/.exrc
101read-only ${HOME}/.vimrc
102read-only ${HOME}/.vim
103read-only ${HOME}/.emacs
104read-only ${HOME}/.tmux.conf
105read-only ${HOME}/.iscreenrc
106read-only ${HOME}/.muttrc
107read-only ${HOME}/.xmonad
108
109# The user ~/bin directory can override commands such as ls
110read-only ${HOME}/bin
111