lseek on /proc/kmsg
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Review
Quoted 2 lines · Jan Engelhardt
(quoted diff) +2
-0+static loff_t kmsg_seek(struct file *filp, loff_t offset, int origin) { + if(origin != 2 /* SEEK_END */ || offset < 0) { return -ESPIPE; }
^^^
"Allow" seeking past the end of the buffer?