Lines Matching refs:value
870 * @val: the new LSM context value
871 * @val_len: the size of the new LSM context value
921 * The default value of the LSM hook is defined in linux/lsm_hook_defs.h and
926 * The macros below define static constants for the default value of each
943 * This is a hook that does not return a value.
946 * This is a hook that returns a value.
1210 * a positive value, __vm_enough_memory() will be called with cap_sys_admin
1293 * It allows a check against the @bprm->cred->security value which was set in
1794 * Obtain the security attribute name suffix and value to set on a newly
1804 * (e.g. selinux), to allocate ->value (will be freed by the caller) and set it
1805 * to the attribute value, to set ->value_len to the length of the value. If
1855 kfree(new_xattrs[xattr_count - 1].value);
2385 * @value: xattr value
2386 * @size: size of xattr value
2396 * it can register a 'inode_xattr_skipcap' hook and return a value of 1 for
2400 * or return a 0 (the default return value), the capability check is still
2408 const void *value, size_t size, int flags)
2417 rc = cap_inode_setxattr(dentry, name, value, size, flags);
2422 return call_int_hook(inode_setxattr, idmap, dentry, name, value, size,
2523 * @value: xattr value
2524 * @size: xattr value size
2530 const void *value, size_t size, int flags)
2534 call_void_hook(inode_post_setxattr, dentry, name, value, size, flags);
2583 * it can register a 'inode_xattr_skipcap' hook and return a value of 1 for
2587 * or return a 0 (the default return value), the capability check is still
2699 * @alloc is used to specify if the call should return a value via the buffer
2700 * or just the value length.
2719 * @value: security label
2724 * attribute value @value. @size indicates the size of the @value in bytes.
2731 const void *value, size_t size, int flags)
2736 return call_int_hook(inode_setsecurity, inode, name, value, size,
2821 * @value: the integrity value
2822 * @size: size of the integrity value
2825 * LSMs should free the previously saved data if @value is NULL.
2830 enum lsm_integrity_type type, const void *value,
2833 return call_int_hook(inode_setintegrity, inode, type, value, size);
2936 * value. When @arg represents a user space pointer, it should never be used
3068 * user space pointer; in other cases, it may be a simple integer value. When
3297 * @secid: secid value
3426 * @description: text description of data, specific to the id value
3467 * @flags: LSM_SETID_* flag value
3572 * security_task_setnice() - Check if setting a task's nice value is allowed
3574 * @nice: nice value
3576 * Check permission before setting the nice value of @p to @nice.
3588 * @ioprio: ioprio value
3590 * Check permission before setting the ioprio value of @p to @ioprio.
3603 * Check permission before getting the ioprio value of @p.
3630 * security_task_setrlimit() - Check if setting a new rlimit value is allowed
3691 * @sig: signal value
3719 * Return: Return -ENOSYS if no-one wanted to handle this op, any other value
3720 * to cause prctl() to return immediately with that value.
4126 * A NULL value for @uctx can be used to get both the number of attributes
4129 * Returns the number of attributes found on success, negative value
4218 * and new value are included in @uctx.
4266 * @value: attribute value
4268 * Read attribute @name for task @p and store it into @value if allowed.
4270 * Return: Returns the length of @value on success, a negative value otherwise.
4273 char **value)
4280 return scall->hl->hook.getprocattr(p, name, value);
4289 * @value: attribute value
4290 * @size: attribute value size
4292 * Write (set) the current task's attribute @name to @value, size @size if
4295 * Return: Returns bytes written on success, a negative value otherwise.
4297 int security_setprocattr(int lsmid, const char *name, void *value, size_t size)
4304 return scall->hl->hook.setprocattr(name, value, size);
4411 * the security context in its incore inode to the value provided by the server
4433 * context in its incore inode and on the backing filesystem to a value
5008 * @secid: new secmark value
5885 * @value: the integrity value
5886 * @size: size of the integrity value
5889 * LSMs should free the previously saved data if @value is NULL.
5909 enum lsm_integrity_type type, const void *value,
5912 return call_int_hook(bdev_setintegrity, bdev, type, value, size);