Skip to content

Commit 0378e3f

Browse files
authored
Merge pull request #201 from mariusvw/hotfix/whitespace
Hotfix/whitespace
2 parents e989af8 + 9e6028e commit 0378e3f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+268
-275
lines changed

AUTHORS.md

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,34 @@
22

33
## Lead
44

5-
Christer Edwards [[email protected]]
5+
Christer Edwards [[email protected]]
66

77
## Contributors (code)
8-
9-
Barry McCormick
10-
Brian Downs
11-
Dave Cottlehuber
12-
Giacomo Olgeni
13-
JP Mens
14-
Jose Rivera
15-
Lars E.
16-
Paul C.
17-
Sven R.
8+
- Barry McCormick
9+
- Brian Downs
10+
- Dave Cottlehuber
11+
- Giacomo Olgeni
12+
- JP Mens
13+
- Jose Rivera
14+
- Lars E.
15+
- Paul C.
16+
- Sven R.
1817

1918
### Special thanks
2019
Software doesn't happen in a vacuum. Thank you to the following people who may
2120
not be found in the commit history but have influenced Bastille's development
2221
in some way.
2322

24-
Carlos Meza
25-
Casandra Woodcox
26-
Clint Savage
27-
G. Clifford Williams
28-
Jack Thomasson
29-
Jun C Park
30-
Justin Desilets
31-
Larry Raab
32-
Nate Taylor
33-
Peter Czanik
34-
Ryan Simpkins
35-
Tim Gelter
36-
Trevor Sharpe
23+
- Carlos Meza
24+
- Casandra Woodcox
25+
- Clint Savage
26+
- G. Clifford Williams
27+
- Jack Thomasson
28+
- Jun C Park
29+
- Justin Desilets
30+
- Larry Raab
31+
- Nate Taylor
32+
- Peter Czanik
33+
- Ryan Simpkins
34+
- Tim Gelter
35+
- Trevor Sharpe

CODE-OF-CONDUCT.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,3 @@ This Code of Conduct is adapted from the [Contributor Covenant][homepage], versi
7171
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
7272

7373
[homepage]: https://www.contributor-covenant.org
74-

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Usage:
4343

4444
Available Commands:
4545
bootstrap Bootstrap a FreeBSD release for container base.
46-
clone Clone an existing container.
46+
clone Clone an existing container.
4747
cmd Execute arbitrary command on targeted container(s).
4848
clone Clone an existing container.
4949
console Console into a running container.
@@ -163,9 +163,9 @@ container at `10.17.89.45`.
163163

164164
Finally, enable and (re)start the firewall:
165165

166-
## dynamic rdr
166+
## dynamic rdr
167167

168-
The `rdr-anchor "rdr/*"` enables dynamic rdr rules to be setup using the
168+
The `rdr-anchor "rdr/*"` enables dynamic rdr rules to be setup using the
169169
`bastille rdr` command at runtime - eg.
170170

171171
```
@@ -176,7 +176,7 @@ The `rdr-anchor "rdr/*"` enables dynamic rdr rules to be setup using the
176176
```
177177

178178
Note that if you are rediirecting ports where the host is also listening
179-
(eg. ssh) you should make sure that the host service is not listening on
179+
(eg. ssh) you should make sure that the host service is not listening on
180180
the cloned interface - eg. for ssh set sshd_flags in rc.conf
181181

182182
## Enable pf rules
@@ -268,7 +268,7 @@ default this value is set to "base". Additional components are added, space
268268
separated, without file extension.
269269

270270
Bastille will attempt to fetch the required archives if they are not found in
271-
the `cache/$RELEASE` directory.
271+
the `cache/$RELEASE` directory.
272272

