Skip to content

dbus with Greengrass

0

Hi,

I want to use bus.get("org.freedesktop.ModemManager1", "/org/freedesktop/ModemManager1/Modem/0") to get the gps data.

1/ I am just wondering is there a way to use dbus in gg container?.

2/ I tried the lambda without container and it works just find. Yet, is there any security difference between using container and non-container?

Thank you

asked 6 years ago354 views
2 Answers
0

Hi nhatnhan,

  1. I'm not an expert on dbus. Are you trying connect from inside lambda container to the daemon running on bare host? If you are aware of all the devices and volumes required for the connection, you can try mounting those as local resources inside the lambda container. Please attach the error logs if you run into any issues.

  2. In general, you can enforce stricter access control in container mode than in process mode. In container mode, you need to explicitly grant lambda access to host resources, e.g. devices, volumes, while in process mode, access to host resources are protected by posix file permissions. However, I wouldn't be too concerned about security if you own both the lambda and the device, since you have full control of the lambda code logic.

Hope this answers your question.

Thanks,
Hui

answered 6 years ago
0

cool thank you

answered 6 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.