TOMOYO: Add auditing interface.

Add /sys/kernel/security/tomoyo/audit interface. This interface generates audit
logs in the form of domain policy so that /usr/sbin/tomoyo-auditd can reuse
audit logs for appending to /sys/kernel/security/tomoyo/domain_policy
interface.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
This commit is contained in:
Tetsuo Handa
2011-06-26 23:18:58 +09:00
committed by James Morris
parent d5ca1725ac
commit eadd99cc85
9 changed files with 557 additions and 235 deletions

View File

@@ -891,20 +891,6 @@ const char *tomoyo_last_word(const char *name)
return name;
}
/**
* tomoyo_warn_log - Print warning or error message on console.
*
* @r: Pointer to "struct tomoyo_request_info".
* @fmt: The printf()'s format string, followed by parameters.
*/
void tomoyo_warn_log(struct tomoyo_request_info *r, const char *fmt, ...)
{
/*
* Temporarily disabled.
* Will be replaced with /sys/kernel/security/tomoyo/audit interface.
*/
}
/**
* tomoyo_domain_quota_is_ok - Check for domain's quota.
*