Re: [PATCH] Allow AIDE to sendto kernel datagram socket

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2/26/19 1:52 AM, Dominick Grift wrote:
> "Sugar, David" <dsugar@xxxxxxxxxx> writes:
> 
>> type=AVC msg=audit(1550799594.394:205): avc: denied { sendto } for
>> pid=7182 comm="aide" path="/dev/log"
>> scontext=system_u:system_r:aide_t:s0
>> tcontext=system_u:system_r:kernel_t:s0 tclass=unix_dgram_socket
>> permissive=1
> 
> Is this not part of logging_send_syslog_msg()? It should be AFAIK.
> 
Looking at logging.if I don't see any kernel interfaces used.  So, no it 
isn't in there currently.  Based on how logging seems to now work with 
journald it might be a good idea to move these individual uses and just 
rely on the loggin_send_syslog_msg interface to take care of it.

I'm happy to make this change if that is desired.

>>
>> Signed-off-by: Dave Sugar <dsugar@xxxxxxxxxx>
>> ---
>>   policy/modules/admin/aide.te | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/policy/modules/admin/aide.te b/policy/modules/admin/aide.te
>> index 9d3c19ce..6297b60e 100644
>> --- a/policy/modules/admin/aide.te
>> +++ b/policy/modules/admin/aide.te
>> @@ -35,6 +35,8 @@ logging_log_filetrans(aide_t, aide_log_t, file)
>>   files_read_all_files(aide_t)
>>   files_read_all_symlinks(aide_t)
>>   
>> +kernel_dgram_send(aide_t)
>> +
>>   logging_send_audit_msgs(aide_t)
>>   logging_send_syslog_msg(aide_t)
> 




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux