Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: d1nuc0m on 23 May 2022, 22:37:15

Title: [Bug report] Colord permissions issue
Post by: d1nuc0m on 23 May 2022, 22:37:15
Colord package has a permission issue, as the binary can't write to /var/lib/colord/

When trying to run colord with colord-runit scripts, it fails with the error:
Code: [Select]
CdMain: failed to load mapping database: Can't open database: unable to open database file

When trying to run it manually with --verbose, the error becomes
Code: [Select]
CdMain: failed to load mapping database: Error creating directory /var/lib/colord: Permission denied

So colord does not have the appropriate permissions: if the folder is manually created (with the right permissions), the problem disappears.

See also Colord: mapping.db not found (https://forum.artixlinux.org/index.php/topic,4077.0.html)
Title: Re: [Bug report] Colord permissions issue
Post by: d1nuc0m on 23 May 2022, 22:55:52
Mentioning package maintainers

@linuxer @thefallenrat @aldum @Artist @Dudemanguy @ndowens @qontinuum
Title: Re: [Bug report] Colord permissions issue
Post by: Dudemanguy on 24 May 2022, 14:59:08
The runit colord init script needs to create that directory with the right permissions (i.e. install -d -o colord -g colord /var/lib/colord).
Title: Re: [Bug report] Colord permissions issue
Post by: d1nuc0m on 24 May 2022, 17:39:18
The runit colord init script needs to create that directory with the right permissions (i.e. install -d -o colord -g colord /var/lib/colord).

As colord package should also be able to work standalone, shouldn't the folder be created at package install time, without relying on runit scripts?
Title: Re: [Bug report] Colord permissions issue
Post by: cat herders of linux on 24 May 2022, 18:09:02
The runit colord init script needs to create that directory with the right permissions (i.e. install -d -o colord -g colord /var/lib/colord).
i installed colord and colord-dinit and had no such write permissions to that directory.  While you assert it should, it seems it doesn't.
Title: Re: [Bug report] Colord permissions issue
Post by: Artist on 24 May 2022, 21:42:30
colord-runit-20220524-1-any.pkg.tar.zst is now in the Testing repo; once it's on the mirrors pls test.
thx
artist
Title: Re: [Bug report] Colord permissions issue
Post by: d1nuc0m on 25 May 2022, 10:39:40
colord-runit-20220524-1-any.pkg.tar.zst is now in the Testing repo; once it's on the mirrors pls test.
thx
artist

Tested, it works, but shouldn't this change be part of colord package?

If I'd install only colord and not the init script, I'd still have the permission issue. In this way colord has a dependence on colord-{yourInitHere} package, as without it it does not work out-of-the-box