All of lore.kernel.org
 help / color / mirror / Atom feed
* Need help with service-config-manager and socket activated services
@ 2021-04-07 23:04 Joseph Reynolds
  2021-04-19 14:46 ` Joseph Reynolds
  0 siblings, 1 reply; 3+ messages in thread
From: Joseph Reynolds @ 2021-04-07 23:04 UTC (permalink / raw)
  To: openbmc

We are adding a new function to allow the BMC admin to disable the 
dropbear SSH server [issue 1763][].  This consists of a D-Bus interface 
controlled by [service-config-manager][] and an enhanced Redfish REST API.

We need help to understand how to enhance service-config-manager to work 
with socket activated services such as dropbear.  For example, to 
disable dropbear, is the correct action to perform something like this?:
   systemctl stop dropbear.socket
   systemctl disable dropbear.socket

- Joseph

[issue 1763]: https://github.com/ibm-openbmc/dev/issues/1763
[service-config-manager]: https://github.com/openbmc/service-config-manager


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Need help with service-config-manager and socket activated services
  2021-04-07 23:04 Need help with service-config-manager and socket activated services Joseph Reynolds
@ 2021-04-19 14:46 ` Joseph Reynolds
  2021-04-27 16:54   ` Thomaiyar, Richard Marian
  0 siblings, 1 reply; 3+ messages in thread
From: Joseph Reynolds @ 2021-04-19 14:46 UTC (permalink / raw)
  To: openbmc, Thomaiyar, Richard Marian, Puli, Apparao

On 4/7/21 6:04 PM, Joseph Reynolds wrote:
> We are adding a new function to allow the BMC admin to disable the 
> dropbear SSH server [issue 1763][].  This consists of a D-Bus 
> interface controlled by [service-config-manager][] and an enhanced 
> Redfish REST API.

Richard and AppaRao,

We are enhancing service-config-manager so it can control the dropbear 
SSH server.  See [gerrit review 42072][].  The problem with this 
patchset are:
- It always reports dropbear as disabled.
- When we enable dropbear via this service, it reports dropbear as 
enabled for a few seconds, then it reports dropbear as disabled.

I believe the underlying issue is that dropbear is socket activated 
service.  Does service-config-manager understand how to control socket 
activated services like dropbear server?
- If so, can you help us debug what is going wrong?
- If not, can you point us to what code needs to be enhanced to make 
this work?

Thanks,
- Joseph

>
> We need help to understand how to enhance service-config-manager to 
> work with socket activated services such as dropbear.  For example, to 
> disable dropbear, is the correct action to perform something like this?:
>   systemctl stop dropbear.socket
>   systemctl disable dropbear.socket
>
> - Joseph
>
> [issue 1763]: https://github.com/ibm-openbmc/dev/issues/1763
> [service-config-manager]: 
> https://github.com/openbmc/service-config-manager
[gerrit review 42072]: 
https://gerrit.openbmc-project.xyz/c/openbmc/service-config-manager/+/42072


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Need help with service-config-manager and socket activated services
  2021-04-19 14:46 ` Joseph Reynolds
@ 2021-04-27 16:54   ` Thomaiyar, Richard Marian
  0 siblings, 0 replies; 3+ messages in thread
From: Thomaiyar, Richard Marian @ 2021-04-27 16:54 UTC (permalink / raw)
  To: Joseph Reynolds, openbmc, Puli, Apparao

Hi Joseph,

Service config manager currently is not designed to monitor the new 
service instantiated dynamically. It lists all the objects instantiated 
when BMC FW starts and not after that.

ssh service will be started dynamically based on user connection to the 
SSH port. Hence following 2 things are possible

1. Control only socket attributes

2. Update service config manager to monitor signal for new unit service 
and accordingly update the attributes as needed.

Left comments in review.

Regards,

Richard

On 4/19/2021 8:16 PM, Joseph Reynolds wrote:
> On 4/7/21 6:04 PM, Joseph Reynolds wrote:
>> We are adding a new function to allow the BMC admin to disable the 
>> dropbear SSH server [issue 1763][]. This consists of a D-Bus 
>> interface controlled by [service-config-manager][] and an enhanced 
>> Redfish REST API.
>
> Richard and AppaRao,
>
> We are enhancing service-config-manager so it can control the dropbear 
> SSH server.  See [gerrit review 42072][].  The problem with this 
> patchset are:
> - It always reports dropbear as disabled.
> - When we enable dropbear via this service, it reports dropbear as 
> enabled for a few seconds, then it reports dropbear as disabled.
>
> I believe the underlying issue is that dropbear is socket activated 
> service.  Does service-config-manager understand how to control socket 
> activated services like dropbear server?
> - If so, can you help us debug what is going wrong?
> - If not, can you point us to what code needs to be enhanced to make 
> this work?
>
> Thanks,
> - Joseph
>
>>
>> We need help to understand how to enhance service-config-manager to 
>> work with socket activated services such as dropbear.  For example, 
>> to disable dropbear, is the correct action to perform something like 
>> this?:
>>   systemctl stop dropbear.socket
>>   systemctl disable dropbear.socket
>>
>> - Joseph
>>
>> [issue 1763]: https://github.com/ibm-openbmc/dev/issues/1763
>> [service-config-manager]: 
>> https://github.com/openbmc/service-config-manager
> [gerrit review 42072]: 
> https://gerrit.openbmc-project.xyz/c/openbmc/service-config-manager/+/42072
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-27 16:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-07 23:04 Need help with service-config-manager and socket activated services Joseph Reynolds
2021-04-19 14:46 ` Joseph Reynolds
2021-04-27 16:54   ` Thomaiyar, Richard Marian

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.