sysctl conformance in return values

Discuss and suggest new grsecurity features

sysctl conformance in return values

Postby SpanKY » Sat Aug 05, 2006 8:25 pm

there is no documented spec afaik when it comes to the sysctl() syscall function other than like the source ... but the current code and LTP stuff does not recognize EACCES as a valid return value

kernel/sysctl.c:parse_table()
if (!gr_handle_sysctl(table, oldval, newval))
return -EACCES;

perhaps that should be:
return -EPERM
SpanKY
 
Posts: 2
Joined: Sun Jul 30, 2006 4:53 pm

Return to grsecurity development