IPA: Performing Selinux user mapping is failing with error "libsemanage.validate_handler: seuser mapping [tuser -> (user_u, s2)] is invalid (No such file or directory)"

Solution Verified - Updated -

Issue

  • IPA: Performing Selinux user mapping is failing with error
# semanage login -a -s user_u -r s2 tuser
libsepol.mls_from_string: invalid MLS context s2 (No such file or directory).
libsepol.mls_from_string: could not construct mls context structure (No such file or directory).
libsemanage.validate_handler: seuser mapping [tuser -> (user_u, s2)] is invalid (No such file or directory).
libsemanage.dbase_llist_iterate: could not iterate over records (No such file or directory).
FileNotFoundError: No such file or directory

Environment

  • IPA 4.x
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content