Path to redshift.conf incorrect in AppArmor profile

Bug #2069545 reported by ChrisiPK
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
redshift (Ubuntu)
New
Undecided
Unassigned

Bug Description

The AppArmor profile contained in this package allows read access to a configuration file at `@{HOME}/.config/redshift.conf` (see https://git.launchpad.net/ubuntu/+source/redshift/tree/data/apparmor/usr.bin.redshift.in?h=applied/ubuntu/devel#n39). However, the correct path would be `@{HOME}/.config/redshift/redshift.conf` (see https://github.com/jonls/redshift?tab=readme-ov-file#how-do-i-setup-a-configuration-file). Note the additional `redshift` subdirectory inside the `.config` directory.

With the current profile, putting a config file in the location as specified by Redshift documentation, the file cannot be opened and is therefore ignored by Redshift. A workaround is putting the file in the location specified in the AppArmor profile, as it seems that Redshift is also looking for a file in that location (though not documented).

Ideally, the AppArmor profile should be changed to allow access to the config file location as specified in the Redshift documentation. It might also make sense to keep the existing access in the profile to the file in the undocumented location for backwards compatibility.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.