-
Notifications
You must be signed in to change notification settings - Fork 0
/
sbsm_config
66 lines (60 loc) · 2.6 KB
/
sbsm_config
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# sbsm_config - Shell script variables override for
# secure-boot-sign-modules.
#
# Copyright (c) 2018-2019 Nicolas Viéville <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# Usage:
#
# Uncomment and modify variables definitions below to override default
# values set for Ubuntu. Unsure that paths and names define existing
# directories and files, and that hash value is correct.
# As this file is sourced in the sbsm_sign_modules shell script, it is
# possible to use variables defined prior its inclusion (for example the
# ones defining the kernel version. See example about signing tool
# below.
#
# Actual default values are:
# SBSM_PRIVKEY=/var/lib/shim-signed/mok/MOK.priv
# SBSM_CERTIFICATE=/var/lib/shim-signed/mok/MOK.der
# SBSM_SIGN_BIN=/usr/bin/kmodsign
# SBSM_SIGN_HASH=sha512
#
# It is not necessary to redefine them, unless they have been modified,
# or the distribution in use is not Ubuntu.
#
# Path and file name to the private key.
#
#SBSM_PRIVKEY=/path_to/key.priv
# Path and file name to the certificate.
#
#SBSM_CERTIFICATE=/path_to/certificate.der
# Path and file name to the signing tool. Some distributions provide one
# signing tool per kernel located in kernels directories. It is possible
# to use defined variables from the sbsm_sign_modules shell script to
# locate the signing tool. For example, in case of Fedora, one can use
# this definition:
# SBSM_SIGN_BIN=/usr/src/kernels/${KERNEL_VERSION}/scripts/sign-file
#
#SBSM_SIGN_BIN=/path_to/signing_tool
# Value of the chosen hash algorithm.
# Possible values are: sha1 sha224 sha256 sha384 sha512
#
#SBSM_SIGN_HASH=sha512