networkd: downgrade error for non-system users/groups to a warning
This reverts (in spirit) "network/tuntap: deny from owning Tun/Tap interfaces",
commit 940441b44c.
Justification similar as in the previous commit. The check is only
partially connected to the intended purpose and breaks backwards compat
without a sufficient reason.
Alternative fix for #37279.
This commit is contained in:
@@ -258,6 +258,16 @@ const struct ConfigPerfItem* network_netdev_gperf_lookup(const char *str, GPERF_
|
||||
|
||||
/* Macros which append INTERFACE= to the message */
|
||||
|
||||
#define log_netdev_syntax(netdev, level, message_id, fmt, ...) \
|
||||
({ \
|
||||
const NetDev *_n = (netdev); \
|
||||
const char *_ifname = _n ? _n->ifname : NULL; \
|
||||
log_struct(level, \
|
||||
LOG_MESSAGE(fmt, __VA_ARGS__), \
|
||||
LOG_MESSAGE_ID(message_id), \
|
||||
LOG_ITEM("INTERFACE=%s", strempty(_ifname))); \
|
||||
})
|
||||
|
||||
#define log_netdev_full_errno_zerook(netdev, level, error, ...) \
|
||||
({ \
|
||||
const NetDev *_n = (netdev); \
|
||||
|
||||
Reference in New Issue
Block a user