Base code for session manager that supports user authentification via dbus
This commit is contained in:
24
conf/daemon.conf
Normal file
24
conf/daemon.conf
Normal file
@@ -0,0 +1,24 @@
|
||||
# this file is the configuration file for the SessionMaganer daemon
|
||||
# daemon
|
||||
# By default, the daemon will look for this file in the following locations
|
||||
# /etc/diya/daemon.conf
|
||||
# or it can be specified using the -c option
|
||||
# example: diya-session-manager -c /path/to/daemon.conf
|
||||
|
||||
# Login session command
|
||||
# The command to run to start a login session
|
||||
# this command will handle the user input and send user
|
||||
# credentials to the daemon via Dbus message
|
||||
login_session_command = /usr/bin/diya-login-shell
|
||||
|
||||
# login session user
|
||||
# The user that owns the login session, root by default
|
||||
# if this setting is not set
|
||||
login_session_user = xdg
|
||||
|
||||
# User session command
|
||||
# The command to run to start a user session after the
|
||||
# login session is successful
|
||||
# the logged in user will own this session
|
||||
|
||||
user_session_command = /usr/bin/diya-shell
|
29
conf/diya-dbus.conf
Normal file
29
conf/diya-dbus.conf
Normal file
@@ -0,0 +1,29 @@
|
||||
<!DOCTYPE busconfig PUBLIC
|
||||
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
||||
<busconfig>
|
||||
|
||||
<!-- Only root can own the service -->
|
||||
<policy user="root">
|
||||
<allow own="dev.iohub.diya.SessionManager"/>
|
||||
</policy>
|
||||
|
||||
<!--deny all access from another user-->
|
||||
<policy context="default">
|
||||
<deny send_destination="dev.iohub.diya.SessionManager"/>
|
||||
<deny receive_sender="dev.iohub.diya.SessionManager"/>
|
||||
</policy>
|
||||
|
||||
<!--
|
||||
<policy group="xdg">
|
||||
<allow send_destination="dev.iohub.diya.SessionManager"/>
|
||||
<allow receive_sender="dev.iohub.diya.SessionManager"/>
|
||||
</policy>
|
||||
-->
|
||||
|
||||
<policy user="root">
|
||||
<allow send_destination="dev.iohub.diya.SessionManager"/>
|
||||
<allow receive_sender="dev.iohub.diya.SessionManager"/>
|
||||
</policy>
|
||||
|
||||
</busconfig>
|
Reference in New Issue
Block a user