fedora-selinux / setroubleshoot

Abandoned, use https://gitlab.com/setroubleshoot
https://gitlab.com/setroubleshoot
9 stars 12 forks source link

dbus: keep track of enforce state #31

Open dperpeet opened 8 years ago

dperpeet commented 8 years ago

It would be nice to receive notification of the enforce state of a system changes.

@bachradsusi pointed out that we can track messages like

type=MAC_STATUS msg=audit(1463128316.149:2098): enforcing=0 old_enforcing=1 auid=4294967295 ses=4294967295

but that feels cumbersome.

bachradsusi commented 8 years ago

Some time ago I made http://plautrba.fedorapeople.org/selinux_server_dispatch.tar

There are 2 files:

This is a preview how we can send signals about SELinux changes. And it's more appropriate to be in SELinux userspace than in setroubleshoot.

dperpeet commented 8 years ago

You're right about the SELinux userspace. Thanks for that work!

Do you know off-hand how we could also detect Disabled state (and notify, of course)?

dperpeet commented 8 years ago

Also, if we introduce something new, it would be nice to follow the convention of using CamelCase, i.e. in this case I think it would be appropriate to call the object MacStatus.