Skip to content

homectl fails to create user when selinux is in enforcing mode #3091

Description

@thmichel

Describe the bug

I wanted to use systemd-homed to manage home directories. When trying to create a user, it fails with the error:
Operation on home test failed: Remote peer disconnected
Setting selinx to permissive fixes the error.
Even after creation, if selinux is set to enforcing again, the user cannot logon.

What did you expect to happen?

I expected the user and home file to be created with selinux in enforcing mode

Output of bootc status

Booted ostree
           Commit: bbd7bdc3a3d82791fef291bf76e6eefa0baf5346d913725f1ec7f2f0bddef7b3

Rollback ostree
           Commit: 9c0eb97ab4134888b3d7df549904b333d552507f1f832c557e156cb5c98f0f32

Output of groups

Extra information or context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/policyOperating system policy and behaviorkind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions