LSM: SafeSetID: Fix warnings reported by test bot
authorThomas Cedeno <thomascedeno@google.com>
Tue, 11 Aug 2020 15:39:51 +0000 (15:39 +0000)
committerMicah Morton <mortonm@chromium.org>
Tue, 13 Oct 2020 16:17:36 +0000 (09:17 -0700)
commit03ca0ec138927b16fab0dad7b869f42eb2849c94
tree38a9af9c1e33a859b9a0001d12a8463ee739864e
parent5294bac97e12bdabbb97e9adf44d388612a700b8
LSM: SafeSetID: Fix warnings reported by test bot

Fix multiple cast-to-union warnings related to casting kuid_t and kgid_t
types to kid_t union type. Also fix incompatible type warning that
arises from accidental omission of "__rcu" qualifier on the struct
setid_ruleset pointer in the argument list for safesetid_file_read().

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Thomas Cedeno <thomascedeno@google.com>
Signed-off-by: Micah Morton <mortonm@chromium.org>
security/safesetid/lsm.c
security/safesetid/securityfs.c