diff options
| author | Adam Williams <pwnfactory@gmail.com> | 2022-05-18 21:08:01 -0600 |
|---|---|---|
| committer | Rosen Penev <rosenp@gmail.com> | 2022-05-20 12:12:15 -0700 |
| commit | a03282f0db53fdd8616c362885a66eada6943052 (patch) | |
| tree | 6f1a16446c70219432afd4fb05fadee2443a6928 /lang/python/python-paramiko | |
| parent | f1a59e9683713df8b456121678ac1be9c96175de (diff) | |
wifi-presence: Add config for process user/group
On systems using seccomp, the hostapd socket files will be owned by the
'network' user/group ([source][0]). In this case, if wifi-presence is
run as root/root, then it does not have permissions to open the
hostapd socket files. This was discussed in awilliams/wifi-presence#3.
This change allows the process user/group to be specified in
/etc/config/wifi-presence. If no explicit user/group is set, then the
init script will use the owner of the socket files in /var/run/hostapd/
to determine the appropriate process user/group.
[0]: https://github.com/openwrt/openwrt/blob/ec6293febc244d187e71a6e54f44920be679cde4/package/network/services/hostapd/files/wpad.init#L35-L36
Signed-off-by: Adam Williams <pwnfactory@gmail.com>
Diffstat (limited to 'lang/python/python-paramiko')
0 files changed, 0 insertions, 0 deletions
