]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip vrf: make ipvrf_exec SELinux-aware
authorAndrea Claudi <aclaudi@redhat.com>
Wed, 23 Aug 2023 17:30:02 +0000 (19:30 +0200)
committerDavid Ahern <dsahern@kernel.org>
Fri, 25 Aug 2023 00:34:40 +0000 (17:34 -0700)
commit0d0eeaa6cb9218e57ce910fc3a8991b80da6393e
tree28f4248a666c6c43f096646892cc9db2144c45ec
parente246ebc3b7f1f438310ad6fd1d5976ba6ccf7a69
ip vrf: make ipvrf_exec SELinux-aware

When using ip vrf and SELinux is enabled, make sure to set the exec file
context before calling cmd_exec.

This ensures that the command is executed with the right context,
falling back to the ifconfig_t context when needed.

Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
include/selinux.h
ip/ipvrf.c
lib/selinux.c