add interface to send syslog messages
This commit is contained in:
parent
5050e500fe
commit
8c77177b75
@ -13,6 +13,27 @@ attribute logfile;
|
|||||||
files_make_file_depend
|
files_make_file_depend
|
||||||
')
|
')
|
||||||
|
|
||||||
|
#######################################
|
||||||
|
#
|
||||||
|
# logging_send_system_log_message(type,[`optional'])
|
||||||
|
#
|
||||||
|
define(`logging_send_system_log_message',`
|
||||||
|
requires_block_template(logging_send_system_log_message_depend,$2)
|
||||||
|
allow $1 devlog_t:sock_file { ioctl read getattr lock write append };
|
||||||
|
# the type of socket depends on the syslog daemon
|
||||||
|
allow $1 syslogd_t:unix_dgram_socket sendto;
|
||||||
|
allow $1 syslogd_t:unix_stream_socket connectto;
|
||||||
|
allow $1 self:unix_dgram_socket { create read getattr write setattr append bind connect getopt setopt shutdown };
|
||||||
|
allow $1 self:unix_stream_socket { create read getattr write setattr append bind connect getopt setopt shutdown };
|
||||||
|
')
|
||||||
|
|
||||||
|
define(`logging_send_system_log_message_depend',`
|
||||||
|
type syslogd_t, devlog_t;
|
||||||
|
class sock_file { ioctl read getattr lock write append };
|
||||||
|
class unix_dgram_socket { create read getattr write setattr append bind connect getopt setopt shutdown sendto };
|
||||||
|
class unix_stream_socket { create read getattr write setattr append bind connect getopt setopt shutdown connectto };
|
||||||
|
')
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
#
|
#
|
||||||
# logging_append_all_logs(type,[`optional'])
|
# logging_append_all_logs(type,[`optional'])
|
||||||
|
Loading…
Reference in New Issue
Block a user