Skip to content

Commit

Permalink
selinux: Update policy file.
Browse files Browse the repository at this point in the history
Failing to install the selinux policy file under RHEL9.1 with
error "Failed to resolve permission audit_write".
Checking online SELinux permissions, I found that those classes
don't support those permissions. So not sure how it's passing on
other distributions like RHEL8.2, maybe being ignored.
With this change I can install the policy file in RHEL8.2 and RHEL9.1.

Fixes: 84d2723 ("selinux: update policy to reflect non-root and dpdk support")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Aaron Conole <aconole@redhat.com>
(cherry picked from commit 2c7e2d5)
  • Loading branch information
roidayan authored and apconole committed Sep 20, 2024
1 parent 7d07497 commit e05a769
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions selinux/openvswitch-custom.te.in
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ require {
class fifo_file { getattr read write append ioctl lock open };
class filesystem getattr;
class lnk_file { read open };
class netlink_audit_socket { create nlmsg_relay audit_write read write };
class netlink_netfilter_socket { create nlmsg_relay audit_write read write };
class netlink_audit_socket { create nlmsg_relay read write };
class netlink_netfilter_socket { create read write };
@begin_dpdk@
class netlink_rdma_socket { setopt bind create };
@end_dpdk@
Expand Down Expand Up @@ -79,8 +79,8 @@ domtrans_pattern(openvswitch_t, openvswitch_load_module_exec_t, openvswitch_load

#============= openvswitch_t ==============
allow openvswitch_t self:capability { dac_override audit_write net_broadcast net_raw };
allow openvswitch_t self:netlink_audit_socket { create nlmsg_relay audit_write read write };
allow openvswitch_t self:netlink_netfilter_socket { create nlmsg_relay audit_write read write };
allow openvswitch_t self:netlink_audit_socket { create nlmsg_relay read write };
allow openvswitch_t self:netlink_netfilter_socket { create read write };
@begin_dpdk@
allow openvswitch_t self:netlink_rdma_socket { setopt bind create };
@end_dpdk@
Expand Down

0 comments on commit e05a769

Please sign in to comment.