busybox: make username consistent
ntpd in packages feed had already a user 'ntp' with UID 123 declared. Rename the username of busybox-ntpd to be 'ntp' instead of 'ntpd' so it doesn't clash. Reported-by: Etienne Champetier <champetier.etienne@gmail.com> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
09804da80a
commit
2e746b4d29
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"user": "ntpd",
|
"user": "ntp",
|
||||||
"access": {
|
"access": {
|
||||||
"service": {
|
"service": {
|
||||||
"methods": [ "signal" ]
|
"methods": [ "signal" ]
|
||||||
|
|
|
@ -50,7 +50,7 @@ define Package/busybox/Default
|
||||||
TITLE:=Core utilities for embedded Linux
|
TITLE:=Core utilities for embedded Linux
|
||||||
URL:=http://busybox.net/
|
URL:=http://busybox.net/
|
||||||
DEPENDS:=+BUSYBOX_CONFIG_PAM:libpam +BUSYBOX_CONFIG_NTPD:jsonfilter
|
DEPENDS:=+BUSYBOX_CONFIG_PAM:libpam +BUSYBOX_CONFIG_NTPD:jsonfilter
|
||||||
USERID:=ntpd=123:ntpd=123
|
USERID:=ntp=123:ntp=123
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/busybox
|
define Package/busybox
|
||||||
|
|
|
@ -58,8 +58,8 @@ start_ntpd_instance() {
|
||||||
[ -x /sbin/ujail ] && {
|
[ -x /sbin/ujail ] && {
|
||||||
procd_add_jail ntpd
|
procd_add_jail ntpd
|
||||||
procd_set_param capabilities /etc/capabilities/ntpd.json
|
procd_set_param capabilities /etc/capabilities/ntpd.json
|
||||||
procd_set_param user ntpd
|
procd_set_param user ntp
|
||||||
procd_set_param group ntpd
|
procd_set_param group ntp
|
||||||
procd_set_param no_new_privs 1
|
procd_set_param no_new_privs 1
|
||||||
}
|
}
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
|
|
Loading…
Reference in New Issue