diff options
Diffstat (limited to 'meta-openbmc-mods/meta-common/recipes-phosphor/dbus/phosphor-dbus-interfaces/0019-Creating-the-Session-interface-for-Host-and-LAN.patch')
-rw-r--r-- | meta-openbmc-mods/meta-common/recipes-phosphor/dbus/phosphor-dbus-interfaces/0019-Creating-the-Session-interface-for-Host-and-LAN.patch | 104 |
1 files changed, 47 insertions, 57 deletions
diff --git a/meta-openbmc-mods/meta-common/recipes-phosphor/dbus/phosphor-dbus-interfaces/0019-Creating-the-Session-interface-for-Host-and-LAN.patch b/meta-openbmc-mods/meta-common/recipes-phosphor/dbus/phosphor-dbus-interfaces/0019-Creating-the-Session-interface-for-Host-and-LAN.patch index e1208cf5b..47fab819b 100644 --- a/meta-openbmc-mods/meta-common/recipes-phosphor/dbus/phosphor-dbus-interfaces/0019-Creating-the-Session-interface-for-Host-and-LAN.patch +++ b/meta-openbmc-mods/meta-common/recipes-phosphor/dbus/phosphor-dbus-interfaces/0019-Creating-the-Session-interface-for-Host-and-LAN.patch @@ -1,4 +1,4 @@ -From f805522921d69eb4ea70248fe7e54557363aacea Mon Sep 17 00:00:00 2001 +From 28fac58dc6ef975e1e9283163d9f1e4c7764c3cc Mon Sep 17 00:00:00 2001 From: Suryakanth Sekar <suryakanth.sekar@linux.intel.com> Date: Sat, 2 Mar 2019 03:31:09 +0530 Subject: [PATCH] Creating the Session interface- for Host and LAN @@ -8,23 +8,56 @@ host and also in LAN Change-Id: Ic7cccfc3333a602ee07fcd60077ec58fd8f06304 Signed-off-by: Suryakanth Sekar <suryakanth.sekar@linux.intel.com> + +%% original patch: 0019-Creating-the-Session-interface-for-Host-and-LAN.patch --- - xyz/openbmc_project/Session/Info.interface.yaml | 56 +++++++++++++++++++++++++ - xyz/openbmc_project/Session/README.md | 38 +++++++++++++++++ - 2 files changed, 94 insertions(+) - create mode 100644 xyz/openbmc_project/Session/Info.interface.yaml - create mode 100644 xyz/openbmc_project/Session/README.md + xyz/openbmc_project/Ipmi/SESSION_README.md | 25 ++++++++++ + .../Ipmi/SessionInfo.interface.yaml | 57 ++++++++++++++++++++++ + 2 files changed, 82 insertions(+) + create mode 100644 xyz/openbmc_project/Ipmi/SESSION_README.md + create mode 100644 xyz/openbmc_project/Ipmi/SessionInfo.interface.yaml -diff --git a/xyz/openbmc_project/Session/Info.interface.yaml b/xyz/openbmc_project/Session/Info.interface.yaml +diff --git a/xyz/openbmc_project/Ipmi/SESSION_README.md b/xyz/openbmc_project/Ipmi/SESSION_README.md +new file mode 100644 +index 0000000..c59b251 +--- /dev/null ++++ b/xyz/openbmc_project/Ipmi/SESSION_README.md +@@ -0,0 +1,25 @@ ++# Session Management ++ ++## Overview ++IPMI RMCP+ sessions are created and maintained by phosphor-ipmi-net daemon, ++whereas we need to provide details about the same using phosphor-ipmi-host. ++Hence IPMI RMCP+ session details has to be exposed through D-Bus interface, ++so that both phosphor-ipmi-host & phosphr-ipmi-net will be in sync. ++ ++ ++#### xyz.openbmc_project.Ipmi.SessionInfo interface ++##### properties ++* SessionHandle - SessionHandle,unique one-byte number to locate the session. ++* Channel - Session created channel. ++* SessionPrivilege - Privilege of the session. ++* RemoteIPAddr – Remote IP address. ++* RemotePort - Remote port address. ++* RemoteMACAddress -Remote MAC Address. ++* UserID - Session created by given user id. ++ ++ ++ ++#### xyz.openbmc_project.Object.Delete ++#### methods ++* Delete - To delete the session object in the system. ++ +diff --git a/xyz/openbmc_project/Ipmi/SessionInfo.interface.yaml b/xyz/openbmc_project/Ipmi/SessionInfo.interface.yaml new file mode 100644 -index 0000000..fbb5a45 +index 0000000..d461628 --- /dev/null -+++ b/xyz/openbmc_project/Session/Info.interface.yaml -@@ -0,0 +1,56 @@ ++++ b/xyz/openbmc_project/Ipmi/SessionInfo.interface.yaml +@@ -0,0 +1,57 @@ +description: > -+ Provides properties for session objects. -+ As communication to this service is done through authenticated -+ & authorized session, there won't be any validation for the both. ++ Provides properties for IPMI RMCP+ session objects. ++ Provides RMCP+ session information as session objects ++ with Session ID (unique identifier) as path suffix. + +properties: + - name: SessionHandle @@ -71,56 +104,13 @@ index 0000000..fbb5a45 + - xyz.openbmc_project.Common.Error.InternalFailure + - name: State + type: byte ++ default: 0 + description: > + Session state. + errors: + - xyz.openbmc_project.Common.Error.InternalFailure + +# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 -diff --git a/xyz/openbmc_project/Session/README.md b/xyz/openbmc_project/Session/README.md -new file mode 100644 -index 0000000..f220885 ---- /dev/null -+++ b/xyz/openbmc_project/Session/README.md -@@ -0,0 +1,38 @@ -+# Session Management -+ -+## Overview -+Session Manager service exposes D-Bus methods for session management operations. -+ -+### Session Manager Interface -+Session manager interface `xyz.openbmc_project.Session.Manager` provides following -+methods, properties and signals. -+ -+#### xyz.openbmc_project.Session.Manager interface -+##### methods -+* CreateSession - To create new session object to the system. -+ -+##### properties -+* MaxSessionSupported - To list all the groups supported in the system. -+* ActiveSessionCount - To hold the no of active sessions. -+ -+Session manager service will create session objects for every session -+in the system under object path `/xyz/openbmc_project/session/<SessionIndex>`. -+Each session object can be handled through 'org.freedesktop.DBus.ObjectManager'. -+session object will expose following properties and methods. -+ -+#### xyz.openbmc_project.Session.Info interface -+##### properties -+* SessionID - Session ID,random unique number to locate the session. -+* Channel - Session created Channel. -+* SessionPrivilege - Privilege of the session. -+* RemoteIPAddr – Remote IP address. -+* RemotePort - Remote Port address. -+* RemoteMACAddress -Remote MAC Address. -+* UserID - Session created by given user id. -+ -+ -+ -+#### xyz.openbmc_project.Object.Delete -+#### methods -+* Delete - To delete the session object in the system. -+ -- 2.7.4 |