mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
Pull security subsystem updates from James Morris: "Nothing groundbreaking for this kernel, just cleanups and fixes, and a couple of Smack enhancements." * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security: (21 commits) Smack: Maintainer Record Smack: don't show empty rules when /smack/load or /smack/load2 is read Smack: user access check bounds Smack: onlycap limits on CAP_MAC_ADMIN Smack: fix smack_new_inode bogosities ima: audit is compiled only when enabled ima: ima_initialized is set only if successful ima: add policy for pseudo fs ima: remove unused cleanup functions ima: free securityfs violations file ima: use full pathnames in measurement list security: Fix nommu build. samples: seccomp: add .gitignore for untracked executables tpm: check the chip reference before using it TPM: fix memleak when register hardware fails TPM: chip disabled state erronously being reported as error MAINTAINERS: TPM maintainers' contacts update Merge branches 'next-queue' and 'next' into next Remove unused code from MPI library Revert "crypto: GnuPG based MPI lib - additional sources (part 4)" ...
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
*
|
||||
* If successful, 0 will be returned.
|
||||
*/
|
||||
long compat_keyctl_instantiate_key_iov(
|
||||
static long compat_keyctl_instantiate_key_iov(
|
||||
key_serial_t id,
|
||||
const struct compat_iovec __user *_payload_iov,
|
||||
unsigned ioc,
|
||||
@@ -33,7 +33,7 @@ long compat_keyctl_instantiate_key_iov(
|
||||
struct iovec iovstack[UIO_FASTIOV], *iov = iovstack;
|
||||
long ret;
|
||||
|
||||
if (_payload_iov == 0 || ioc == 0)
|
||||
if (!_payload_iov || !ioc)
|
||||
goto no_payload;
|
||||
|
||||
ret = compat_rw_copy_check_uvector(WRITE, _payload_iov, ioc,
|
||||
|
||||
@@ -242,7 +242,7 @@ extern long keyctl_instantiate_key_iov(key_serial_t,
|
||||
extern long keyctl_invalidate_key(key_serial_t);
|
||||
|
||||
extern long keyctl_instantiate_key_common(key_serial_t,
|
||||
const struct iovec __user *,
|
||||
const struct iovec *,
|
||||
unsigned, size_t, key_serial_t);
|
||||
|
||||
/*
|
||||
|
||||
@@ -1106,7 +1106,7 @@ long keyctl_instantiate_key_iov(key_serial_t id,
|
||||
struct iovec iovstack[UIO_FASTIOV], *iov = iovstack;
|
||||
long ret;
|
||||
|
||||
if (_payload_iov == 0 || ioc == 0)
|
||||
if (!_payload_iov || !ioc)
|
||||
goto no_payload;
|
||||
|
||||
ret = rw_copy_check_uvector(WRITE, _payload_iov, ioc,
|
||||
|
||||
@@ -751,6 +751,7 @@ static void keyring_unlink_rcu_disposal(struct rcu_head *rcu)
|
||||
int __key_link_begin(struct key *keyring, const struct key_type *type,
|
||||
const char *description, unsigned long *_prealloc)
|
||||
__acquires(&keyring->sem)
|
||||
__acquires(&keyring_serialise_link_sem)
|
||||
{
|
||||
struct keyring_list *klist, *nklist;
|
||||
unsigned long prealloc;
|
||||
@@ -960,6 +961,7 @@ void __key_link(struct key *keyring, struct key *key,
|
||||
void __key_link_end(struct key *keyring, struct key_type *type,
|
||||
unsigned long prealloc)
|
||||
__releases(&keyring->sem)
|
||||
__releases(&keyring_serialise_link_sem)
|
||||
{
|
||||
BUG_ON(type == NULL);
|
||||
BUG_ON(type->name == NULL);
|
||||
|
||||
Reference in New Issue
Block a user