File: fnetfilter.sh

package info (click to toggle)
firejail 0.9.78-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,336 kB
  • sloc: ansic: 47,244; exp: 10,586; sh: 1,499; makefile: 684; python: 505; awk: 32
file content (31 lines) | stat: -rwxr-xr-x 732 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# This file is part of Firejail project
# Copyright (C) 2014-2026 Firejail Authors
# License GPL v2

export MALLOC_CHECK_=3
export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
export LC_ALL=C

if [[ -f /etc/debian_version ]]; then
	libdir=$(dirname "$(dpkg -L firejail | grep fcopy)")
	export PATH="$PATH:$libdir"
fi

export PATH="$PATH:/usr/lib/firejail:/usr/lib64/firejail"

chmod 400 outlocked

echo "TESTING: fnetfilter cmdline (test/fnetfilter/cmdline.exp)"
./cmdline.exp

echo "TESTING: fnetfilter default (test/fnetfilter/default.exp)"
./default.exp

echo "TESTING: fnetfilter copy (test/fnetfilter/copy.exp)"
./copy.exp

echo "TESTING: fnetfilter template (test/fnetfilter/template.exp)"
./template.exp

rm -f outfile