При создании bonding'а в RHEL 6 по мануалу во время загрузки появляется предупреждение: "Use CAP_NET_ADMIN and alias netdev-bondX instead".
Issue
Environment:
- RHEL 6.2
- kernel-2.6.32-220.el6
- Bonding configuration
# cat /etc/modprobe.d/bonding.confalias bond0 bondingkern: Loading kernel module for a network device with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-bond0 instead
Solution
dev_load() of kernel-2.6.32-220.el6 is the below.
void dev_load(struct net *net, const char *name){... no_module = !dev; if (no_module && capable(CAP_NET_ADMIN)) no_module = request_module("netdev-%s", name); if (no_module && capable(CAP_SYS_MODULE)) { if (!request_module("%s", name)) pr_err("Loading kernel module for a network device ""with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-%s ""instead\n", name); }}
Root which run /etc/rc.d/rc.sysinit has both CAP_SYS_MODULE and CAP_NET_ADMIN capability. If not use netdev-xxx alias, above message will be logged.
Though this message can be ignored, if use netdev-xxx alias in /etc/modprobe.d/bonding.conf, it will not be logged.
# cat /etc/modprobe.d/bonding.conf
alias netdev-bond0 bonding
Комментариев нет:
Отправить комментарий