[systemd-devel] [systemd-level]: how to set property to read only in systemd?

Lennart Poettering lennart at poettering.net
Mon Apr 20 16:43:00 UTC 2020


On Mo, 20.04.20 23:00, www (ouyangxuan10 at 163.com) wrote:

> dear all;
>
>
> How to set some properties in systemd to read-only? Who can give the sample code?

I don't understand the question. Do you mean a D-Bus property? They
generally are read-only for unprivileged bus clients. With a PolicyKit
action configuration you can open them up, but typically unprivileged
clients can't change them.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list