mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-26 14:17:26 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
include/linux/netdevice.h net/socket.cd0efb16294
("net: don't unconditionally copy_from_user a struct ifreq for socket ioctls")876f0bf9d0
("net: socket: simplify dev_ifconf handling")29c4964822
("net: socket: rework compat_ifreq_ioctl()") Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
commit
29ce8f9701
14 changed files with 117 additions and 20 deletions
|
@ -4027,6 +4027,10 @@ int netdev_rx_handler_register(struct net_device *dev,
|
|||
void netdev_rx_handler_unregister(struct net_device *dev);
|
||||
|
||||
bool dev_valid_name(const char *name);
|
||||
static inline bool is_socket_ioctl_cmd(unsigned int cmd)
|
||||
{
|
||||
return _IOC_TYPE(cmd) == SOCK_IOC_TYPE;
|
||||
}
|
||||
int get_user_ifreq(struct ifreq *ifr, void __user **ifrdata, void __user *arg);
|
||||
int put_user_ifreq(struct ifreq *ifr, void __user *arg);
|
||||
int dev_ioctl(struct net *net, unsigned int cmd, struct ifreq *ifr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue