2008-10-01 08:20:22

by Kentaro Takeda

[permalink] [raw]
Subject: Re: [TOMOYO #9 (2.6.27-rc7-mm1) 1/6] LSM adapter functions.

Serge E. Hallyn wrote:
>> harmless application/library probing that would be denied by DAC anyway.
>> Same issue would seemingly apply for learning modes of TOMOYO or
>> AppArmor.
> Good point. Kentaro, is that an issue for you?
Indeed, since learning mode of TOMOYO is inherently the same feature
as auditing, it is affected by noise. But it doesn't matter so much.
The main problem is the difference of error code between DAC and MAC.
DAC errors such as ENOENT or EROFS should be returned to callers
first so that callers will not be surprised by MAC errors such as
EPERM.

Regards,