273273
Downloaded artifacts are stored in the `cache/RELEASE` directory. "bootstrapped"
274274
releases are stored in `releases/RELEASE`.
@@ -782,7 +782,7 @@ root@folsom:~ #
782782
783783
At this point you are logged in to the container and have full shell access.
784784
The system is yours to use and/or abuse as you like. Any changes made inside
785-
the container are limited to the container.
785+
the container are limited to the container.
786786
787787
788788
bastille cp
@@ -808,8 +808,8 @@ bastille rdr
808808
------------
809809
810810
`bastille rdr` allows you to configure dynamic rdr rules for your containers
811-
without modifying pf.conf (assuming you are using the `bastille0` interface
812-
for a private network and have enabled `rdr-anchor 'rdr/*'` in /etc/pf.conf
811+
without modifying pf.conf (assuming you are using the `bastille0` interface
812+
for a private network and have enabled `rdr-anchor 'rdr/*'` in /etc/pf.conf
813813
as described in the Networking section).
814814
815815
```shell
@@ -907,7 +907,7 @@ Note: On UFS systems containers must be stopped before export.
907907
ishmael ~ # bastille export folsom
908908
Exporting 'folsom' to a compressed .xz archive.
909909
Sending zfs data stream...
910-
100 % 1057.2 KiB / 9231.5 KiB = 0.115 0:01
910+
100 % 1057.2 KiB / 9231.5 KiB = 0.115 0:01
911911
Exported '/usr/local/bastille/jails/backups/folsom_2020-01-26-19:23:04.xz' successfully.
912912
913913
```
@@ -923,7 +923,7 @@ File validation successful!
923923
Importing 'folsom' from compressed .xz archive.
924924
Receiving zfs data stream...
925925
/usr/local/bastille/jails/backups/folsom_2020-01-26-19:22:23.xz (1/1)
926-
100 % 626.4 KiB / 9231.5 KiB = 0.068 0:02
926+
100 % 626.4 KiB / 9231.5 KiB = 0.068 0:02
927927
Container 'folsom' imported successfully.
928928
```
929929
@@ -1020,7 +1020,7 @@ limit the target areas available to anyone that has (or has gained) access.
10201020
Networking Tips
10211021
===============
10221022
1023-
Tip #1:
1023+
Tip #1:
10241024
-------
10251025
Ports and destinations can be defined as lists. eg;
10261026
```
@@ -1032,7 +1032,7 @@ round-robin between containers with ips 45, 46, 47, and 48 (on ports 80 or
10321032
443).
10331033
10341034
1035-
Tip #2:
1035+
Tip #2:
10361036
-------
10371037
Ports can redirect to other ports. eg;
10381038
```

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ help:
1616
# Catch-all target: route all unknown targets to Sphinx using the new
1717
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1818
%: Makefile
19-
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
19+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/chapters/jail-config.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ devfs_ruleset
4545
effective and enforce_statfs is set to a value lower than 2.
4646
Devfs rules and rulesets cannot be viewed or modified from inside
4747
a jail.
48-
48+
4949
NOTE: It is important that only appropriate device nodes in devfs
5050
be exposed to a jail; access to disk devices in the jail may
5151
permit processes in the jail to bypass the jail sandboxing by
@@ -178,32 +178,31 @@ cases.
178178
The kernel runs with five different security levels. Any super-user
179179
process can raise the level, but no process can lower it. The security
180180
levels are:
181-
181+
182182
-1 Permanently insecure mode - always run the system in insecure mode.
183183
This is the default initial value.
184-
184+
185185
0 Insecure mode - immutable and append-only flags may be turned off.
186186
All devices may be read or written subject to their permissions.
187-
187+
188188
1 Secure mode - the system immutable and system append-only flags may
189189
not be turned off; disks for mounted file systems, /dev/mem and
190190
/dev/kmem may not be opened for writing; /dev/io (if your platform
191191
has it) may not be opened at all; kernel modules (see kld(4)) may
192192
not be loaded or unloaded. The kernel debugger may not be entered
193193
using the debug.kdb.enter sysctl. A panic or trap cannot be forced
194194
using the debug.kdb.panic and other sysctl's.
195-
195+
196196
2 Highly secure mode - same as secure mode, plus disks may not be
197197
opened for writing (except by mount(2)) whether mounted or not.
198198
This level precludes tampering with file systems by unmounting
199199
them, but also inhibits running newfs(8) while the system is multi-
200200
user.
201-
201+
202202
In addition, kernel time changes are restricted to less than or
203203
equal to one second. Attempts to change the time by more than this
204204
will log the message "Time adjustment clamped to +1 second".
205-
205+
206206
3 Network secure mode - same as highly secure mode, plus IP packet
207207
filter rules (see ipfw(8), ipfirewall(4) and pfctl(8)) cannot be
208208
changed and dummynet(4) or pf(4) configuration cannot be adjusted.
209-

docs/chapters/networking.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,20 +95,20 @@ Create the firewall rules:
9595
.. code-block:: shell
9696
9797
ext_if="vtnet0"
98-
98+
9999
set block-policy return
100100
scrub in on $ext_if all fragment reassemble
101101
set skip on lo
102102
103103
table <jails> persist
104104
nat on $ext_if from <jails> to any -> ($ext_if)
105-
105+
106106
## static rdr example
107107
## rdr pass inet proto tcp from any to any port {80, 443} -> 10.17.89.45
108108
109109
## dynamic rdr anchor (see below)
110110
rdr-anchor "rdr/*"
111-
111+
112112
block in all
113113
pass out quick modulate state
114114
antispoof for $ext_if inet
@@ -127,7 +127,7 @@ to containers are:
127127
.. code-block:: shell
128128
129129
nat on $ext_if from <jails> to any -> ($ext_if)
130-
130+
131131
## static rdr example
132132
## rdr pass inet proto tcp from any to any port {80, 443} -> 10.17.89.45
133133
@@ -141,7 +141,7 @@ containers at `10.17.89.45`.
141141
## dynamic rdr anchor (see below)
142142
rdr-anchor "rdr/*"
143143
144-
The `rdr-anchor "rdr/*"` enables dynamic rdr rules to be setup using the
144+
The `rdr-anchor "rdr/*"` enables dynamic rdr rules to be setup using the
145145
`bastille rdr` command at runtime - eg.
146146

147147
bastille rdr <jail> tcp 2001 22 # Redirects tcp port 2001 on host to 22 on jail
@@ -150,7 +150,7 @@ The `rdr-anchor "rdr/*"` enables dynamic rdr rules to be setup using the
150150
bastille rdr <jail> clear # Clear dynamic rdr rules
151151

152152
Note that if you are redirecting ports where the host is also listening
153-
(eg. ssh) you should make sure that the host service is not listening on
153+
(eg. ssh) you should make sure that the host service is not listening on
154154
the cloned interface - eg. for ssh set sshd_flags in rc.conf
155155

156156
sshd_flags="-o ListenAddress=<hostname>"

docs/chapters/subcommands/bootstrap.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To `bootstrap` a release, run the bootstrap sub-command with the
2525
release version as the argument.
2626

2727
.. code-block:: shell
28-
28+
2929
ishmael ~ # bastille bootstrap 11.3-RELEASE [update]
3030
ishmael ~ # bastille bootstrap 12.0-RELEASE
3131
ishmael ~ # bastille bootstrap 12.1-RELEASE

docs/chapters/subcommands/console.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ root login.
99
ishmael ~ # bastille console folsom
1010
[folsom]:
1111
FreeBSD 12.1-RELEASE-p1 GENERIC
12-
12+
1313
Welcome to FreeBSD!
14-
14+
1515
Release Notes, Errata: https://www.FreeBSD.org/releases/
1616
Security Advisories: https://www.FreeBSD.org/security/
1717
FreeBSD Handbook: https://www.FreeBSD.org/handbook/
1818
FreeBSD FAQ: https://www.FreeBSD.org/faq/
1919
Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/
2020
FreeBSD Forums: https://forums.FreeBSD.org/
21-
21+
2222
Documents installed with the system are in the /usr/local/share/doc/freebsd/
2323
directory, or can be installed later with: pkg install en-freebsd-doc
2424
For other languages, replace "en" with a language code like de or fr.
25-
25+
2626
Show the version of FreeBSD installed: freebsd-version ; uname -a
2727
Please include that output and any error messages when posting questions.
2828
Introduction to manual pages: man man
2929
FreeBSD directory layout: man hier
30-
30+
3131
Edit /etc/motd to change this login announcement.
3232
root@folsom:~ #
3333

docs/chapters/subcommands/cp.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ This command allows efficiently copying files from host to container(s).
77
88
ishmael ~ # bastille cp ALL /tmp/resolv.conf-cf etc/resolv.conf
99
[bastion]:
10-
10+
1111
[unbound0]:
12-
12+
1313
[unbound1]:
14-
14+
1515
[squid]:
16-
16+
1717
[nginx]:
18-
18+
1919
[folsom]:
2020
2121
Unless you see errors reported in the output the `cp` was successful.

docs/chapters/subcommands/create.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ bootstrapped release and a private (rfc1918) IP address.
1313
.. code-block:: shell
1414
1515
ishmael ~ # bastille create folsom 11.3-RELEASE 10.17.89.10 [interface]
16-
16+
1717
RELEASE: 11.3-RELEASE.
1818
NAME: folsom.
1919
IP: 10.17.89.10.

0 commit comments

Comments
 (0)