Skip to content
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

aii-ks issue : "access denied" from ssh or console access after post install (centos7) #304

Open
pugnere opened this issue Mar 5, 2019 · 3 comments

Comments

@pugnere
Copy link

pugnere commented Mar 5, 2019

Using templates 18.6.0 : when selinux is enabled, I can't access a freshly installed system (Centos 7.6) after the post-install.

The only way to recover access is to force the system to relabel files (touch /.autorelabel) from a recover procedure like this one : https://unix.stackexchange.com/questions/392953/access-denied-for-all-users-after-reset-of-root-password

Modified the /usr/lib/perl/NCM/Component/ks.pm file of aii-ks to add the "touch /.autorelabel" just before the "shutdown -r now".

@stdweird
Copy link
Member

stdweird commented Mar 5, 2019

@pugnere do you have any idea what file causes the issue? afaik, aii-ks does not do anything special, so this must be something in a component.

@Pansanel
Copy link
Contributor

Pansanel commented Mar 5, 2019

This issue is caused by SELINUX. SELINUX is disabled during installation and enabled after (on CentOS7). To mitigate this issue, we are using SELINUX in permissive mode at IPHC:

variable AII_OSINSTALL_SELINUX = "permissive";

This issue is related to:
#293

@pugnere
Copy link
Author

pugnere commented Mar 7, 2019

@stdweird, I think this is a selinux-policy* and kernel issue after rpm upgrades, may be related to https://bugzilla.redhat.com/show_bug.cgi?id=1581551

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants