selinux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* neverallow rules
@ 2019-02-27  1:29 Joe Nall
  2019-02-27  3:38 ` Chris PeBenito
  0 siblings, 1 reply; 8+ messages in thread
From: Joe Nall @ 2019-02-27  1:29 UTC (permalink / raw)
  To: selinux

Looking at neverallow rules, the semanage.conf file says
"# expand-check check neverallow rules when executing all semanage commands.
 # Large penalty in time if you turn this on. "

If I don't set expand-check=1, are the neverallow rules actually enforced?
If so, when?

An semodule -i of a policy module with neverallow rules that are violated by the existing binary policy succeeds without complaint unless expand-check=1 in RHEL 7.6. This is not what I expected.

The time taken by a trivial module installation goes from ~.3 seconds to ~14 seconds, so the time hit for expand-check is pretty serious.

We are trying to establish some policy invariants to protect against unexpected/unnoticed RHEL upstream policy changes, some of which have bitten us recently. Any suggestions are welcome.

joe

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-02-27 16:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-27  1:29 neverallow rules Joe Nall
2019-02-27  3:38 ` Chris PeBenito
2019-02-27 13:29   ` Stephen Smalley
2019-02-27 13:48     ` Stephen Smalley
2019-02-27 13:54       ` Stephen Smalley
2019-02-27 13:57         ` Stephen Smalley
2019-02-27 14:12           ` Stephen Smalley
2019-02-27 16:13   ` [Non-DoD Source] " jwcart2

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).