You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

SELinux Blocking Execution of /usr/lib/oci-linux-config/oci-dhclient.sh on OL9 Instances

edited May 8, 2025 9:29AM in Linux

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!