Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49cd619c authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds
Browse files

[PATCH] moxa serial: add proper capability check



This requires the proper capabilities for the moxa bios update ioctl's.

Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 19dbaf6f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
	}