Add a default policy which allows root full control, and those in the

wheel group to authenticate for services using their password.

from FreeBSD
This commit is contained in:
ajacoutot 2009-06-07 08:30:31 +00:00
parent 3213e2c317
commit 25245b05c2
2 changed files with 18 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.2 2009/06/07 08:11:39 ajacoutot Exp $ # $OpenBSD: Makefile,v 1.3 2009/06/07 08:30:31 ajacoutot Exp $
COMMENT= authorization framework COMMENT= authorization framework
DISTNAME= PolicyKit-0.9 DISTNAME= PolicyKit-0.9
PKGNAME= ${DISTNAME:L}p0 PKGNAME= ${DISTNAME:L}p1
CATEGORIES= sysutils security CATEGORIES= sysutils security
SHARED_LIBS+= polkit-dbus 0.0 \ SHARED_LIBS+= polkit-dbus 0.0 \

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-data_PolicyKit_conf_in,v 1.1 2009/06/07 08:30:31 ajacoutot Exp $
Add a default policy which allows root full control, and those in the
wheel group to authenticate for services using their password.
--- data/PolicyKit.conf.in.orig Sun Jun 7 10:24:44 2009
+++ data/PolicyKit.conf.in Sun Jun 7 10:27:23 2009
@@ -6,4 +6,8 @@
<!-- See the manual page PolicyKit.conf(5) for file format -->
<config version="0.1">
+ <match user="root">
+ <return result="yes"/>
+ </match>
+ <define_admin_auth group="wheel"/>
</config>