You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use semodule -lfull --checksum instead of the datastore
SELinux userspace release 3.4 introduced a new command line option
[-m|--checksum] to `semodule` which adds sha256 checksum of modules to
its output. It can be used to check whether the same module is already
installed or not. Given that selinuxd installed modules use priority 350
we can use semodule checksum and priority 350 as an indicator whether a
module was already installed by selinuxd or not and therefore there's no
need to track the state of modules in a separate datastore.
`semodule --checksum` is supported since Red Hat Enterprise Linux 8.6
The behavior of status_server has been changed:
/policies/ return list of policy modules consting of
{ Name, Ext, Checksum }, e.g
[{"Name":"ssh","Ext":"cil","Checksum":"sha256:004955cac8f0714d0c99feead64cd9b904cd798850d96a1881c3d085f934beaf"}]
/policies/{policy}
- returns { Name, Ext, Checksum } if the policy is installed
- returns NotFound if policy is not installed, message:
"policy is not installed"
- returns NotFound if file in /etc/selinud.d doesn't match the
installed module, e.g. when user ran `semodule -X 350 module.cil`,
message:
"Installed policy ssh does not much policy file /etc/selinux.d/ssh.cil"
Signed-off-by: Petr Lautrbach <[email protected]>
0 commit comments