SELinux Blocking Execution of /usr/lib/oci-linux-config/oci-dhclient.sh on OL9 Instances
Note: Please register a free account to access the full content and also to participate in Q&A in the community!
Applies To:
Oracle Cloud Infrastructure – Oracle linux 9
Linux x86-64
Symptoms:
On newly created OL9 instances, SElinux is blocking the execution of /usr/lib/oci-linux-config/oci-dhclient.sh. When running dhclient, the following error appears:
# dhclient
/etc/dhcp/dhclient.d/oci.sh: /usr/lib/oci-linux-config/oci-dhclient.sh: /usr/bin/bash: bad interpreter: Permission denied
Cause:
The issue is related to SElinux policies, which are preventing the dhclient-script from executing the oci-dhclient.sh script due to mismatched security contexts. The dhcp client process, labeled with
Tagged:
0