Lines Matching +full:software +full:- +full:locked
1 // SPDX-License-Identifier: GPL-2.0
7 * This program is free software; you can redistribute it and/or
9 * as published by the Free Software Foundation; either version
25 * Put the kernel into lock-down mode.
30 return -EPERM; in lock_kernel_down()
33 pr_notice("Kernel is locked down from %s; see man kernel_lockdown.7\n", in lock_kernel_down()
41 return -EINVAL; in lockdown_param()
48 return -EINVAL; in lockdown_param()
56 * lockdown_is_locked_down - Find out if the kernel is locked down
63 return -EPERM; in lockdown_is_locked_down()
68 current->comm, lockdown_reasons[what]); in lockdown_is_locked_down()
69 return -EPERM; in lockdown_is_locked_down()
117 temp[offset-1] = '\n'; in lockdown_read()
126 int i, len, err = -EINVAL; in lockdown_write()
133 if (len && state[len-1] == '\n') { in lockdown_write()
134 state[len-1] = '\0'; in lockdown_write()
135 len--; in lockdown_write()