mirror of
https://github.com/gryf/wicd.git
synced 2025-12-19 12:28:08 +01:00
Add support for configurable Unix group to be used - basically, users
must be a member of this group in order to use Wicd. Note that this does not apply on systems configured to use ConsoleKit/PAM/et al. This defaults to use the "users" group so that it will work "out of the box" for most people, but distributions are encouraged to edit it as needed with the "--wicdgroup=whatever" configure argument.
This commit is contained in:
@@ -32,8 +32,7 @@
|
|||||||
</policy>
|
</policy>
|
||||||
|
|
||||||
<!-- This Unix group will have permission to use Wicd's gui -->
|
<!-- This Unix group will have permission to use Wicd's gui -->
|
||||||
<!-- TODO: fix this in ./in/wicd.conf.in and setup.py -->
|
<policy group="%WICDGROUP%">
|
||||||
<policy group="somegroup">
|
|
||||||
<allow send_interface="org.freedesktop.DBus.Introspectable"/>
|
<allow send_interface="org.freedesktop.DBus.Introspectable"/>
|
||||||
<allow send_destination="org.wicd.daemon"/>
|
<allow send_destination="org.wicd.daemon"/>
|
||||||
<allow send_interface="org.wicd.daemon"/>
|
<allow send_interface="org.wicd.daemon"/>
|
||||||
@@ -52,6 +52,7 @@ pidfile = '%PIDFILE%'
|
|||||||
initfile = '%INITFILE%'
|
initfile = '%INITFILE%'
|
||||||
# stores only the file name, i.e. wicd
|
# stores only the file name, i.e. wicd
|
||||||
initfilename = '%INITFILENAME%'
|
initfilename = '%INITFILENAME%'
|
||||||
|
wicd_group = '%WICDGROUP%'
|
||||||
|
|
||||||
# BOOLEANS
|
# BOOLEANS
|
||||||
no_install_pmutils = %NO_INSTALL_PMUTILS%
|
no_install_pmutils = %NO_INSTALL_PMUTILS%
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -63,6 +63,7 @@ class configure(Command):
|
|||||||
('pidfile=', None, 'set the pid file'),
|
('pidfile=', None, 'set the pid file'),
|
||||||
('initfile=', None, 'set the init file to use'),
|
('initfile=', None, 'set the init file to use'),
|
||||||
('initfilename=', None, "set the name of the init file (don't use)"),
|
('initfilename=', None, "set the name of the init file (don't use)"),
|
||||||
|
('wicdgroup=', None, "set the name of the group used for wicd"),
|
||||||
|
|
||||||
# Configure switches
|
# Configure switches
|
||||||
('no-install-init', None, "do not install the init file"),
|
('no-install-init', None, "do not install the init file"),
|
||||||
@@ -179,6 +180,7 @@ class configure(Command):
|
|||||||
self.python = '/usr/bin/python'
|
self.python = '/usr/bin/python'
|
||||||
self.pidfile = '/var/run/wicd/wicd.pid'
|
self.pidfile = '/var/run/wicd/wicd.pid'
|
||||||
self.initfilename = os.path.basename(self.initfile)
|
self.initfilename = os.path.basename(self.initfile)
|
||||||
|
self.wicdgroup = 'users'
|
||||||
|
|
||||||
|
|
||||||
def finalize_options(self):
|
def finalize_options(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user