lkml.org 
[lkml]   [2004]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] [PATCH] [0/6] LSM Stacking
> One issue:  I'm seeing this from /usr/sbin/sendmail:
>
> % /usr/sbin/sendmail
> drop_privileges: setuid(0) succeeded (when it should not)
>
> I've not tracked down what's causing this indigestion yet (I suspect some
> bad interaction with capabilities - that's what caused that message to be
> added to Sendmail in the first place).

Chris had mentioned the stacker_capable not being quite right. I'm
looking at it now, and yeah, it's a little convoluted. I think a simpler

if (!stacked_modules) {
/* same as before
}

final_result = 0;
for (m = stacked_modules; m; m = m->next) {
result = (m->module_operations).capable(tsk,cap);
if (result && !final_result) {
final_result = result;
if (short_circuit_capable)
break;
}
}
return final_result;

should be correct.

-serge
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.130 / U:13.508 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site