#986354 hardening-runtime breaks upowerd which affects default installation

#986354#5
Date:
2021-04-04 06:18:32 UTC
From:
To:
Dear Maintainer,

Installing this package leads to dpkg-overrides setting permissions in a
way that upowerd is unable to start under a non-root account.

This breaks default installation where DE is using UPower service: Gnome,
Mate and potentially some others.

Please consider adding a conditional or a warning prior to installation.
Tested on fully-updated Bullseye.

#986354#10
Date:
2021-04-04 08:39:22 UTC
From:
To:
Hi, could you detail which permissions and from where? I'm aware of the issue
with user namespaces but not from the permissions.

There's already a small warning in the package long description, do you have
something specific in mind? Could you propose a wording?

Regards,

#986354#15
Date:
2021-04-04 13:29:05 UTC
From:
To:
Hello Yves-Alexis,

Sunday, April 4, 2021, 6:09:22 PM, you wrote:

Indeed, user namespaces were to blame.

```
WARNING!

This package sets restrictive permissions on a number of directories.

While this is beneficial to the system security, it might lead to situation
where an application is unable to access a certain path.

Please use `reportbug` shall you encounter any.
```

#986354#20
Date:
2021-04-05 09:06:48 UTC
From:
To:
That doesn't really look good to me. First, it seems that the issue isn't with
directory permissions here, and second, there are already a warning about
performance or usability issues.

Maybe this could be worded differently but I don't thnk it's really
sustainable to list each and every issue which might arrise with various
stuff, unfortunately.

It might be worth listing known issues and potential fixes in a specific file
in /u/s/d/hardening-runtime (README.Debian or a new file) though, if you can
propose something.

Regards,

#986354#25
Date:
2021-09-19 18:04:17 UTC
From:
To:
I think the severity of this bug should really be set to critical per
debian's definitions (breaks unrelated software on the system)

In buster this package worked fine with gnome, in bullseye it breaks
other packages. This includes at lease uuidd-runtime upower and parts
of gnome (gnome settings crashes/fails to start/freezes if upower did
not start).

The only error messages talk about lack of disk space which is not accurate.

Although the fix may be simple, it's pretty frustrating and difficult
to understand.

Users like me will assume Debian has messed up gnome by not testing
things properly.

Can i request one or more of
- something in README.Debian listing packages broken by this package
and documenting how to re-enable user namespaces
- splitting setting user.max_user_namespaces into a separate package
which conflicts: uuid-runtime, upower (and anything else affected)
- put the setting of user.max_user_namespaces=0 into /etc so it's
easier to override
- have something in postinst that warns the user if upower and uuidd
are installed

Happy to help write documentation if that would help.