dnscrypt-proxy service: use dynamic uid/gid
The daemon doesn't have any portable data, reserving a UID/GID for it is redundant. This frees up UID/GID 151.
This commit is contained in:
parent
03bdf8f03c
commit
9bf6e64860
@ -176,7 +176,6 @@
|
|||||||
seeks = 148;
|
seeks = 148;
|
||||||
prosody = 149;
|
prosody = 149;
|
||||||
i2pd = 150;
|
i2pd = 150;
|
||||||
dnscrypt-proxy = 151;
|
|
||||||
systemd-network = 152;
|
systemd-network = 152;
|
||||||
systemd-resolve = 153;
|
systemd-resolve = 153;
|
||||||
systemd-timesync = 154;
|
systemd-timesync = 154;
|
||||||
@ -414,7 +413,6 @@
|
|||||||
seeks = 148;
|
seeks = 148;
|
||||||
prosody = 149;
|
prosody = 149;
|
||||||
i2pd = 150;
|
i2pd = 150;
|
||||||
dnscrypt-proxy = 151;
|
|
||||||
systemd-network = 152;
|
systemd-network = 152;
|
||||||
systemd-resolve = 153;
|
systemd-resolve = 153;
|
||||||
systemd-timesync = 154;
|
systemd-timesync = 154;
|
||||||
|
@ -173,11 +173,12 @@ in
|
|||||||
}
|
}
|
||||||
''));
|
''));
|
||||||
|
|
||||||
users.extraUsers.dnscrypt-proxy = {
|
users.users.dnscrypt-proxy = {
|
||||||
uid = config.ids.uids.dnscrypt-proxy;
|
|
||||||
description = "dnscrypt-proxy daemon user";
|
description = "dnscrypt-proxy daemon user";
|
||||||
|
isSystemUser = true;
|
||||||
|
group = "dnscrypt-proxy";
|
||||||
};
|
};
|
||||||
users.extraGroups.dnscrypt-proxy.gid = config.ids.gids.dnscrypt-proxy;
|
users.groups.dnscrypt-proxy = {};
|
||||||
|
|
||||||
systemd.sockets.dnscrypt-proxy = {
|
systemd.sockets.dnscrypt-proxy = {
|
||||||
description = "dnscrypt-proxy listening socket";
|
description = "dnscrypt-proxy listening socket";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user