fs/locks.c: static struct file_lock *locks_alloc_lock(void)

Discuss and suggest new grsecurity features

fs/locks.c: static struct file_lock *locks_alloc_lock(void)

Postby akorn » 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?
akorn
 
Posts: 8
Joined: Sat Dec 27, 2003 8:21 am

Return to grsecurity development

cron