Commit Graph

2 Commits

Author SHA1 Message Date
Adam Williams
e58041b05f 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]: ec6293febc/package/network/services/hostapd/files/wpad.init (L35-L36)

Signed-off-by: Adam Williams <pwnfactory@gmail.com>
2022-11-10 18:01:00 +08:00
Adam Williams
0999c5af4a wifi-presence: add new package
See https://github.com/awilliams/wifi-presence for details.

Signed-off-by: Adam Williams <pwnfactory@gmail.com>
2022-04-05 18:23:32 +00:00