NetworkManager: add rules for policykit
allows members of the group 'network' to access NetworkManager.
This commit is contained in:
parent
cb65ec9a7b
commit
e9edb25850
|
@ -0,0 +1,5 @@
|
||||||
|
polkit.addRule(function(action, subject) {
|
||||||
|
if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("network")) {
|
||||||
|
return polkit.Result.YES;
|
||||||
|
}
|
||||||
|
});
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'NetworkManager'
|
# Template file for 'NetworkManager'
|
||||||
pkgname=NetworkManager
|
pkgname=NetworkManager
|
||||||
version=1.22.10
|
version=1.22.10
|
||||||
revision=1
|
revision=2
|
||||||
build_style=meson
|
build_style=meson
|
||||||
build_helper="gir qemu"
|
build_helper="gir qemu"
|
||||||
configure_args="-Dpolkit_agent=true -Dsystemd_journal=false
|
configure_args="-Dpolkit_agent=true -Dsystemd_journal=false
|
||||||
|
@ -68,6 +68,8 @@ pre_configure() {
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vinstall ${FILESDIR}/${pkgname}.conf 644 etc/${pkgname}
|
vinstall ${FILESDIR}/${pkgname}.conf 644 etc/${pkgname}
|
||||||
|
vinstall ${FILESDIR}/50-org.freedesktop.NetworkManager.rules 644 \
|
||||||
|
/usr/share/polkit-1/rules.d
|
||||||
vsv ${pkgname}
|
vsv ${pkgname}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue