]> asedeno.scripts.mit.edu Git - linux.git/commit
LSM: SafeSetID: fix use of literal -1 in capable hook
authorJann Horn <jannh@google.com>
Wed, 10 Apr 2019 16:56:27 +0000 (09:56 -0700)
committerMicah Morton <mortonm@chromium.org>
Mon, 15 Jul 2019 15:08:03 +0000 (08:08 -0700)
commite10337daefecb47209fd2af5f4fab0d1a370737f
tree053b449a2b7d2c895083cc264e437f2442e43b0f
parent4f72123da579655855301b591535a1415224f123
LSM: SafeSetID: fix use of literal -1 in capable hook

The capable() hook returns an error number. -EPERM is actually the same as
-1, so this doesn't make a difference in behavior.

Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Micah Morton <mortonm@chromium.org>
security/safesetid/lsm.c