8000 opt out of SELinux module compilation · Issue #223 · evrardjp/ansible-keepalived · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
opt out of SELinux module compilation #223
Open
@tsabirgaliev

Description

@tsabirgaliev

We need a way to opt out of SELinux module additions, because recent versions of selinux-policy package come with relevant fixes and booleans and may eventually supersede all the selinux tweaks in the role. See [0].

The most robust way (that I know of) to detect for presence of relevant selinux permissions requires installing setools-console package and using sesearch:

> sesearch -A -s keepalived_t -t keepalived_t -c icmp_socket
allow keepalived_t keepalived_t:icmp_socket { append bind connect create getattr getopt ioctl lock read setattr setopt shutdown write };

A good though indirect way to detect is to check for a minimal selinux-policy package version:

> dnf info --installed selinux-policy
Installed Packages
Name         : selinux-policy
Version      : 3.14.3
Release      : 104.el8
...

[0] https://github.com/fedora-selinux/selinux-policy/commits/rawhide/policy/modules/contrib/keepalived.te

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementProposed addition to ansible-keepalivedgood-first-issueA issue for new contributors to this role promoting their contributions

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0