]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/socket.h
core: add new setting Writable= to ListenSpecial= socket units
authorLennart Poettering <lennart@poettering.net>
Thu, 1 Oct 2015 12:28:13 +0000 (14:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 1 Oct 2015 12:28:13 +0000 (14:28 +0200)
commit55301ec028937eab4722c9fd586fd77ffdbc50dd
treec329e5846069c3f80c8facfc17d604878081fabe
parent7e9d36e06b85d87eb2c3aed507fe3aa1574c7880
core: add new setting Writable= to ListenSpecial= socket units

Writable= is a new boolean setting. If ture, then ListenSpecial= will
open the specified path in O_RDWR mode, rather than just O_RDONLY.

This is useful for implementing services like rfkill, where /dev/rfkill
is more useful when opened in write mode, if we want to not only save
but also restore its state.
man/systemd.socket.xml
src/core/dbus-socket.c
src/core/load-fragment-gperf.gperf.m4
src/core/socket.c
src/core/socket.h