summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-02-25 16:18:30 -0800
committerDarrick J. Wong <djwong@kernel.org>2022-03-09 10:32:06 -0800
commiteba0549bc7d100691c13384b774346b8aa9cf9a9 (patch)
tree1be2c9ccae0253dc7e6b184a309657abf2e48036 /virt
parent1a39ae415c1be1e46f5b3f97d438c7c4adc22b63 (diff)
downloadlinux-stable-eba0549bc7d100691c13384b774346b8aa9cf9a9.tar.gz
linux-stable-eba0549bc7d100691c13384b774346b8aa9cf9a9.tar.bz2
linux-stable-eba0549bc7d100691c13384b774346b8aa9cf9a9.zip
xfs: don't generate selinux audit messages for capability testing
There are a few places where we test the current process' capability set to decide if we're going to be more or less generous with resource acquisition for a system call. If the process doesn't have the capability, we can continue the call, albeit in a degraded mode. These are /not/ the actual security decisions, so it's not proper to use capable(), which (in certain selinux setups) causes audit messages to get logged. Switch them to has_capability_noaudit. Fixes: 7317a03df703f ("xfs: refactor inode ownership change transaction/inode/quota allocation idiom") Fixes: ea9a46e1c4925 ("xfs: only return detailed fsmap info if the caller has CAP_SYS_ADMIN") Signed-off-by: Darrick J. Wong <djwong@kernel.org> Cc: Dave Chinner <david@fromorbit.com> Reviewed-by: Ondrej Mosnacek <omosnace@redhat.com> Acked-by: Serge Hallyn <serge@hallyn.com> Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions