~openstack-charmers-next/charms/xenial/swift-storage/trunk

« back to all changes in this revision

Viewing changes to charmhelpers/contrib/hardening/host/templates/modules

  • Committer: Edward Hope-Morley
  • Date: 2016-03-24 11:11:58 UTC
  • Revision ID: edward.hope-morley@canonical.com-20160324111158-4whr78jd2v9yihw2
Add hardening support

Add charmhelpers.contrib.hardening and calls to install,
config-changed, upgrade-charm and update-status hooks.
Also add new config option to allow one or more hardening
modules to be applied at runtime.

Change-Id: If0d1e10b58ed506e0aca659f30120b8d5c96c04f

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
###############################################################################
 
2
# WARNING: This configuration file is maintained by Juju. Local changes may
 
3
#          be overwritten.
 
4
###############################################################################
 
5
# /etc/modules: kernel modules to load at boot time.
 
6
#
 
7
# This file contains the names of kernel modules that should be loaded
 
8
# at boot time, one per line. Lines beginning with "#" are ignored.
 
9
# Parameters can be specified after the module name.
 
10
 
 
11
# Arch
 
12
# ----
 
13
 
14
# Modules for certains builds, contains support modules and some CPU-specific optimizations.
 
15
 
 
16
{% if arch == "x86_64" -%}
 
17
# Optimize for x86_64 cryptographic features
 
18
twofish-x86_64-3way
 
19
twofish-x86_64
 
20
aes-x86_64
 
21
salsa20-x86_64
 
22
blowfish-x86_64
 
23
{% endif -%}
 
24
 
 
25
{% if cpuVendor == "intel" -%}
 
26
# Intel-specific optimizations
 
27
ghash-clmulni-intel
 
28
aesni-intel
 
29
kvm-intel
 
30
{% endif -%}
 
31
 
 
32
{% if cpuVendor == "amd" -%}
 
33
# AMD-specific optimizations
 
34
kvm-amd
 
35
{% endif -%}
 
36
 
 
37
kvm
 
38
 
 
39
 
 
40
# Crypto
 
41
# ------
 
42
 
 
43
# Some core modules which comprise strong cryptography.
 
44
blowfish_common
 
45
blowfish_generic
 
46
ctr
 
47
cts
 
48
lrw
 
49
lzo
 
50
rmd160
 
51
rmd256
 
52
rmd320
 
53
serpent
 
54
sha512_generic
 
55
twofish_common
 
56
twofish_generic
 
57
xts
 
58
zlib
 
59
 
 
60
 
 
61
# Drivers
 
62
# -------
 
63
 
 
64
# Basics
 
65
lp
 
66
rtc
 
67
loop
 
68
 
 
69
# Filesystems
 
70
ext2
 
71
btrfs
 
72
 
 
73
{% if desktop_enable -%}
 
74
# Desktop
 
75
psmouse
 
76
snd
 
77
snd_ac97_codec
 
78
snd_intel8x0
 
79
snd_page_alloc
 
80
snd_pcm
 
81
snd_timer
 
82
soundcore
 
83
usbhid
 
84
{% endif -%}
 
85
 
 
86
# Lib
 
87
# ---
 
88
xz
 
89
 
 
90
 
 
91
# Net
 
92
# ---
 
93
 
 
94
# All packets needed for netfilter rules (ie iptables, ebtables).
 
95
ip_tables
 
96
x_tables
 
97
iptable_filter
 
98
iptable_nat
 
99
 
 
100
# Targets
 
101
ipt_LOG
 
102
ipt_REJECT
 
103
 
 
104
# Modules
 
105
xt_connlimit
 
106
xt_tcpudp
 
107
xt_recent
 
108
xt_limit
 
109
xt_conntrack
 
110
nf_conntrack
 
111
nf_conntrack_ipv4
 
112
nf_defrag_ipv4
 
113
xt_state
 
114
nf_nat
 
115
 
 
116
# Addons
 
117
xt_pknock
 
 
b'\\ No newline at end of file'