You are not logged in.

#1 2024-01-16 17:54:26

Iron Squid
Member
From: earth
Registered: 2022-07-18
Posts: 19
Website

[SOLVED] Question regarding Polkit Permissions

Hello, I have been receiving a specific error message when upgrading gamemode for the past few weeks:


warning: directory permissions differ on /usr/share/polkit-1/rules.d/
filesystem: 750  package: 755

I was going to edit this permission myself, but having read the polkit page on the wiki, I've understood that it's not recommended to alter these manually.
Since I don't see much of anyone else complaining of this issue, I assume this has to do with my machine; or that I'm unaware of a proper method to resolve this issue.
How can I properly resolve this permissions issue?

Last edited by Iron Squid (2024-01-18 22:19:13)


"An idiot admires complexity, a genius admires simplicity."

-Terry A. Davis

Offline

#2 2024-01-16 20:11:53

mpan
Member
Registered: 2012-08-01
Posts: 1,221
Website

Re: [SOLVED] Question regarding Polkit Permissions

Hello,

Are you referring to the fragment “Do not amend the default permission files of packages, as these may be overwritten on package upgrades”? If yes, that’s about polkit permissions, not file system permissions.

(Out-of-date: changed to 755 in systemd current release) However, there is nothing you need to change. Permissions in your file system are right. The problem appears to be with the gamemode package, which tries to set permissions different than polkit and other packages. You may ignore this warning and consider reporting it as a bug for the gamemode package.

Last edited by mpan (2024-01-18 22:36:17)


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2024-01-18 00:04:00

tekstryder
Member
Registered: 2013-02-14
Posts: 139

Re: [SOLVED] Question regarding Polkit Permissions

Offline

#4 2024-01-18 20:53:47

Iron Squid
Member
From: earth
Registered: 2022-07-18
Posts: 19
Website

Re: [SOLVED] Question regarding Polkit Permissions

mpan wrote:

Hello,

Are you referring to the fragment “Do not amend the default permission files of packages, as these may be overwritten on package upgrades”? If yes, that’s about polkit permissions, not file system permissions.

However, there is nothing you need to change. Permissions in your file system are right. The problem appears to be with the gamemode package, which tries to set permissions different than polkit and other packages. You may ignore this warning and consider reporting it as a bug for the gamemode package.


That's awesome.

However, I just now upgraded my system with sudo pacman -Syu and have had the issue reappear on multiple packages.

The output was as follows: https://pastebin.com/VjF9rVLA

I haven't yet rebooted my system, but I'm fearful that rebooting now will cause my system to not allow it to boot up properly.
In retrospect this was a silly fear. mpan had even stated that these aren't filesystem permissions, but polkit permissions specifically.

Last edited by Iron Squid (2024-01-18 21:09:18)


"An idiot admires complexity, a genius admires simplicity."

-Terry A. Davis

Offline

#5 2024-01-18 21:02:22

Iron Squid
Member
From: earth
Registered: 2022-07-18
Posts: 19
Website

Re: [SOLVED] Question regarding Polkit Permissions

I have rebooted successfully, doesn't seem to cause any issues for now, but I'm curious as to why this happened.

Ah, the link posted shows that polkit itself has altered permissions from 750 to 755. Though, that doesn't explain the existing gamemode issue. Perhaps it's a bug with their package, as suggested previously.

Last edited by Iron Squid (2024-01-18 21:19:58)


"An idiot admires complexity, a genius admires simplicity."

-Terry A. Davis

Offline

#6 2024-01-18 21:05:02

Iron Squid
Member
From: earth
Registered: 2022-07-18
Posts: 19
Website

Re: [SOLVED] Question regarding Polkit Permissions


I see. Should I manually alter permissions to match this updated version of polkit, or wait for the packages to fix their own permissions?

I'm also curious as to whether or not this will result in some lost/altered functionality during such a permissions mismatch.

Last edited by Iron Squid (2024-01-18 21:14:22)


"An idiot admires complexity, a genius admires simplicity."

-Terry A. Davis

Offline

#7 2024-01-18 21:27:48

Iron Squid
Member
From: earth
Registered: 2022-07-18
Posts: 19
Website

Re: [SOLVED] Question regarding Polkit Permissions

Iron Squid wrote:

I have rebooted successfully, doesn't seem to cause any issues for now, but I'm curious as to why this happened.

Ah, the link posted shows that polkit itself has altered permissions from 750 to 755. Though, that doesn't explain the existing gamemode issue. Perhaps it's a bug with their package, as suggested previously.


My hunch was correct: https://github.com/FeralInteractive/gamemode/issues/452


"An idiot admires complexity, a genius admires simplicity."

-Terry A. Davis

Offline

#8 2024-01-18 22:11:54

Iron Squid
Member
From: earth
Registered: 2022-07-18
Posts: 19
Website

Re: [SOLVED] Question regarding Polkit Permissions

My initial issue is different from my current issue, so I'm going to open a new topic for my current issue.

https://bbs.archlinux.org/viewtopic.php … 4#p2144554

Last edited by Iron Squid (2024-01-18 22:18:46)


"An idiot admires complexity, a genius admires simplicity."

-Terry A. Davis

Offline

#9 2024-01-18 22:53:51

Iron Squid
Member
From: earth
Registered: 2022-07-18
Posts: 19
Website

Re: [SOLVED] Question regarding Polkit Permissions

For anyone reading in the future, the problem seemed to be completely unrelated to anything gamemode had done. See details in https://bbs.archlinux.org/viewtopic.php … 3#p2144563


"An idiot admires complexity, a genius admires simplicity."

-Terry A. Davis

Offline

Board footer

Powered by FluxBB