-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect SELinux context type on /etc/sysconfig/network-scripts/ifcfg-eth0 #23
Comments
I investigated the problem: even if our build scripts are producing a correct image with properly defined SELinux context it doesn't help. The problem is in Amazon's vmimport which is executed automatically by Amazon when we import an AMI using the Packer's The problem is even worse because when It seems we should change the way we build our AMIs so that |
* Add: Changed the build process in two-stage * Add: Qemu builder support * Add: Added FAQ section for common issues * Fix: AlmaLinux#24 Ansible leftovers * Fix: AlmaLinux#23 Fixed incorrect SELinux type on interface files and other system files * resolved /etc/machine-id duplication issue * Add: AlmaLinux#20 enabled IPv6 by default * Installed and configured AWS Systems Manager Agent * Fix: AlmaLinux#28 removed ec2-user created by AWS VM import. Cloud-init will create a user on a first boot Signed-off-by: Elkhan Mammadli <elkhan.mammadli@protonmail.com>
* Add: Changed the build process in two-stage * Add: Qemu builder support * Add: Added FAQ section for common issues * Fix: AlmaLinux#24 Ansible leftovers * Fix: AlmaLinux#23 Fixed incorrect SELinux type on interface files and other system files * resolved /etc/machine-id duplication issue * Add: AlmaLinux#20 enabled IPv6 by default * Installed and configured AWS Systems Manager Agent * Fix: AlmaLinux#28 removed ec2-user created by AWS VM import. Cloud-init will create a user on a first boot Signed-off-by: Elkhan Mammadli <elkhan.mammadli@protonmail.com>
There is a problem with our AWS AMIs: the
/etc/sysconfig/network-scripts/ifcfg-eth0
file has invalid SELinux context typesystem_u:object_r:unlabeled_t:s0
instead ofsystem_u:object_r:net_conf_t:s0
.This leads to the following error if a user tried to change network settings using the
nmcli
tool:Steps to reproduce
Run the following command on an AlmaLinux OS official AMI:
Manual fix instructions
Run the following command:
$ chcon -t net_conf_t /etc/sysconfig/network-scripts/ifcfg*
References
AlmaLinux bug tracker report: almbz#102.
The text was updated successfully, but these errors were encountered: