AVC messages
Hi. I again.
Please,
a) I'd like to know in what manner I can write the "avc messages" to a specific log file to SELinux, for instance, *selinux.log* file, and not in the messages log file.
b) How I do to that "avc messages" not are displayed in the console only in the selinux.log file ?
Thanks.
Signature · 3 lines
Carlos Anisio Monteiro <[email protected]> IPEN/CNEN-SP Sao Paulo - Brasil
Quoted 6 lines · Carlos Anisio Monteiro
a) I'd like to know in what manner I can write the "avc messages" to a specific log file to SELinux, for instance, selinux.log file, and not in the messages log file.
b) How I do to that "avc messages" not are displayed in the console only in the selinux.log file ?
SELinux simply uses the existing kernel logging support. You can set the log level via the 'avc_log_level=' kernel boot parameter. The default level is 4 (KERN_WARNING). You can alter the behavior of klogd or syslogd in the usual manner, see their man pages.
Signature · 8 lines
Stephen Smalley <[email protected]> National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 6 lines · Carlos Anisio Monteiro
a) I'd like to know in what manner I can write the "avc messages" to a specific log file to SELinux, for instance, *selinux.log* file, and not in the messages log file.
b) How I do to that "avc messages" not are displayed in the console only in the selinux.log file ?
You might want to look into syslog-ng. It will let you send things to log files based on filters.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.