SELinux policy files empty

Latest response

Hi.

I had to restore/reset the root password of a quite fresh installation of RHEL 7.2. I followed this recipe:

How to reset root user password in CentOS/RHEL7

That didn't go so well, I'm afraid. The initial reboot after the reset hung. Now, when following this recipe:

Resetting the Root Password of RHEL-7

when loading SELinux policy I get

SELinux: Could not map policy file /etc/selinux/targeted/policy/policy.30:  Invalid argument
/usr/sbin/load_policy: Can't load policy and enforcing mode requested:  Invalid argument

The size of file policy.30 is 0. Don't know if that's normal. So is seusers, don't know if that's relevant.

Can anyone help me out? I'm out on deep waters, here.

Responses

Hello, I wrote and tested the procedures in the System Administrator's Guide section Changing and Resetting the Root Password. Please try them and then raise a support request if still having a problem.

Hi, Stephen.

Thanks. I tried out the first option in your guide, but that dit not work. Eventually I decided to do a reinstall of the whole server, as I did not want to risk it being in an "unbalanced" state when production loads are coming in, even if I eventually was able to resolve this issue. I will be sure to use your guide and that one only the next time this happens.

/Lars

OK, thank you for the update.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.