Christian Göttsche ead64b20f1 gfs2: reorder capability check last
capable() calls refer to enabled LSMs whether to permit or deny the
request.  This is relevant in connection with SELinux, where a
capability check results in a policy decision and by default a denial
message on insufficient permission is issued.
It can lead to three undesired cases:
  1. A denial message is generated, even in case the operation was an
     unprivileged one and thus the syscall succeeded, creating noise.
  2. To avoid the noise from 1. the policy writer adds a rule to ignore
     those denial messages, hiding future syscalls, where the task
     performs an actual privileged operation, leading to hidden limited
     functionality of that task.
  3. To avoid the noise from 1. the policy writer adds a rule to permit
     the task the requested capability, while it does not need it,
     violating the principle of least privilege.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
2024-12-09 10:44:35 +01:00
..
2024-09-02 14:46:33 +02:00
2024-05-14 17:35:22 -07:00
2024-04-09 18:35:57 +02:00
2024-10-01 17:01:08 +02:00
2024-11-26 12:34:50 -08:00
2024-11-05 12:39:29 +01:00
2024-11-05 12:39:29 +01:00
2023-08-02 09:13:09 -06:00
2024-11-05 12:39:29 +01:00
2024-09-02 14:46:29 +02:00
2024-09-02 14:46:37 +02:00
2024-12-09 10:44:35 +01:00
2023-11-07 11:54:17 -08:00
2024-05-29 15:34:55 +02:00
2024-06-08 02:35:09 +02:00
2024-04-29 12:35:15 +02:00