dhclient issues

Asked by Alejandro Bonilla

Please notice the dhclient-script. I tried as root and sudo, also attempted to change the permission to 777, there was no change.

root@abonilla-a150:/home/abonilla# dhclient eth0
There is already a pid file /var/run/dhclient.pid with pid 5707
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wmaster0: unknown hardware address type 801
execve (/sbin/dhclient-script, ...): Permission denied
wmaster0: unknown hardware address type 801
Listening on LPF/eth0/00:1e:68:c0:9b:59
Sending on LPF/eth0/00:1e:68:c0:9b:59
Sending on Socket/fallback
DHCPREQUEST of 10.0.0.2 on eth0 to 255.255.255.255 port 67
DHCPACK of 10.0.0.2 from 10.0.0.138
execve (/sbin/dhclient-script, ...): Permission denied
bound to 10.0.0.2 -- renewal in 39730 seconds.

[ 176.233766] ath5k phy0: gain calibration timeout (2412MHz)
[ 176.233785] ath5k phy0: ath5k_chan_set: unable to reset channel (2412 Mhz)
[ 176.233793] wlan0: failed to restore operational channel after scan
[ 176.458639] type=1503 audit(1237231722.264:15): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/dbus/system_bus_socket" pid=5699 profile="/usr/lib/NetworkManager/nm-dhcp-client.action"
[ 177.205156] type=1503 audit(1237231723.012:16): operation="inode_permission" requested_mask="w::" denied_mask="w::" fsuid=0 name="/var/run/dbus/system_bus_socket" pid=5700 profile="/usr/lib/NetworkManager/nm-dhcp-client.action"
[ 178.841047] ath5k phy0: gain calibration timeout (2412MHz)
[ 178.841067] ath5k phy0: can't reset hardware (-11)
[ 178.841073] wlan0: Failed to config new SSID to the low-level driver
[ 179.471742] ath5k phy0: gain calibration timeout (2412MHz)
[ 179.471760] ath5k phy0: can't reset hardware (-11)
[ 179.471767] wlan0: Failed to config new BSSID to the low-level driver
[ 200.120268] type=1503 audit(1237231745.928:17): operation="inode_permission" requested_mask="x::" denied_mask="x::" fsuid=0 name="/lib/ld-2.9.so" pid=5705 profile="/sbin/dhclient-script"
[ 202.196170] type=1503 audit(1237231748.000:18): operation="inode_permission" requested_mask="x::" denied_mask="x::" fsuid=0 name="/lib/ld-2.9.so" pid=5706 profile="/sbin/dhclient-script"
[ 226.514684] type=1503 audit(1237231772.320:19): operation="inode_permission" requested_mask="x::" denied_mask="x::" fsuid=0 name="/lib/ld-2.9.so" pid=5778 profile="/sbin/dhclient-script"
[ 229.196303] type=1503 audit(1237231775.004:20): operation="inode_permission" requested_mask="x::" denied_mask="x::" fsuid=0 name="/lib/ld-2.9.so" pid=5779 profile="/sbin/dhclient-script"

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alejandro Bonilla (petarro) said :
#1

Made sure there was nothing left behind(system is fully updated, did a dist-upgrade in jaunty)

root@abonilla-a150:/home/abonilla# ps aux | grep -i network
root 6037 0.0 0.1 3336 876 pts/0 S+ 20:38 0:00 grep -i network
root@abonilla-a150:/home/abonilla# dhclient eth0
There is already a pid file /var/run/dhclient.pid with pid 5780
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wmaster0: unknown hardware address type 801
execve (/sbin/dhclient-script, ...): Permission denied
wmaster0: unknown hardware address type 801
Listening on LPF/eth0/00:1e:68:c0:9b:59
Sending on LPF/eth0/00:1e:68:c0:9b:59
Sending on Socket/fallback
DHCPREQUEST of 10.0.0.2 on eth0 to 255.255.255.255 port 67
DHCPACK of 10.0.0.2 from 10.0.0.138
execve (/sbin/dhclient-script, ...): Permission denied
bound to 10.0.0.2 -- renewal in 37520 seconds.

Revision history for this message
Alejandro Bonilla (petarro) said :
#2

the issue has a workaround to stop apparmor, apparently apparmor is controlling the binaries that are needed for dhcp and something is not letting go.

root@abonilla-a150:/home/abonilla# apparmor_status
apparmor module is loaded.
8 profiles are loaded.
8 profiles are in enforce mode.
   /usr/lib/connman/scripts/dhclient-script
   /usr/share/gdm/guest-session/Xsession
   /usr/sbin/tcpdump
   /usr/lib/cups/backend/cups-pdf
   /sbin/dhclient3
   /usr/sbin/cupsd
   /sbin/dhclient-script
   /usr/lib/NetworkManager/nm-dhcp-client.action
0 profiles are in complain mode.
1 processes have profiles defined.
1 processes are in enforce mode :
   /usr/sbin/cupsd (4891)
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.

Can you help with this problem?

Provide an answer of your own, or ask Alejandro Bonilla for more information if necessary.

To post a message you must log in.