Lines Matching +full:attribute +full:- +full:set
1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2022 Casey Schaufler <casey@schaufler-ca.com>
21 * lsm_name_to_attr - map an LSM attribute name to its ID
22 * @name: name of the attribute
24 * Returns the LSM attribute value associated with @name, or 0 if
45 * sys_lsm_set_self_attr - Set current task's security module attribute
46 * @attr: which attribute to set
52 * returns 0. If the attribute specified cannot be set a negative
62 * sys_lsm_get_self_attr - Return current task's security module attributes
63 * @attr: which attribute to return
64 * @ctx: the user-space destination for the information, or NULL
73 * insufficient to contain the return data -E2BIG is returned and
74 * @size is set to the minimum required size. In all other cases
84 * sys_lsm_list_modules - Return a list of the active security modules
92 * the return data -E2BIG is returned and @size is set to the minimum
104 return -EINVAL; in SYSCALL_DEFINE3()
107 return -EFAULT; in SYSCALL_DEFINE3()
110 return -EFAULT; in SYSCALL_DEFINE3()
113 return -E2BIG; in SYSCALL_DEFINE3()
116 if (put_user(lsm_idlist[i]->id, ids++)) in SYSCALL_DEFINE3()
117 return -EFAULT; in SYSCALL_DEFINE3()