digsig.c (50501936288d6a29d7ef78f25d00e33240fad45f) digsig.c (90f6f691a706754e33d2d0c6fa2e1dacedb477f6)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2011 Intel Corporation
4 *
5 * Author:
6 * Dmitry Kasatkin <dmitry.kasatkin@intel.com>
7 */
8

--- 20 unchanged lines hidden (view full) ---

29 ".evm",
30 ".ima",
31#endif
32 ".platform",
33 ".machine",
34};
35
36#ifdef CONFIG_IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2011 Intel Corporation
4 *
5 * Author:
6 * Dmitry Kasatkin <dmitry.kasatkin@intel.com>
7 */
8

--- 20 unchanged lines hidden (view full) ---

29 ".evm",
30 ".ima",
31#endif
32 ".platform",
33 ".machine",
34};
35
36#ifdef CONFIG_IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY
37#define restrict_link_to_ima restrict_link_by_builtin_and_secondary_trusted
37#define restrict_link_to_ima restrict_link_by_digsig_builtin_and_secondary
38#else
38#else
39#define restrict_link_to_ima restrict_link_by_builtin_trusted
39#define restrict_link_to_ima restrict_link_by_digsig_builtin
40#endif
41
42static struct key *integrity_keyring_from_id(const unsigned int id)
43{
44 if (id >= INTEGRITY_KEYRING_MAX)
45 return ERR_PTR(-EINVAL);
46
47 if (!keyring[id]) {

--- 178 unchanged lines hidden ---
40#endif
41
42static struct key *integrity_keyring_from_id(const unsigned int id)
43{
44 if (id >= INTEGRITY_KEYRING_MAX)
45 return ERR_PTR(-EINVAL);
46
47 if (!keyring[id]) {

--- 178 unchanged lines hidden ---