Skip to content
Snippets Groups Projects
Commit b600d3e9 authored by Zygmunt Krynicki's avatar Zygmunt Krynicki
Browse files

ota/raucinterface,rauc/installhandler: convey install handler process ID


RAUC install handlers execute in a mount namespace which sees the mounted
bundle file. Add HandlerContext.HandlerPID which tracks the process
which was responsible for the request.

This allows sysotad to, receive the request, complete the request using
the file system as the handler process sees it, before responding to the
handler process.

The Service.{Pre,Post}Install methods are extended to take the special
dbus.Sender argument. The service calls org.freedesktop.DBus method
GetConnectionUnixProcessID to find the process corresponding to the sender.

Signed-off-by: default avatarZygmunt Krynicki <zygmunt.krynicki@huawei.com>
parent 01bb4ac0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment