The trouble with CAP_SYS_RAWIO
Posted Mar 13, 2013 21:25 UTC (Wed) by
khim (subscriber, #9252)
In reply to:
The trouble with CAP_SYS_RAWIO by mjg59
Parent article:
The trouble with CAP_SYS_RAWIO
Application which drops CAP_SYS_COMPROMISE_KERNEL will work just fine because both checks happen in open(2) syscall. It'll break application which opens file for reading and writing but then only issues read commands. This can be fixed by changing logic: if read/write open(2) request is attempted without CAP_SYS_COMPROMISE_KERNEL then it's silently translated to read-only open(2) request. Of course application which will try to write to said file will see EBADF which may crash it, but I'm not sure what can save such an application.
(
Log in to post comments)