Skip to content

Commit

Permalink
Add numerical prefix to polkit rule filenames
Browse files Browse the repository at this point in the history
To prevent our rules from being overridden by system-wide configurations like openSUSE's /etc/polkit-1/rules.d/90-default-privs.rules.
  • Loading branch information
marcosfrm committed Aug 25, 2024
1 parent 710af93 commit e341465
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ if 'package' in COMMAND_LINE_TARGETS:
elif env['PLATFORM'] == 'posix':
if env.GetPackageType() == 'deb':
polkit = [
'build/install/lin/fah-client.pkla',
'var/lib/polkit-1/localauthority/10-vendor.d/fah-client.pkla'
'build/install/lin/10-fah-client.pkla',
'var/lib/polkit-1/localauthority/10-vendor.d/10-fah-client.pkla'
]
else:
polkit = ['build/install/lin/fah-client.rules',
'usr/share/polkit-1/rules.d/fah-client.rules']
polkit = ['build/install/lin/10-fah-client.rules',
'usr/share/polkit-1/rules.d/10-fah-client.rules']

misc.append(polkit)

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit e341465

Please sign in to comment.