Re: [patch 00/13] devtmpfs patches

From: Kay Sievers
Date: Wed May 13 2009 - 09:10:01 EST


On Wed, May 13, 2009 at 14:57, Stephen Smalley <sds@xxxxxxxxxxxxx> wrote:
>> Ok, good, will do that. Anything like this to keep in mind when
>> creating/removing simple subdirectories?
>
> Yes, any time you call any vfs helper (and thus are subject to the
> permission checking calls, both DAC and LSM/SELinux), you need to decide
> whether you truly want those permission checks to get applied against
> the current process' credentials or whether you should be using
> alternate credentials for the call.

Yeah, I see. I'll wrap the entire operation in the swapped
credentials, which should be the best option anyway.

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