fs/locks.c: static struct file_lock *locks_alloc_lock(void)
Posted: Thu Jan 08, 2004 6:57 pm
The kernels since 2.4.24-pre1 no longer have an 'int account' parameter in this function; however, grsecurity does this:
if(account) gr_learn_resource(current, RLIMIT_LOCKS, current->locks, 0);
It looks like it would be safe to remove the condition; can anyone confirm this?
if(account) gr_learn_resource(current, RLIMIT_LOCKS, current->locks, 0);
It looks like it would be safe to remove the condition; can anyone confirm this?