Micah Morton 40852275a9 LSM: add SafeSetID module that gates setid calls
This change ensures that the set*uid family of syscalls in kernel/sys.c
(setreuid, setuid, setresuid, setfsuid) all call ns_capable_common with
the CAP_OPT_INSETID flag, so capability checks in the security_capable
hook can know whether they are being called from within a set*uid
syscall. This change is a no-op by itself, but is needed for the
proposed SafeSetID LSM.

Signed-off-by: Micah Morton <mortonm@chromium.org>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Morris <james.morris@microsoft.com>
2019-01-25 11:22:43 -08:00
..
2018-11-14 10:56:33 -08:00
2018-12-11 09:57:47 -08:00
2019-01-01 15:45:48 -08:00
2018-10-16 11:13:50 +02:00
2018-11-12 10:33:49 +01:00
2019-01-15 06:24:36 +12:00
2018-12-28 14:57:10 -08:00
2018-12-28 16:52:18 -08:00
2018-12-28 20:54:57 -08:00
2018-12-28 16:52:18 -08:00
2019-01-02 16:35:23 -08:00
2018-11-26 18:41:21 -05:00
2018-12-07 22:26:38 -07:00
2018-12-18 17:50:47 +01:00
2018-11-07 13:44:59 -07:00
2018-11-07 13:44:59 -07:00
2018-12-18 17:50:47 +01:00
2018-12-28 14:48:06 -08:00
2018-10-19 13:24:31 -07:00
2018-09-06 15:12:24 -06:00
2018-08-14 13:12:24 -07:00
2018-08-22 10:52:48 -07:00
2018-08-21 18:19:09 -07:00
2018-12-03 17:40:18 +01:00
2018-11-13 21:55:24 +01:00
2018-12-19 10:42:08 +01:00
2018-12-28 16:55:46 -08:00
2018-07-27 09:57:23 +10:00
2018-12-31 11:46:59 -08:00
2018-12-28 12:11:52 -08:00
2018-11-19 10:40:33 +10:00
2018-12-10 09:22:34 +01:00
2018-11-10 08:03:52 -07:00
2018-10-21 10:46:33 -04:00
2018-12-07 12:59:08 -08:00
2018-11-07 13:42:32 -07:00
2018-11-19 19:03:46 -07:00
2018-08-18 11:44:53 -07:00
2018-12-06 13:57:03 +01:00
2018-12-25 14:52:50 -08:00
2018-11-30 13:29:04 +00:00
2019-01-04 13:13:48 -08:00
2019-01-04 13:13:48 -08:00
2018-10-17 13:56:58 -07:00
2018-08-23 16:03:58 -07:00
2018-08-22 10:52:45 -07:00
2018-12-13 09:58:57 +01:00
2018-12-06 15:45:46 +01:00
2018-10-21 10:46:39 -04:00
2018-09-18 17:52:15 -05:00
2019-01-05 17:57:34 -08:00
2018-07-19 11:34:23 +01:00
2019-01-05 17:57:34 -08:00
2018-10-26 16:26:35 -07:00
2018-07-21 10:43:12 -05:00
2018-10-08 22:53:10 +11:00
2018-08-22 10:52:46 -07:00
2018-12-03 17:11:02 -08:00
2018-07-20 01:11:45 +02:00
2018-12-03 10:47:53 +01:00
2018-08-02 17:33:06 -04:00
2018-07-17 09:27:43 +02:00
2019-01-07 16:38:26 +01:00
2018-09-25 20:17:35 -07:00
2018-12-06 17:22:53 +01:00
2019-01-18 14:05:14 -08:00
2018-12-28 12:45:04 -08:00
2018-08-16 12:14:42 -07:00
2018-09-29 22:47:49 -04:00
2018-10-11 09:16:44 -07:00
2018-12-10 10:17:45 +01:00
2018-09-25 20:33:24 +02:00
2019-01-11 18:05:40 -08:00
2018-09-11 14:11:51 +02:00
2018-12-22 12:15:29 +01:00