apparmor prevents user from connecting to network

Bug #448509 reported by Iain Buclaw
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zenix
Status tracked in Zenix-9.10
Zenix-9.10
Fix Released
Critical
Zenix Sangha

Bug Description

Currently in the LiveCD, users are unable to connect to any network due to the enforced apparmor profile on nm-dhcp-client.action profile located in: /etc/apparmor/sbin.dhclient3

Whilst there is nothing wrong with the profile inheritably, the application actually tries to access the file of the read-only filesystem, rather than on the rootfs mount.
ie: instead of reading:
/usr/lib/libdbus-glib-1.so.2.1.0
it instead tries and fails to read:
/rofs/usr/lib/libdbus-glib-1.so.2.1.0

It's not a major issue, but this is the reason as to why have been reporting no network connectivity in the LiveCD.

Revision history for this message
Iain Buclaw (iainb) wrote :

Attached is a snipped version of the logs from /var/log/messages which list the problematic files.

The way to currently work around the issue is just disabling apparmor on the LiveCD via:
sudo service stop apparmor
sudo restart network-manager

Regards

Changed in zenbuntu:
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → Zenix Shravaka (zenix-shravaka)
Revision history for this message
bodhi.zazen (bodhi.zazen) wrote :

Thank you for this report, it is helpful.

I will review the apparmor profiles.

In the future, it is very helpful if the apparmor log is included, even better if you know the offending line.

Now this can be tricky as apparmor generates a lot of logs.

IMO it is best to work with one profile at a time and rather then disable it , place it in complain mode.

sudo aa-complain dhclient3

clear the log

sudo -c bash ">| /var/log/messages"

Then reboot and check the logs.

Revision history for this message
bodhi.zazen (bodhi.zazen) wrote :

This is resolved in the new iso

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.