-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AppArmor support #169
Comments
The AppArmor code is, to a large extent, a downstream patchset carried by Ubuntu in their respective packages. The upstream linux kernel does not have the required AppArmor features to implement AppArmor-support in dbus-broker. In particular,
|
Hmm ... the apparmor patch set is part of our kernel here. Otherwise I would not see this messages I guess. I found https://lkml.org/lkml/2018/5/4/476 ... now let's see if your patchset will reach the kernel |
Basic Apparmor support is upstream in the linux kernel. If you now enable apparmor support in your dbus configuration, you will see the message you mentioned. The are two modes to run dbus-AppArmor in: enforcing or informative. Your configuration apparently uses the latter, hence AppArmor is ignored by dbus-broker, as it is informative only. If you selected the enforcing mode, dbus-broker would refuse to start (since it lacks apparmor support). If anyone wants enforcing behavior of AppArmor in dbus-broker, they have to patch it into dbus-broker manually, or upstream the AppArmor patches so we can work on it. The patchset you linked to is not related to this issue. It was already merged upstream and is about |
For documentational purposes: The downstream Ubuntu patch that currently provides the required kernel functionality is:
I saved it on github as well:
In particular, we need upstream kernel sources to include:
Or something along those lines. Also, I will keep this issue open for now, so we can track upstream AppArmor progress. |
This is a case where I wish D-Bus clients sent a |
I am not sure how this is related to Nevertheless, I agree that an FD to The recent Is there a particular improvement you have in mind? |
Once we have a race-free way to get the client’s |
But is the reduced AppArmor kernel module enough to provide the required level of support for the actual enforcement of the runtime policies? I was under the impression that those patches are needed to implement a meaningful policy. Is there actual interest in AppArmor support for dbus-broker? So far, there was little interest in the Ubuntu development community to adopt dbus-broker, so we never pushed for AppArmor support. |
I have no idea. I just know that this can be used whenever we need information from a client’s |
Ok! |
I see this here in the journal
The text was updated successfully, but these errors were encountered: