]> git.ipfire.org Git - thirdparty/systemd.git/commit
network/tuntap: verify User=/Group= settings earlier
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 29 Apr 2025 13:51:50 +0000 (22:51 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 30 Apr 2025 11:30:34 +0000 (20:30 +0900)
commit1fae13fbecf48d32ca46f81e87a316bd252ed084
treefde0beff9c7bcddeaeef57f97aade260504918c4
parent52e2a2421699543217331cc15d5a9bdad0fe776b
network/tuntap: verify User=/Group= settings earlier

and ignore the settings if we cannot find the specified user/group.

This also replaces get_user_creds()/get_group_creds() with
userdb_by_name()/groupdb_by_name().
src/network/netdev/tuntap.c
src/network/netdev/tuntap.h