提交 49cd619c 编写于 作者: A Alan Cox 提交者: Linus Torvalds

[PATCH] moxa serial: add proper capability check

This requires the proper capabilities for the moxa bios update ioctl's.
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 19dbaf6f
......@@ -1649,6 +1649,8 @@ int MoxaDriverIoctl(unsigned int cmd, unsigned long arg, int port)
case MOXA_FIND_BOARD:
case MOXA_LOAD_C320B:
case MOXA_LOAD_CODE:
if (!capable(CAP_SYS_RAWIO))
return -EPERM;
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册