Skip to content

Commit

Permalink
[dnsmasq] Allow write syslog to runtime dirs
Browse files Browse the repository at this point in the history
Signed-off-by: Mykola Solianko <[email protected]>
  • Loading branch information
Mykola Solianko committed Sep 14, 2022
1 parent 1ecb675 commit 3c646a1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions policy/modules/services/dnsmasq.te
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ fs_search_auto_mountpoints(dnsmasq_t)
auth_use_nsswitch(dnsmasq_t)

logging_send_syslog_msg(dnsmasq_t)
write_logging_runtime_dirs(dnsmasq_t)

miscfiles_read_localization(dnsmasq_t)

Expand Down
18 changes: 18 additions & 0 deletions policy/modules/system/logging.if
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,24 @@ interface(`logging_watch_runtime_dirs',`
allow $1 syslogd_runtime_t:dir watch;
')

########################################
## <summary>
## Allow write to syslog runtime dirs.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`write_logging_runtime_dirs',`
gen_require(`
type syslogd_runtime_t;
')

allow $1 syslogd_runtime_t:sock_file write;
')

########################################
## <summary>
## Create, read, write, and delete syslog PID sockets. (Deprecated)
Expand Down

0 comments on commit 3c646a1

Please sign in to comment.