PolicyKit/polkitd PolicyKit.conf.in,NONE,1.1 PolicyKit.in,NONE,1.1
David Zeuthen
david at kemper.freedesktop.org
Mon Mar 13 22:20:49 PST 2006
- Previous message: PolicyKit COPYING, 1.1.1.1, 1.2 ChangeLog, 1.6, 1.7 Makefile.am,
1.1.1.1, 1.2 configure.in, 1.1.1.1, 1.2 policy-kit.in, NONE,
1.1 polkit-interface-manager.xml, NONE,
1.1 polkit-interface-session.xml, NONE, 1.1 polkit.pc.in, 1.5, 1.6
- Next message: hal ChangeLog,1.863,1.864
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/hal/PolicyKit/polkitd
In directory kemper:/tmp/cvs-serv15073
Added Files:
PolicyKit.conf.in PolicyKit.in
Log Message:
forgot two files
--- NEW FILE: PolicyKit.conf.in ---
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<!-- Only uid 0 or user @POLKIT_USER@ can own the org.freedesktop.PolicyKit service -->
<policy user="@POLKIT_USER@">
<allow own="org.freedesktop.PolicyKit"/>
</policy>
<policy user="0">
<allow own="org.freedesktop.PolicyKit"/>
</policy>
<!-- Allow anyone to invoke methods on the org.freedesktop.PolicyKit interfaces -->
<policy context="default">
<allow send_interface="org.freedesktop.PolicyKit"/>
<allow receive_interface="org.freedesktop.PolicyKit"
receive_sender="org.freedesktop.PolicyKit"/>
</policy>
</busconfig>
--- NEW FILE: PolicyKit.in ---
#!/bin/sh
#
# PolicyKit: PolicyKit daemon
#
# chkconfig: 345 90 10
# description: The PolicyKit maintains a list of privileges and \
# provides interfaces for changing it. \
# See http://www.freedesktop.org/Software/hal
#
# processname: polkitd
# pidfile: @POLKITD_PID_FILE@
#
# Sanity checks.
[ -x @SBINDIR@/polkitd ] || exit 0
# Source function library.
. @SYSCONFDIR@/rc.d/init.d/functions
# so we can rearrange this easily
processname=polkitd
servicename=PolicyKit
RETVAL=0
start() {
echo -n $"Starting PolicyKit daemon: "
daemon --check $servicename $processname
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch @LOCALSTATEDIR@/lock/subsys/$servicename
}
stop() {
echo -n $"Stopping PolicyKit daemon: "
killproc $processname -TERM
RETVAL=$?
echo
if [ $RETVAL -eq 0 ]; then
rm -f @LOCALSTATEDIR@/lock/subsys/$servicename
rm -f @POLKITD_PID_FILE@
fi
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status $processname
RETVAL=$?
;;
restart)
stop
sleep 3
start
;;
condrestart)
if [ -f @LOCALSTATEDIR@/lock/subsys/$servicename ]; then
stop
sleep 3
start
fi
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart}"
;;
esac
exit $RETVAL
- Previous message: PolicyKit COPYING, 1.1.1.1, 1.2 ChangeLog, 1.6, 1.7 Makefile.am,
1.1.1.1, 1.2 configure.in, 1.1.1.1, 1.2 policy-kit.in, NONE,
1.1 polkit-interface-manager.xml, NONE,
1.1 polkit-interface-session.xml, NONE, 1.1 polkit.pc.in, 1.5, 1.6
- Next message: hal ChangeLog,1.863,1.864
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the hal-commit
mailing list