can't create file: permission denied by apparmor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dhcp3 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Upgraded from Ubuntu 8.10 to 9.04 and lost all network connections. Found out that it was it was a problem with dhcp3-client. See syslog list:
Apr 8 22:55:48 idefix dhclient: Can't create /usr/local/
Apr 8 22:55:48 idefix kernel: [ 190.757114] type=1503 audit(123922414
Apr 8 22:55:52 idefix dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3
Apr 8 22:55:53 idefix dhclient: DHCPOFFER of 192.168.0.4 from 192.168.0.1
Apr 8 22:55:53 idefix dhclient: DHCPREQUEST of 192.168.0.4 on eth1 to 255.255.255.255 port 67
Apr 8 22:55:55 idefix dhclient: DHCPACK of 192.168.0.4 from 192.168.0.1
Apr 8 22:55:55 idefix dhclient: execve (/usr/local/
Apr 8 22:55:55 idefix dhclient: can't create /usr/local/
Apr 8 22:55:55 idefix dhclient: bound to 192.168.0.4 -- renewal in 34096 seconds.
Apr 8 22:55:55 idefix dhclient: Can't create /usr/local/
Apr 8 22:55:55 idefix kernel: [ 197.668930] type=1503 audit(123922415
Apr 8 22:55:55 idefix kernel: [ 197.669691] type=1503 audit(123922415
Apr 8 22:55:57 idefix NetworkManager: <info> Device 'eth0' DHCP transaction took too long (>45s), stopping it.
Apr 8 22:55:57 idefix NetworkManager: <info> eth0: canceled DHCP transaction, dhcp client pid 3588
Apr 8 22:55:57 idefix NetworkManager: <info> Activation (eth0) Stage 4 of 5 (IP Configure Timeout) scheduled...
Apr 8 22:55:57 idefix NetworkManager: <info> Activation (eth0) Stage 4 of 5 (IP Configure Timeout) started...
Apr 8 22:55:57 idefix NetworkManager: <info> (eth0): device state change: 7 -> 9
Apr 8 22:55:57 idefix NetworkManager: <info> Marking connection 'Auto eth0' invalid.
When I disabled the apparmor profile /sbin/dhclient3 the network connection with NetworkManager works again. I don't know if this is a bug in dhcp3 or apparmor, but its a bug that breaks the system. It's hard to get back on track without a network connection...
ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: dhcp3-client 3.1.1-5ubuntu8
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: dhcp3
Uname: Linux 2.6.28-11-generic i686
Thank you for using Ubuntu and taking the time to report a bug. In examining your syslog output, it is clear that you are not running Ubuntu packages, have installed software into non-standard locations (file in /usr/local), or have symlinked files in /var to /usr/local. To workaround this, update /etc/apparmor. d/sbin. dhclient to give access to the necessary files, and restart apparmor with:
$ sudo /etc/init. d/apparmor force-reload